Issue #10625 has been updated by Roger Kennedy.

I am still having issues with XenU+facter. Below is some relevant system 
information as well as the output from the latest facter on git 
(97fa0c39e305227b1227b436fefda42acb791db8)

    root@dev2:~/facter/bin# uname -a
    Linux dev2 3.6.1-grsec #1 SMP Sun Oct 14 00:23:26 PDT 2012 x86_64 GNU/Linux

    root@dev2:~/facter/bin# ls -l /dev/xen
    total 0
    drwxr-xr-x  2 root root    100 Nov  3 12:14 ./
    drwxr-xr-x 12 root root   3460 Nov  3 12:14 ../
    crw-------  1 root root 10, 56 Nov  3 12:14 evtchn
    crw-------  1 root root 10, 55 Nov  3 12:14 privcmd
    crw-------  1 root root 10, 57 Nov  3 12:14 xenbus

    root@dev2:~/facter/bin# ls -l /proc/xen
    total 0
    dr-xr-xr-x  2 root staff 0 Nov 15 18:22 ./
    dr-xr-xr-x 78 root staff 0 Nov  3 12:14 ../

    root@dev2:~/facter/bin# ./facter | grep virtual
    is_virtual => false
    virtual => xen0

Hypervisor is Debian Stable+Xen4.0, guests are Debian {Stable,Testing}+Custom. 
Looking at the hypervisor:

    root@hypervisor:~# uname -a
    Linux hypervisor 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012 
x86_64 GNU/Linux

    toot@hypervisor:~# ls -l /dev/xen
    total 0
    crw------- 1 root root 10, 57 Jul 27 06:30 evtchn
    crw------- 1 root root 10, 62 Jul 27 06:29 gntdev

    root@hypervisor:~# ls -l /proc/xen
    total 0
    -r--r--r-- 1 root root 0 Jul 27 06:30 capabilities
    -rw------- 1 root root 0 Jul 27 06:30 privcmd
    -rw------- 1 root root 0 Jul 27 06:30 xenbus
    -rw------- 1 root root 0 Jul 27 06:30 xsd_kva
    -rw------- 1 root root 0 Jul 27 06:30 xsd_port
----------------------------------------
Bug #10625: Xen dom0 and domU hosts reported as physical without xenfs mounted
https://projects.puppetlabs.com/issues/10625#change-76767

Author: Grant Heffernan
Status: Duplicate
Priority: Normal
Assignee: 
Category: library
Target version: 1.6.14
Keywords: virtual
Branch: https://github.com/puppetlabs/facter/pull/164 
Affected Facter version: 1.6.2


Facter 1.6.2 is reporting all my Rackspace virtuals as reals, which breaks all 
kinds of things. Rolling back to  1.6.1 clears it up.

    root@prod-fe-r02:/etc/monit/conf.d# facter | grep virtual
    is_virtual => false
    virtual => physical
    root@prod-fe-r02:/etc/monit/conf.d# gem list

    *** LOCAL GEMS ***

    facter (1.6.2)
    puppet (2.7.6)
    rake (0.8.7 ruby)
    root@prod-fe-r02:/etc/monit/conf.d# gem uninstall facter

    You have requested to uninstall the gem:
        facter-1.6.2
    puppet-2.7.6 depends on [facter (>= 1.5.1)]
    If you remove this gems, one or more dependencies will not be met.
    Continue with Uninstall? [Yn]  y
    Remove executables:
        facter

    in addition to the gem? [Yn]  y
    Removing facter
    Successfully uninstalled facter-1.6.2
    root@prod-fe-r02:/etc/monit/conf.d# gem install facter -v=1.6.1 --no-ri 
--no-rdoc
    Fetching: facter-1.6.1.gem (100%)
    Successfully installed facter-1.6.1
    1 gem installed
    root@prod-fe-r02:/etc/monit/conf.d# facter | grep virtual
    is_virtual => true
    virtual => xenu


-- 
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.

Reply via email to