[Bug 708080] Re: facter does not recognize KVM VMs as 'virtual'
Oliver Brakmann
708080 at bugs.launchpad.net
Thu Jan 27 19:11:38 UTC 2011
Nominating for SRU, fulfills: (1) have an obviously safe patch and (2)
affect an application rather than critical infrastructure packages
Justification: it fixes obviously wrong behaviour in regard to a package
that is central to the Ubuntu Server product (KVM).
The fix is from upstream and has been verified to exist in Natty.
Regression potential: Existing puppet manifests which evaluate either
the "virtual" or "is_virtual" fact will be impacted when run on KVM
guests. However, the existence of such manifests is to be doubted, since
they would be broken in such an environment anyway. Administrators that
have worked around this bug may possibly notice a regression, though.
** Description changed:
Binary package hint: facter
On current Ubuntu releases (the latest LTS most notably), puppet's
facter library does not recognize KVM virtual machines as virtual:
$ facter | grep virtual
is_virtual => false
virtual => physical
$ grep -i qemu /proc/cpuinfo
model name : QEMU Virtual CPU version 0.12.3
This has already been fixed upstream in version 1.5.8. However, this
version has not been packaged for any Ubuntu release yet (not even Natty).
The upstream commit with the fix is here:
https://github.com/puppetlabs/facter/commit/62b6773a63bb96273fbcb6f79bec524fb67df075
Please also see http://thread.gmane.org/gmane.linux.ubuntu.server/4917.
Thanks!
+
+
+ TEST CASE:
+ Run "facter | grep virtual" in a KVM virtual machine.
+
+ Buggy output: see above.
+
+ Expected output:
+ $ facter | grep virtual
+ is_virtual => true
+ virtual => kvm
--
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/708080
Title:
facter does not recognize KVM VMs as 'virtual'
More information about the Ubuntu-server-bugs
mailing list