Hi all, Turns out there''s a small backward compatibility problem in 0.22.2. If you''ve got clients in older versions sending reports to a daemon running the newer version, you''ll run into a problem because I renamed the Puppet::Metric class to Puppet::Util::Metric. I''ve committed a fix to svn, but it''s not a big enough problem to require a new release. If you run into this, just edit puppetmasterd and add the following line after the "require ''puppet''" line: Puppet::Metric = Puppet::Util::Metric That''ll alias the class so when the server receives the client''s old- style report it will resolve correctly. Thanks to Digant for finding this problem and testing the solution. -- The covers of this book are too far apart. -- Ambrose Bierce --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Chris McEniry
2007-Mar-22 01:52 UTC
Re: Slight 0.22.2 backward compatibility reporting problem
> running the newer version, you''ll run into a problem because I > renamed the Puppet::Metric class to Puppet::Util::Metric.This seems to be a common issue to a lot of the utility classes. We''re using the Puppet::LoadedFile class in a function, and that is now throwing an uninitialized constant error. I changed it over to Puppet::Util::LoadedFile for us and we''re fine, but just something to be aware of. Here''s a patch that adds a deprecation warning on the server, and continues to work. --mac _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Chris McEniry
2007-Mar-22 15:36 UTC
Re: Slight 0.22.2 backward compatibility reporting problem
> Turns out there''s a small backward compatibility problem in 0.22.2. > If you''ve got clients in older versions sending reports to a daemon > running the newer version, you''ll run into a problem because I > renamed the Puppet::Metric class to Puppet::Util::Metric.And another one: Puppet::Log> Puppet::Metric = Puppet::Util::MetricSame fix works: Puppet::Log = Puppet::Util::Log --mac
Luke Kanies
2007-Mar-22 15:46 UTC
Re: Slight 0.22.2 backward compatibility reporting problem
On Mar 22, 2007, at 10:36 AM, Chris McEniry wrote:>> Turns out there''s a small backward compatibility problem in 0.22.2. >> If you''ve got clients in older versions sending reports to a daemon >> running the newer version, you''ll run into a problem because I >> renamed the Puppet::Metric class to Puppet::Util::Metric. > > And another one: Puppet::Log > >> Puppet::Metric = Puppet::Util::Metric > > Same fix works: > > Puppet::Log = Puppet::Util::LogI silently fixed this one yesterday. -- Health is merely the slowest possible rate at which one can die. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com