Issue #4156 has been updated by Rein Henrichs. Status changed from Ready for Checkin to Closed % Done changed from 0 to 100
Closing: merged into master and available in 1.5.8rc1. ---------------------------------------- Bug #4156: Facter doesn't detect Openvz as a virtual http://projects.puppetlabs.com/issues/4156 Author: Kai S Status: Closed Priority: Normal Assigned to: Category: library Target version: 1.5.8 Keywords: virtual Branch: ticket/master/4156-openvz Since the release of openvz "Kiprensky" the openvz containers (VE) do not see a file in /proc/vz, and thus facter doesn't see it: ve$ ls \-alg /proc/vz total 0 dr-xr-xr-x 3 root 0 2010-07-07 12:39 . dr-xr-xr-x 26 root 0 2010-07-07 12:39 .. dr-x------ 8 root 0 2010-07-07 12:39 vzaquota ve$ ls \-alg /proc/user_beancounters \-r-------- 1 root 0 2010-07-07 16:00 /proc/user_beancounters ve$ facter | grep virtual is_virtual => false virtual => physical OpenVZ's commit that breaks facter is: commit 41c8d8e69e069a2893e39e4eec59079bfe57ef6e [http://git.openvz.org/?p=linux-2.6.27-openvz;a=commit;h=41c8d8e69e069a2893e39e4eec59079bfe57ef6e] - de = proc_create("veinfo", S_IFREG | S_IRUSR, glob_proc_vz_dir, - &proc_veinfo_operations); ... + de = proc_create("veinfo", S_IFREG | S_IRUSR, proc_vz_dir, + &proc_veinfo_operations); The directory /proc/vz does exist though, which might be a better test to see if it is a VE or not. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
