Issue #4156 has been reported by Kai S.
----------------------------------------
Bug #4156: Facter doesn't detect Openvz as a virtual
http://projects.puppetlabs.com/issues/4156
Author: Kai S
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Keywords: virtual
Branch:
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.