Created attachment 537829 [details] Guest's facts displays
Precisely,the guest that has been installed via "Virtualization Method" of PV will display "virt.uuid: Unkown".The guest that has been installed via "Virtualization Method" of HVM can display the UUID normally.
Steps to Reproduce: 1. Install a RHEL5.8 snapshot2.0 server x86_64 Xen host and register to candlepin. 2.Start virt-manager,install one guest (PV) on the host 3.Boot one guest,register to candlepin 5.Start virt-who service in terminal1 of host,check the output of termimal1 #service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: Virt-who is running in libvirt mode Starting infinite loop with 3600 seconds interval and event handling [ OK ] [root@localhost ~]# Unable to obtain status from server, UEPConnection is likely not usable: Traceback (most recent call last): File "/usr/share/virt-who/subscriptionmanager.py", line 60, in connect if not self.connection.ping()['result']: File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 411, in ping return self.conn.request_get("/status/") File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 267, in request_get return self._request("GET", method) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 234, in _request self.validateResponse(result) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 249, in validateResponse raise RemoteServerException(response['status']) RemoteServerException: <unprintable instance object> Sending update to updateConsumer: [] EVENT: Domain rhel5.8snaphsot2.0-server-32(1) Started Booted Virtual machine found: rhel5.8snaphsot2.0-server-32: ea898b80-5200-6ba1-6bb6-5dcd3ab07369 ^^^^^^^^^^^^^^^^^^The reported uuid of guest rhel5.8snaphsot2.0-server-32 6.Check the virt.uuid via CLI of the "View System Facts" of subscription-manager on guest rhel5.8snaphsot2.0-server-32 #subscription-manager facts --list .... system.uuid: 0de520d2-a755-4cae-9ccd-486b4f130cb7 uname.machine: i686 uname.nodename: localhost.localdomain uname.release: 2.6.18-301.el5xen uname.sysname: Linux uname.version: #1 SMP Tue Dec 13 17:17:36 EST 2011 virt.host_type: xen xen-domU virt.is_guest: True virt.uuid: Unknown ^^^^^^^^The virt.uuid is unknown Actual results: The facts of guest's virt.uuid displays "Unkown" via GUI and CLI. Expected results: The facts of guest's virt.uuid displays "virt.uuid:ea898b80-5200-6ba1-6bb6-5dcd3ab07369"
Available in Subscription Manager versions: 0.99.3 0.98.11 Commits RHEL5.8 448dd593ae65065d5639c08c023876ffcbb3466e Master 8dcdd225538aae34f039363180374d1cdacba906
verify passed 1. install RHEL5.8-Server-20120105.0-x86_64 as guest(PV) , download and install: subscription-manager-debuginfo-0.98.11-1.el5 subscription-manager-firstboot-0.98.11-1.el5 subscription-manager-0.98.11-1.el5 subscription-manager-migration-0.98.11-1.el5 subscription-manager-gnome-0.98.11-1.el5 2. on guest, register to candlepin 3. Start virt-manager on host, [root@localhost rhsm]# service libvirtd restart Stopping libvirtd daemon: [ OK ] Starting libvirtd daemon: [ OK ] [root@localhost rhsm]# service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: Virt-who is running in libvirt mode Starting infinite loop with 3600 seconds interval and event handling [ OK ] [root@localhost rhsm]# Unable to obtain status from server, UEPConnection is likely not usable: Traceback (most recent call last): File "/usr/share/virt-who/subscriptionmanager.py", line 60, in connect if not self.connection.ping()['result']: File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 411, in ping return self.conn.request_get("/status/") File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 267, in request_get return self._request("GET", method) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 234, in _request self.validateResponse(result) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 249, in validateResponse raise RemoteServerException(response['status']) RemoteServerException: <unprintable instance object> Virtual machine found: FV-5.8: 529e312a-81f8-a929-90a7-590d2e06df3d Virtual machine found: PV1: 4c3cb8ae-b26c-3ae7-a859-20e5b2b60381 Virtual machine found: pv5.8: f1b9352b-726c-1c03-513d-e39cc2074d2d Sending update to updateConsumer: ['4c3cb8ae-b26c-3ae7-a859-20e5b2b60381', '529e312a-81f8-a929-90a7-590d2e06df3d', 'f1b9352b-726c-1c03-513d-e39cc2074d2d'] 4. from guest, #subscription-manager facts --list ot@localhost yzhong]# subscription-manager facts --list cpu.core(s)_per_socket: 1 cpu.cpu(s): 1 cpu.cpu_socket(s): 1 distribution.id: Tikanga distribution.name: Red Hat Enterprise Linux Server distribution.version: 5.8 memory.memtotal: 524288 memory.swaptotal: 1081336 net.interface.eth0.broadcast: 192.168.122.255 net.interface.eth0.hwaddr: 00:16:3e:4b:76:a5 net.interface.eth0.ipaddr: 192.168.122.182 net.interface.eth0.netmask: 255.255.255.0 net.interface.lo.broadcast: 0.0.0.0 net.interface.lo.hwaddr: 00:00:00:00:00:00 net.interface.lo.ipaddr: 127.0.0.1 net.interface.lo.netmask: 255.0.0.0 network.hostname: localhost.localdomain network.ipaddr: 127.0.0.1 system.entitlements_valid: valid system.name: localhost.localdomain system.uuid: 3b45d3bf-27f4-4a7a-8f7a-629cf9730d84 uname.machine: x86_64 uname.nodename: localhost.localdomain uname.release: 2.6.18-303.el5xen uname.sysname: Linux uname.version: #1 SMP Tue Jan 3 16:51:32 EST 2012 virt.host_type: xen xen-domU virt.is_guest: True virt.uuid: f1b9352b-726c-1c03-513d-e39cc2074d2d 5. virt.uuid: f1b9352b-726c-1c03-513d-e39cc2074d2d which is same as from host. verify passed
Created attachment 552168 [details] virt.uuid VERIFIED under these steps: - Obtain rhel 5.8 Host - Install xen on host - Install rhel 5.8 guest on xen - Register rhsm on host: [root@nec-em26 ~]# subscription-manager register --user admin --pass admin --org admin The system has been registered with id: 634c9e48-8184-48c7-8e9a-261c2fea7c08 - Register rhsm on guest: [root@dhcp70-146 ~]# subscription-manager register --user testuser1 --pass password --org admin The system has been registered with id: 5f30a244-f3e6-4fc4-963c-e292a12641b2 - Restart virt-who on host: [root@nec-em26 ~]# service virt-who restart Stopping virt-who: [FAILED] Starting virt-who: [ OK ] - Check for a virt.uuid on guest: [root@dhcp70-146 ~]# subscription-manager facts --list | grep virt virt.host_type: xen xen-domU virt.is_guest: True virt.uuid: 6edad37e-8c65-03ae-a5e3-9ebcf08db2b6 - Verified that it reads the same on the GUI interface. (see attachment) This was tested against: python-rhsm-0.98.9-1.el5 subscription-manager-0.98.11-1.el5 virt-who-0.5-3.el5 virt.uuid shows and is working. Marking this VERIFIED.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No description necessary
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0154.html