Description of problem: After migration of VMs on a RHEVM 3.6 from a single original host, to a new host added to the setup, and removal of the original host, Infrastructure Hosts on CFME side, still show the original host. Refreshing the provider doesn't change the situation. The Version-Release number of selected component (if applicable): CFME 5.6.1.0.20160726144018_810a94f RHEVM 3.6.8-0.1 Cannot provide logs ATM, since the CFME appliance has connection issues.
https://github.com/ManageIQ/manageiq/pull/13511
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/e346b46655f672c64458266ebe5ccb36f075c056 commit e346b46655f672c64458266ebe5ccb36f075c056 Author: Boris Odnopozov <bodnopoz> AuthorDate: Mon Jan 16 15:52:03 2017 +0200 Commit: Boris Odnopozov <bodnopoz> CommitDate: Tue Jan 17 14:03:50 2017 +0200 Save host for a Vm after migration Fix saving the host of a Vm after it was migrated when doing targeted refresh of the Vm. Before if the hosts inventory was not fetched sperately by the refresh, the host of a VM was not updated properly even though its uid was returned as part of the target Vm inventory. Now we take the information from the Vm inventory and use it to update the Vms host properly. https://bugzilla.redhat.com/show_bug.cgi?id=1368925 .../redhat/infra_manager/refresh/parse/parser.rb | 25 +- .../refresh/refresher_target_vm_spec.rb | 131 +- .../refresh/refresher_after_migration.yml | 721 +++++++ .../refresh/refresher_before_migration.yml | 2127 ++++++++++++++++++++ 4 files changed, 2950 insertions(+), 54 deletions(-) create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresh/refresher_after_migration.yml create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresh/refresher_before_migration.yml
New commit detected on ManageIQ/manageiq/euwe: https://github.com/ManageIQ/manageiq/commit/649a069b5f8141b8b08d7a7076da0a860888667f commit 649a069b5f8141b8b08d7a7076da0a860888667f Author: Boris Odnopozov <bodnopoz> AuthorDate: Mon Jan 16 15:52:03 2017 +0200 Commit: Piotr Kliczewski <piotr.kliczewski> CommitDate: Mon Jan 23 23:01:31 2017 +0100 Save host for a Vm after migration Fix saving the host of a Vm after it was migrated when doing targeted refresh of the Vm. Before if the hosts inventory was not fetched sperately by the refresh, the host of a VM was not updated properly even though its uid was returned as part of the target Vm inventory. Now we take the information from the Vm inventory and use it to update the Vms host properly. https://bugzilla.redhat.com/show_bug.cgi?id=1368925 .../redhat/infra_manager/refresh_parser.rb | 25 +- .../infra_manager/refresher_target_vm_spec.rb | 131 +- .../infra_manager/refresher_after_migration.yml | 721 +++++++ .../infra_manager/refresher_before_migration.yml | 2127 ++++++++++++++++++++ 4 files changed, 2950 insertions(+), 54 deletions(-) create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresher_after_migration.yml create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresher_before_migration.yml
Verified on CFME-5.8.0.13/RHV-4.1.1.8 Migrated a VM running on host 1 to host 2. The host displayed in the VM's details page got updated to host 2, as expected. * Removing the dependency in bug 1448690, as full refresh eventually worked. * Filed bug 1448693 to address the problem this bug reported originally (The Host is not removed from CFME: Hosts.