Issue #16278 has been updated by Adrien Thebo.
And now for something a little bit more readable instead of technical notes. I've confirmed that this is a regression that affects Facter 1.6.2 with the Oracle Linux `2.6.39-400.17.1.el5uek` kernel. This behavior is fixed in the 1.7.x branch, in commit '976b7af'. It should be released in 1.7.0. The issue affects all versions of Facter between 1.6.2 and 1.6.17. As a workaround you can install `virt-what` and use a Facter version >= 1.6.14 to get a better resolution. As this issue is fixed in our 1.7.x development branch and there is a known work-around for released versions of Facter, can you confirm that this issue is resolved for you? Please see the following information for details on how to run the Facter 1.7.x branch, which will become Facter 1.7.0 on a system affected by this issue. 1. on a machine that has git, download the repository by running `git clone git://github.com/puppetlabs/facter`. If git is present on the affected machine you can run the commands there and skip the parts about transferring the files. 1. Change the current directory to the facter repository with`cd facter`check out the 1.7.x branch by running `git checkout origin/1.6.x`. 1. Copy the source onto the affected machine if this wasn't done on the remote machine. 1. In the facter directory, run <code>export RUBYLIB=`pwd`/lib</code>. 1. Test the virtual fact resolution by running `bin/facter virtual`. If Facter doesn't output the correct information, please update this ticket with the affected platform type and kernel, and Xen type, and we can see about reproducing that behavior. ---------------------------------------- Feature #16278: Add support for Oracle VM detection https://projects.puppetlabs.com/issues/16278#change-86962 Author: Ken Johnson Status: Accepted Priority: High Assignee: Adrien Thebo Category: Target version: 1.7.0 Keywords: Branch: Affected Facter version: Currently guests under Oracle VM Server are detected as physical machines and return false for the is_virtual fact. A customer has asked us to put in a feature request to add support for detecting this virtual environment properly. Some additional details about the environment the customer is running are below: "To be specific, where this needs improvement is when using Oracle Linux 5.8 on top of Xen PVM VMs on Oracle VM Server for x86. In Oracle Linux 5.8, the Unbreakable Enterprise Kernel becomes the default and it bakes Xen support into the kernel rather than having a separate kernel. We did some additional testing this morning and it looks like we do not see this issue with the Red Hat compatible “-xen” kernel." Some sample output for the relevant facts on their test VM: [root@racvm0 ~]# facter is_virtual false [root@racvm0 ~]# facter virtual physical [root@racvm0 ~]# uname -r 2.6.39-200.29.3.el5uek -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
