Andreas Unterkircher
2008-Aug-24 09:11 UTC
[Puppet Users] overriding environment settings seems not to work in 0.24.5
Hello, I''m currently testing the new 0.24.5 version in our environment. For this I upgraded a single client to 0.24.5, puppetmaster still remains on 0.24.4. Maybe there is already a ticket open for this, but redmine is down since hours (mod_proxy error...). Like noted here [1], in 0.24.5 the default environment has been changed to "production". Well, I have overwritten this in puppet.conf by the following configuration entries: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true environments=prodprod environment=prodprod But when I now invoke puppet manually by "puppetd --test", I get a lot of error messages all complaining about environment settings: >> resources during transaction: Invalid environment production from >> parameters But I can not find out, where it again gets the not existing "production" environment. This is a fresh client, so there wasn''t any residue from earlier versions. Someone noted the same? Cheers, Andreas [1] http://reductivelabs.com/trac/puppet/wiki/UPGRADE#environments --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2008-Aug-24 09:35 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
did you try to run puppetd --environment prodtest? On Sun, Aug 24, 2008 at 5:11 PM, Andreas Unterkircher <unki@netshadow.at>wrote:> > Hello, > > I''m currently testing the new 0.24.5 version in our environment. For > this I upgraded a single client to 0.24.5, puppetmaster still remains on > 0.24.4. Maybe there is already a ticket open for this, but redmine is > down since hours (mod_proxy error...). > > Like noted here [1], in 0.24.5 the default environment has been changed > to "production". Well, I have overwritten this in puppet.conf by the > following configuration entries: > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > pluginsync=true > environments=prodprod > environment=prodprod > > But when I now invoke puppet manually by "puppetd --test", I get a lot > of error messages all complaining about environment settings: > > >> resources during transaction: Invalid environment production from > >> parameters > > But I can not find out, where it again gets the not existing > "production" environment. This is a fresh client, so there wasn''t any > residue from earlier versions. > > Someone noted the same? > > Cheers, > Andreas > > [1] http://reductivelabs.com/trac/puppet/wiki/UPGRADE#environments > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Aug-24 09:57 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Unterkircher wrote:> Hello, > > I''m currently testing the new 0.24.5 version in our environment. For > this I upgraded a single client to 0.24.5, puppetmaster still remains on > 0.24.4. Maybe there is already a ticket open for this, but redmine is > down since hours (mod_proxy error...).It''s up now. Apologies - not sure what''s happening there. Rails is being its usual helpful self in that regard but I think it''s fixed. Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIsTCS9hTGvAxC30ARAgp6AKCavvwOhZofDEeLittXKwLlud4xSQCeJ4e6 OIjC0Ki5VSCRzW0c7i3FaMw=b6D1 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andreas Unterkircher
2008-Aug-24 09:59 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
> did you try to run puppetd --environment prodtest?You mean prodprod? Yes I did so, same error messages. Funny, in the meantime it started to work. Maybe it gets cached somehwere...? If I manually run puppetd on a clean installation, without a proper configured puppet.conf, I get certainly the invalid environment messages. Then I adept puppet.conf, add ''environments'' and ''environment'' and invoke puppetd again: err: /File[/var/lib/puppet/lib]: Failed to generate additional resources during transaction: Invalid environment production from parameters err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Invalid environment production from parameters Calling it now a third time, it works. Confusing... Regards, Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Chad Huneycutt
2008-Aug-25 15:02 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
On Sun, Aug 24, 2008 at 5:11 AM, Andreas Unterkircher <unki@netshadow.at> wrote:> > Hello, > > I''m currently testing the new 0.24.5 version in our environment. For > this I upgraded a single client to 0.24.5, puppetmaster still remains on > 0.24.4. Maybe there is already a ticket open for this, but redmine is > down since hours (mod_proxy error...).BTW, you should always upgrade your server before the clients. The server will be backwards compatible. -- Chad M. Huneycutt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andreas Unterkircher
2008-Aug-26 06:42 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
> BTW, you should always upgrade your server before the clients. The > server will be backwards compatible.I have done so now - puppetmaster is at 0.24.5. I still see the error on the first run (a fresh upgraded 0.24.4->0.24.5 client), err: /File[/var/lib/puppet/lib]: Failed to generate additional resources during transaction: ''production'' is not a valid environment err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: ''production'' is not a valid environment Could not describe /plugins: ''production'' is not a valid environment but then, for any further run it seems to work. The not-yet-upgraded clients (mostly 0.24.4) do not suffer these messages while fetching from the newly upgraded 0.24.5 puppetmaster. Cheers, Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2008-Aug-26 08:55 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
just a stupid question, your environments sections is under main or puppetmaster? if its under puppetmaster, the puppetd will ignore it. Ohad On Tue, Aug 26, 2008 at 2:42 PM, Andreas Unterkircher <unki@netshadow.at>wrote:> > > BTW, you should always upgrade your server before the clients. The > > server will be backwards compatible. > > I have done so now - puppetmaster is at 0.24.5. I still see the error > on the first run (a fresh upgraded 0.24.4->0.24.5 client), > > err: /File[/var/lib/puppet/lib]: Failed to generate additional > resources during transaction: ''production'' is not a valid environment > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: ''production'' is not a valid environment Could not describe > /plugins: ''production'' is not a valid environment > > but then, for any further run it seems to work. > > The not-yet-upgraded clients (mostly 0.24.4) do not suffer these > messages while fetching from the newly upgraded 0.24.5 puppetmaster. > > Cheers, > Andreas > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andreas Unterkircher
2008-Aug-26 09:03 UTC
[Puppet Users] Re: overriding environment settings seems not to work in 0.24.5
> just a stupid question, your environments sections is under main or > puppetmaster? > > if its under puppetmaster, the puppetd will ignore it.Yes it is in main, on some older clients it is in the [puppetd] section - but that worked too for a long time. [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true environments=prodprod,prodtest,devel environment=prodprod [puppetd] server=puppet.test.com [puppetmasterd] templatedir=/var/lib/puppet/templates Regards, Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---