Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1367287

Summary: hypervisor_id=hostname/hwuuid can't work when vir-who work at xen mode
Product: Red Hat Enterprise Linux 7 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: hsun, ovasik, sgao, shihliu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: virt-who-0.17-10.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 05:10:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Liushihui 2016-08-16 06:42:01 UTC
Description of problem:
When virt-who work at xen mode, configure hypervisor_id=hostname/hwuuid can't work, virt-who can't send hostname and hwuuid to satellite.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Register system to satellite5.7.
2. Configure virt-who run at xen mode and report host's name or hwuuid.
[root@hp-z220-03 virt-who.d]# cat /etc/virt-who.d/xen 
hypervisor_id=hwuuid   or hypervisor_id=hostname
3. Restart virt-who and check virt-who's log
[root@hp-z220-03 virt-who.d]#systemctl restart virt-who
[root@hp-z220-03 virt-who.d]#tail -f /var/log/rhsm/rhsm.log
2016-08-16 02:20:42,311 [virtwho.main INFO] MainProcess(17941):MainThread - Sending update in hosts-to-guests mapping: 1 hypervisors and 0 guests found
2016-08-16 02:20:42,311 [virtwho.main DEBUG] MainProcess(17941):MainThread - Host-to-guest mapping: {
    "hypervisors": [
            "hypervisorId": {
                "hypervisorId": "4cc99f10-42ea-40f3-bbc5-ca1a7f8aa903"
            "name": "xenserver-dagelflw", 
            "guestIds": [], 
            "facts": {
                "hypervisor.type": "XenServer", 
                "cpu.cpu_socket(s)": "2", 
                "hypervisor.version": "7.0.0"
2016-08-16 02:20:42,311 [virtwho.main DEBUG] MainProcess(17941):MainThread - Loading systemid for 4cc99f10-42ea-40f3-bbc5-ca1a7f8aa903

Actual results:
Virt-who still send hostuuid(""hypervisorId": "4cc99f10-42ea-40f3-bbc5-ca1a7f8aa903"") to server.

Expected results:
Virt-who should send hostname/hwuuid to server according to config.

Additional info:

Comment 1 Radek Novacek 2016-08-16 12:53:19 UTC
Implemented upstream:

Comment 2 Radek Novacek 2016-08-16 16:49:15 UTC
Fixed in virt-who-0.17-10.el7.

Comment 4 Liushihui 2016-08-31 03:26:32 UTC
Verified it on virt-who-0.17-10.el7 since Virt-who can send hostname/hwuuid to server according to config. Therefore, verify it.

Comment 6 errata-xmlrpc 2016-11-04 05:10:33 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.