Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1361445

Summary: [RHEL6] Virt-who should not add "." at the end of ESX hypervisor hostname if the domain name is not configured.
Product: Red Hat Enterprise Linux 6 Reporter: Ashish Humbe <ahumbe>
Component: virt-whoAssignee: Chris Snyder <csnyder>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: high    
Version: 6.9CC: hartsjc, ktordeur, nitthoma, nshaik, rbalakri, thozza, vanhoof, xdmoon, yuefliu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.18-1.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 10:31:14 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:
Bug Depends On:    
Bug Blocks: 1269194, 1355878, 1385841    
Attachments:
Description Flags
customer tested patch none

Comment 2 James Hartsock 2016-08-09 18:38:31 UTC
Created attachment 1189376 [details]
customer tested patch

Had customer apply attached patch and reported things working for them now.

# rpm -q virt-who
virt-who-0.16-8.el6.noarch
# service virt-who stop
# cd /
# cat /root/bz1361445.patch | patch -p1 -b -z .bz1361445
patching file usr/share/virt-who/virt/esx/esx.py
# service virt-who start


Not sure related or not yet, but seems virt entitlements are not correct yet.  So may need additional steps after fix if is related

Comment 5 Radek Novacek 2016-10-11 14:05:39 UTC
Fixed in virt-who-0.18-1.el6.

Comment 8 yuefliu 2017-02-08 09:05:05 UTC
The bug doesn't reproduce on RHEL-6.9-20170202.0 (virt-who-0.18-3.el6.noarch) with satellite6.2.6, virt-who can correctelly report hypervisor hostname without "." to the sat server when the hostname is configured without domain name, just "server". So verified it.


*******/rhsm.log*******
2017-02-08 04:03:32,824 [virtwho.main DEBUG] MainProcess(10488):MainThread @subscriptionmanager.py:hypervisorCheckIn:196 - Host-to-guest mapping: {
    "host1.rhts.eng.pek2.redhat.com": [
        {
            "guestId": "421d1083-25f6-f8d0-b31a-f98ec7e4a87c", 
            "state": 5, 
            "attributes": {
                "active": 0, 
                "virtWhoType": "esx"
            }
        }
    ], 
    "server": [
        {
            "guestId": "421de5a3-a462-2fae-656b-094173934a0d", 
            "state": 1, 
            "attributes": {
                "active": 1, 
                "virtWhoType": "esx"
            }
        }, 
        {
            "guestId": "421ce0fc-af56-2476-0edc-20deed295e37", 
            "state": 5, 
            "attributes": {
                "active": 0, 
                "virtWhoType": "esx"
            }
        }
    ]
}
2017-02-08 04:03:35,158 [virtwho.main DEBUG] MainProcess(10488):MainThread @executor.py:send_report:102 - Report for config "sate-esx" sent

Comment 10 errata-xmlrpc 2017-03-21 10:31:14 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-2017-0675.html