Bug 1233074

Summary: hypervisor hwuuid is not supported in hyperv backend
Product: Red Hat Enterprise Linux 6 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: gxing, hsun, ovasik, rbalakri, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.16-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 23:55:49 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:
Embargoed:

Description Liushihui 2015-06-18 07:55:43 UTC
Description of problem:
When virt-who run at hyperv mode, it don't support hypervisor=uuid

Version-Release number of selected component (if applicable):
subscription-manager-1.14.10-1.el6.x86_64
python-rhsm-1.14.3-1.el6.x86_64
virt-who-0.12-10.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. register system to Satellite/SAM, make virt-who run at hyperv mode and report hwuuid to server, setting as the following:
[root@hp-z220-05 ~]# vim /etc/virt-who.d/virt
[test-hyperv1]
type=hyperv
server=10.66.128.9
username=Administrator
password=qwer1234P
owner=ACME_Corporation
env=Library
hypervisor_id=hwuuid
2. Restart virt-who service and check the virt-who's log
[root@hp-z220-05 ~]# service virt-who restart
[root@hp-z220-05 ~]# tail -f /var/log/rhsm/rhsm.log
2015-06-16 17:18:00,132 [ERROR]  @virt.py:223 - Virt backend 'test-hyperv1' fails with error: Reporting of hypervisor hwuuid is not implemented in hyperv backend
3. Check the man page of virt-who-config
[root@hp-z220-05 ~]# man virt-who-config
hypervisor_id
   Property  that should be used as identification of the hypervisor. Can be one of following: uuid, hostname, hwuuid. Note that some virtualization backends don’t have all of them implemented. Default is uuid.  
===========================================
Applicable  to esx,  hyperv  and  rhevm  only.  
============================================
This property is meant to be set up before initial run of virt-who. Changing it later will result in duplicated entries in the subscription manager.

Actual results:
In the virt-who-config man page, it show hwuuid has been applied to esx,  hyperv  and  rhevm  only.  

Expected results:
I suggest it should be add "hwuuid isn't applicable to hyperv" in virt-who-config man page.

Additional info:

Comment 3 Radek Novacek 2016-01-28 12:28:28 UTC
Text in the man page will be changed to "Applicable to esx and rhevm only" (as hwuuid is not applicable to hyperv, libvirt and vdsm).

Comment 4 Radek Novacek 2016-01-28 13:04:31 UTC
Fixed in virt-who-0.16-2.el6.

Comment 6 Liushihui 2016-02-04 08:17:13 UTC
Reopen it on virt-who-0.16-3.el6.noarch since it still vague means in the virt-who man page.

In the latest virt-who man page, it will show
hypervisor_id
   Property  that should be used as identification of the hypervisor. Can be one of following: uuid, hostname, hwuuid. Note that some virtualization backends don’t have all of them implemented. Default is uuid. 
==================================================================
Applicable to esx and rhevm only.
==================================================================
This property is meant to be set up before initial run of virt-who. Changing it later will result in duplicated entries in the subscription manager.

Expected result:
It should specify hwuuid applicable to esx and rhevm only since hostname applicable to all hypervisor. Therefore, I suggest to update to
 "hwuuid is only applicable to esx and rhevm only" (as hwuuid is not applicable to hyperv, libvirt and vdsm).

Comment 7 Radek Novacek 2016-02-04 09:58:26 UTC
Right, it is wrong indeed.

I'll reword it to:

Property that should be used as identification of the hypervisor. Can be one of following: uuid, hostname, hwuuid. Note that some virtualization backends don't have all of them implemented. Default is uuid. hwuuid is applicable to esx and rhevm only. This property is meant to be set up before initial run of virt-who. Changing it later will result in duplicated entries in the subscription manager.

Comment 8 Radek Novacek 2016-02-11 13:08:06 UTC
Fixed in virt-who-0.16-4.el6.

Comment 10 Liushihui 2016-02-23 09:14:01 UTC
Verified it on virt-who-0.16-4.el6. It was updated to comment7 which is acceptable and clearly. Therefore, verified it. 

[root@sgi-xe500-01 ~]# man virt-who-config
 hypervisor_id
              Property  that should be used as identification of the hypervisor. Can be one of following: uuid, hostname, hwuuid. Note that some virtualization backends don’t have all of them  implemented.  Default  is  uuid.  hwuuid  is
applicable  to  esx and rhevm only. This property is meant to be set up before initial run of virt-who. Changing it later will result in duplicated entries in the subscription manager.

Comment 12 errata-xmlrpc 2016-05-10 23:55:49 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.

https://rhn.redhat.com/errata/RHEA-2016-0859.html