RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1233074 - hypervisor hwuuid is not supported in hyperv backend
Summary: hypervisor hwuuid is not supported in hyperv backend
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-who
Version: 6.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: gaoshang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-18 07:55 UTC by Liushihui
Modified: 2016-12-01 00:34 UTC (History)
5 users (show)

Fixed In Version: virt-who-0.16-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 23:55:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0859 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2016-05-10 22:44:47 UTC

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


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