environment set by client issues on nodes running 3.0.0

722 views
Skip to first unread message

Matthew Nicholson

unread,
Oct 4, 2012, 11:46:40 AM10/4/12
to puppet...@googlegroups.com
So, we use dynamic environments based off of git branches. Thus, for
the 3.0 upgrade, i've got a puppet3 branch. So far, on the change in
there is to have nodes running from it upgrade to puppet 3.0.0,

so, I can take a node, and do:

puppet agent --test --environment=puppet3
and this will install 3.0.0, as well as edit the environment in
/etc/puppet/puppet.conf on the node to be "puppet3"

However, subsequent runs, with with --environment=puppet3 passed, or
relying on the puppet.conf setting, of the now 3.0.0 node, results in:

Warning: Local environment: "puppet3" doesn't match server specified
node environment "production", switching agent to "production".

at which point it re-write the puppet.conf and downgrades back to
2.7.19 (which, is cool that is WORKS, isn't what i want).

Now, I don't HAVE the environment defined sever side for this node.
with 2.7.x clients, everything is production unless the client
specifies otherwise. Is this a new behavior on 3.0?

all looks like:

http://projects.puppetlabs.com/issues/3910#note-82

https://github.com/puppetlabs/puppet/commit/43e15f57c0f3866423a8bd67d3cdb5b2e06b31cc

http://projects.puppetlabs.com/issues/16275

but has this not been merged to the release 3.0.0 code yet?

Thanks!

--
Matthew Nicholson

Jeff McCune

unread,
Oct 4, 2012, 12:31:53 PM10/4/12
to puppet...@googlegroups.com
On Thu, Oct 4, 2012 at 8:46 AM, Matthew Nicholson
<matthew.a...@gmail.com> wrote:
> So, we use dynamic environments based off of git branches. Thus, for
> the 3.0 upgrade, i've got a puppet3 branch. So far, on the change in
> there is to have nodes running from it upgrade to puppet 3.0.0,
>
> so, I can take a node, and do:
>
> puppet agent --test --environment=puppet3
> and this will install 3.0.0, as well as edit the environment in
> /etc/puppet/puppet.conf on the node to be "puppet3"
>
> However, subsequent runs, with with --environment=puppet3 passed, or
> relying on the puppet.conf setting, of the now 3.0.0 node, results in:
>
> Warning: Local environment: "puppet3" doesn't match server specified
> node environment "production", switching agent to "production".

This definitely looks like a bug in 3.0.0. The behavior we intend is
that an ENC can override the client specified environment, but it
sounds like you are not using an ENC. Is that correct? If you are
using an ENC, could you verify that the ENC is not setting the
environment parameter?

-Jeff

Matthew Nicholson

unread,
Oct 4, 2012, 12:39:41 PM10/4/12
to puppet...@googlegroups.com
correct, no enc, just nodes.pp (node_terminus=plain)(ugh, yes, i know).

previously had the following in puppet.conf on our master(s):

environment = production
manifest = /etc/puppet/environments/$environment/manifests/site.pp
modulepath=/etc/puppet/environments/$environment/modules


so things would always default to production unless specified. i
commented out the environment = production line just to test, and
there were no changes.
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>



--
Matthew Nicholson

Matthew Nicholson

unread,
Oct 4, 2012, 2:12:13 PM10/4/12
to puppet...@googlegroups.com
File a bug report ? or is this an already tracked issue?
--
Matthew Nicholson

Jeff McCune

unread,
Oct 4, 2012, 2:58:20 PM10/4/12
to puppet...@googlegroups.com
On Thu, Oct 4, 2012 at 11:12 AM, Matthew Nicholson
<matthew.a...@gmail.com> wrote:
> File a bug report ? or is this an already tracked issue?

If you could file a bug report and then reply here with the ticket
number, that will help tremendously. In the meantime I'm going to
start investigating and try to reproduce the issue here.

Thanks for reporting this,
-Jeff

Matthew Nicholson

unread,
Oct 4, 2012, 5:17:56 PM10/4/12
to puppet...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages