Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1361431

Summary: Virt-who should not add
Product: Red Hat Enterprise Linux 7 Reporter: Ashish Humbe <ahumbe>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-29 06:19:27 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:

Description Ashish Humbe 2016-07-29 05:36:34 UTC
Description of problem:

If the domain name is not configured correctly on the ESX hypervisor then virt-who report hypervisor hostname as "server1." instead of "server1". In satellite v 6.2 the hostname validation if implemented so it does not allow to save the hypervisor entry with "." at the end. 

As per discussion with Radek, this issue is because of the below code.

elif self.config.hypervisor_id == 'hostname':
uuid ="%(
)s" % host

After discussion the change is made in the upstream virt-who code, so the extra "." will not be added in the hostname if domain name is not set.

How reproducible:
Always if the domain name is not configured on the ESX hypervisor

Creating this bugzilla to merge this change in latest version of virt-who package in RHEL 7.