Created attachment 1246264 [details] RHV screenshot with FQDN Description of problem: RHV has the FQDN for my VMs but that is not showing as Hostname filed in CFME. Version-Release number of selected component (if applicable): RHV 4.0.5.5-0.1.el7ev CFME 5.6.3.3.20161128141841_49d925b How reproducible: I can reproduce in Red Hat Consulting Lab in IAD. Let me know if someone needs access to see. Steps to Reproduce: 1. Connect CFME to a RHV provider 2. Install RHV tools on VM 3. Verify FQDN is populated for VM in RHV 4. Go to CFME, no Hostname is listed for VM Actual results: No hostname in CFME for VM that has FQDN in RHV. Expected results: If RHV has the FQDN for a VM then that should be populated as the Hostname in CFME. Additional info: Attached screen shots of RHV and CFME.
Tested it on CFME-5.7.1.1, For A VM that run on RHV-4.0.6, and has FQDN (host name), and it's FQDN is seen in RHV webadmin, on CFME, in VM details window, "hostnames" field is empty.
@Ilanit Wahoo, I am not crazy!
The ovirt gem doesn't read the hostname value from the ovirt-engine response, therefore it isn't being persisted to CFME. For v3, using ovirt gem, the field is reported under: <vm> <guest_info> <fqdn>server1.example.com</fqdn> </guest_info> </vm> For v4, using ovirt-engine-sdk-ruby, the field is reported under: <vm> <fqdn>server1.example.com</fqdn> </vm> On CFME side, vm's hostname is persisted per network/vm nic, however for the ovirt-engine it is reported once per host. Therefore it will be kept on CFME db for the first recorded nic/network/ip.
https://github.com/ManageIQ/ovirt/pull/79
https://github.com/ManageIQ/manageiq/pull/14609
New commit detected on ManageIQ/ovirt/master: https://github.com/ManageIQ/ovirt/commit/83abcc98e1d2de3b56a24fcb86baa698f63e767c commit 83abcc98e1d2de3b56a24fcb86baa698f63e767c Author: Moti Asayag <masayag> AuthorDate: Sun Apr 2 16:17:58 2017 +0300 Commit: Moti Asayag <masayag> CommitDate: Sun Apr 2 23:24:41 2017 +0300 RHV VM not retrieving FQDN The PR adds the ability to retrieve the FQDN when it is reported by the VM's guest agent. https://bugzilla.redhat.com/show_bug.cgi?id=1417965 lib/ovirt/vm.rb | 3 +++ 1 file changed, 3 insertions(+)
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/7
Still ON_DEV OVirt PR was merged. Waiting for manageiq-gems-pending PR [1] to be merged, to include ovirt's gem with the fix for this bug. Next, manageiq-providers-ovirt PR could be merged. [1] https://github.com/ManageIQ/manageiq-gems-pending/pull/127 [2] https://github.com/ManageIQ/manageiq-providers-ovirt/pull/7
The pull request to use the new version of the 'ovirt' gem has been moved to th manageiq-providers-ovirt repository: Use version 0.16.0 of the 'ovirt' gem https://github.com/ManageIQ/manageiq-providers-ovirt/pull/20
New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/b57698ba9b875f9d1709c71a8d39c92d250634e4 commit b57698ba9b875f9d1709c71a8d39c92d250634e4 Author: Moti Asayag <masayag> AuthorDate: Sun Apr 2 22:43:44 2017 +0300 Commit: Moti Asayag <masayag> CommitDate: Thu Apr 13 11:17:42 2017 +0300 RHV VM not saving FQDN The PR allows to save the FQDN when it is reported by the VM's guest agent. https://bugzilla.redhat.com/show_bug.cgi?id=1417965 .../manageiq/providers/redhat/infra_manager/refresh/parse/parser.rb | 5 +++++ .../redhat/infra_manager/refresh/parse/strategies/vm_inventory.rb | 3 +++ .../providers/redhat/infra_manager/refresh/refresher_3_1_spec.rb | 2 +- .../providers/redhat/infra_manager/refresh/refresher_4_1_spec.rb | 1 + .../providers/redhat/infra_manager/refresh/refresher_3_1.yml | 2 +- 5 files changed, 11 insertions(+), 2 deletions(-)
Verified on CFME-5.9.0.4/RHV-4.1.6