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