Bug 758038 - Guest's system facts displays "virt.uuid: Unkown".
Summary: Guest's system facts displays "virt.uuid: Unkown".
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 715031 782064 798997 855766
TreeView+ depends on / blocked
 
Reported: 2011-11-29 09:03 UTC by Hui Wang
Modified: 2012-09-10 08:30 UTC (History)
5 users (show)

Fixed In Version: subscription-manager-0.98.11.el5
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
: 798997 855766 (view as bug list)
Environment:
Last Closed: 2012-02-21 06:43:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Guest's facts displays (132.57 KB, image/png)
2011-11-29 09:07 UTC, Hui Wang
no flags Details
virt.uuid (118.41 KB, image/png)
2012-01-11 16:34 UTC, J.C. Molet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Comment 1 Hui Wang 2011-11-29 09:07:34 UTC
Created attachment 537829 [details]
Guest's facts displays

Comment 3 Hui Wang 2011-12-05 03:31:29 UTC
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.

Comment 5 Hui Wang 2011-12-23 07:48:00 UTC
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"

Comment 6 William Poteat 2012-01-05 18:27:44 UTC
Available in Subscription Manager versions:


0.99.3
0.98.11


Commits

RHEL5.8 448dd593ae65065d5639c08c023876ffcbb3466e
Master 8dcdd225538aae34f039363180374d1cdacba906

Comment 9 Yan Zhong 2012-01-11 07:56:39 UTC
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

Comment 10 J.C. Molet 2012-01-11 16:34:13 UTC
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.

Comment 11 William Poteat 2012-01-23 15:27:19 UTC
    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

Comment 12 errata-xmlrpc 2012-02-21 06:43:23 UTC
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


Note You need to log in before you can comment on or make changes to this bug.