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 1197970 - [RFE] Please register the vmware hosts using host-names and not UUID in the Satellite 6.
Summary: [RFE] Please register the vmware hosts using host-names and not UUID in the S...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-who
Version: 6.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: gaoshang
Laura Novich
URL:
Whiteboard:
: 1065465 1097580 1171895 (view as bug list)
Depends On:
Blocks: sam21-tracker 1145324
TreeView+ depends on / blocked
 
Reported: 2015-03-03 05:22 UTC by Masaki Furuta ( RH )
Modified: 2019-11-14 06:38 UTC (History)
12 users (show)

Fixed In Version: virt-who-0.12-2.el6
Doc Type: Release Note
Doc Text:
virt-who supports filtering non-RHEL hypervisors In cases where it is not necessary to report all the hypervisors, such as those that do not have any associated Red Hat Enterprise Linux guests, virt-who is now capable of filtering out the specified hypervisors.
Clone Of:
Environment:
Last Closed: 2015-07-22 07:15:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 724323 0 None None None 2018-12-09 17:31:36 UTC
Red Hat Product Errata RHBA-2015:1377 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2015-07-20 17:58:35 UTC

Comment 2 Radek Novacek 2015-03-17 12:49:15 UTC
This feature has been implemented upstream:

https://github.com/virt-who/virt-who/commit/f6bed0f683c287c6cbea262978db74c9875bc840

Comment 3 Radek Novacek 2015-03-19 10:00:57 UTC
*** Bug 1097580 has been marked as a duplicate of this bug. ***

Comment 4 Radek Novacek 2015-03-19 12:37:02 UTC
*** Bug 1171895 has been marked as a duplicate of this bug. ***

Comment 5 Radek Novacek 2015-03-26 13:41:19 UTC
Fixed in virt-who-0.12-2.el6.

Comment 6 Radek Novacek 2015-03-26 13:42:54 UTC
How to test:

set 'hypervisor_id = hostname' in config file in /etc/virt-who.d/* and ensure that hostname appears in the UI instead of UUID of the hypervisor.

Comment 8 Liushihui 2015-04-14 09:15:47 UTC
Verified it on virt-who-0.12-2.el6

Verified version:
virt-who-0.12-2.el6.noarch
subscription-manager-1.14.1-1.el6.x86_64
python-rhsm-1.14.1-1.el6.x86_64
candlepin-0.9.6.5-1.el6sam.noarch
katello-headpin-1.4.3.28-1.el6sam_splice.noarch

Verified process:
1. Register system to SAM/Satellite server.
2. Configure virt-who run at esx mode and send the hostname to SAM/Satellite 
server.then restart virt-who service
[root@hp-z220-03 ~]# cat /etc/virt-who.d/virt
[test-esx1]
type=esx
server=10.66.79.68
username=Administrator
password=qwer1234P!
owner=ACME_Corporation
env=Library
hypervisor_id=hostname
[root@hp-z220-03 ~]# service virt-who restart
Stopping virt-who:                                         [FAILED]
Starting virt-who:                                         [  OK  ]
3. Check the virt-who's log,
# tail -f /var/log/rhsm/rhsm.log
2015-04-14 17:11:50,156 [DEBUG]  @virtwho.py:84 - Using config named 'test-esx1'
2015-04-14 17:11:50,157 [INFO]  @virtwho.py:475 - Using configuration "test-esx1" ("esx" mode)
2015-04-14 17:11:50,157 [DEBUG]  @virtwho.py:131 - Starting infinite loop with 5 seconds interval
2015-04-14 17:11:50,306 [DEBUG]  @esx.py:51 - Log into ESX
2015-04-14 17:11:51,475 [DEBUG]  @esx.py:54 - Creating ESX event filter
2015-04-14 17:11:51,796 [DEBUG]  @esx.py:113 - Waiting for ESX changes
2015-04-14 17:11:51,813 [INFO]  @subscriptionmanager.py:124 - Sending update in hosts-to-guests mapping: {10.66.128.77: [4224a77f-1c50-42cb-3507-2b68b447ed60, 4224e5d2-4fcf-2bc2-2559-5846035d3a78], 10.66.128.10: []}
2015-04-14 17:11:51,814 [DEBUG]  @subscriptionmanager.py:76 - Authenticating with certificate: /etc/pki/consumer/cert.pem
2015-04-14 17:11:52,943 [INFO]  @virtwho.py:127 - Created host: 9f52c393-9b5b-447b-8787-4c6ace333c7d with guests: [4224a77f-1c50-42cb-3507-2b68b447ed60, 4224e5d2-4fcf-2bc2-2559-5846035d3a78]
2015-04-14 17:11:52,944 [INFO]  @virtwho.py:127 - Created host: 0371e977-2433-4bb4-9d8b-e5a10e2b194c with guests: []
4. Check the SAM/Satellite web UI, It will show esx hostname instead of uuid on it.

Result:According to the result on step3 and step4, virt-who can send the hostname instead of uuid to server, therefor, verify it.

Comment 10 Axel Thimm 2015-06-29 14:29:35 UTC
Dear all,

we have tested it on Satellite 6 with RHEL6. We wanted to test with RHEL7 which provides 0.13-1.el7sat, but this doesn't have the required support for hypervisor_id.

Does a version for RHEL7 exist?

Comment 11 Radek Novacek 2015-06-30 06:01:40 UTC
It will be in RHEL-7.2 once it's released. It the meantime I can provide you testing rpm if you're interested.

Comment 12 Axel Thimm 2015-07-01 09:14:33 UTC
Hi Radek,

we'd be interested in testing rpms for RHEL7 and RHEL6 and we'd also like to take this up for GSS (which is off-topic for this bugzilla). Let me PM you on details.

Thanks!

Comment 14 Radek Novacek 2015-07-07 07:29:29 UTC
Yes, there will be new configuration option `hypervisor_id` and if set to `hostname`, the hypervisor will be identified using hostname instead of uuid. Please note that if this options is changed after initial run, it will create duplicated hypervisor entries (because the only identification will change and the server can't match those two entries toghether).

Comment 15 errata-xmlrpc 2015-07-22 07:15:59 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-2015-1377.html

Comment 16 Bryan Kearney 2015-09-10 12:40:22 UTC
*** Bug 1065465 has been marked as a duplicate of this bug. ***


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