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 1367287 - hypervisor_id=hostname/hwuuid can't work when vir-who work at xen mode
Summary: hypervisor_id=hostname/hwuuid can't work when vir-who work at xen mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-who
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: Eko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-16 06:42 UTC by Liushihui
Modified: 2016-12-01 00:36 UTC (History)
4 users (show)

Fixed In Version: virt-who-0.17-10.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 05:10:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2387 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2016-11-03 13:53:39 UTC

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):
virt-who-0.17-8.el7.noarch
subscription-manager-1.17.10-1.el7.x86_64
python-rhsm-1.17.6-1.el7.x86_64

How reproducible:
Always

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 
[test-xen]
type=xen
server=10.73.131.178
username=root
encrypted_password=cf0fc8adf1684c50644300e7cbd6a113
#password=Welcome1
owner=ACME_Corporation
env=Library
sat_server=10.73.3.209
sat_username=admin
sat_password=redhat
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 @satellite.py:hypervisorCheckIn:208 - 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 @satellite.py:hypervisorCheckIn:210 - 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 @satellite.py:hypervisorCheckIn:215 - 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:

https://github.com/virt-who/virt-who/commit/1cd16c1bba98fc874fec054c5f80e470926c5c7e

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.

https://rhn.redhat.com/errata/RHBA-2016-2387.html


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