** Description changed: Facter will report the wrong operatingsystem when queried from a puppet agent run. To demonstrate this: - $ irb - irb(main):001:0> require 'facter' - => true - irb(main):002:0> Facter.version - => "1.5.9" - irb(main):003:0> Facter["operatingsystem"].value - => "Ubuntu" - irb(main):004:0> Facter.clear - => nil - irb(main):005:0> Facter["operatingsystem"].value - => "Debian" - irb(main):006:0> + $ irb + irb(main):001:0> require 'facter' + => true + irb(main):002:0> Facter.version + => "1.5.9" + irb(main):003:0> Facter["operatingsystem"].value + => "Ubuntu" + irb(main):004:0> Facter.clear + => nil + irb(main):005:0> Facter["operatingsystem"].value + => "Debian" + irb(main):006:0> This has been fixed upstream in Facter 1.6.0+. - % RUBYLIB=`pwd`/lib irb - >> require 'facter' - > true - >> Facter.version - > "1.6.0" - >> Facter["operatingsystem"].value - > "Ubuntu" - >> Facter.clear - > nil - >> Facter["operatingsystem"].value - > "Ubuntu" + % RUBYLIB=`pwd`/lib irb + >> require 'facter' + > true + >> Facter.version + > "1.6.0" + >> Facter["operatingsystem"].value + > "Ubuntu" + >> Facter.clear + > nil + >> Facter["operatingsystem"].value + > "Ubuntu" For the upstream bug see: http://projects.puppetlabs.com/issues/7670 + + ====== + IMPACT: + * Puppet users who make use of a puppetmaster and pluginsync can be bitten by this bug. After the master has synced plugins down to clients, facter clears its fact database. Some facts are inconsistent after clearing (see example above). Later puppet runs of modules and configuration that make use of facter facts will produce unexpected outcomes and system configuration. + + ADDRESSED: + * This bug has been fixed upstream and merged into Ubuntu Precise. The fix has can be cherry picked and applied to oneiric series and backported to earlier series. + + REPRODUCE: + * The irb test above can be used to reliably test whether a version is affected or not. + + REGRESSION POTENTIAL: + * The chances of regression are minimal. The upstream patch cherry-picked into the oneiric branch contains a fix and modification to unit tests. Previous versions contain a minimal patch that only contains the fix and does not touch unit tests as they did not exist in those versions. + ======
** Changed in: facter (Ubuntu Oneiric) Importance: Undecided => High ** Changed in: facter (Ubuntu Oneiric) Status: New => Triaged ** Changed in: facter (Ubuntu Natty) Importance: Undecided => High ** Changed in: facter (Ubuntu Natty) Status: New => Triaged ** Changed in: facter (Ubuntu Maverick) Importance: Undecided => High ** Changed in: facter (Ubuntu Maverick) Status: New => Triaged ** Changed in: facter (Ubuntu Lucid) Importance: Undecided => High ** Changed in: facter (Ubuntu Lucid) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to facter in Ubuntu. https://bugs.launchpad.net/bugs/876130 Title: Incorrect operatingsystem reported in puppet run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/facter/+bug/876130/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs