Description of problem: CFME connected to a RHV provider. VM removal on RHV side is followed by a refresh failure: In RHV provider details page, "last Refresh" field show: "Error - 4 Minutes Ago undefined method `cluster' for nil:NilClass" Version-Release number of selected component (if applicable): CFME-5.9.3.1 RHV-4.2.3 Expected results: RHV VM removal should not cause RHV refresh failure. Additional info: * Running "Refresh Relationships and power states" for the RHV provider, after the refresh failure ends up with a successful refresh. * This is not happening on CFME-5.9.3.0, therefore might be that bug is related to Graph refresh, that was switched to ON in CFME-5.9.3.1
Created attachment 1452654 [details] evm.log
Created attachment 1452657 [details] rhevm.log
This bug is indeed related to having RHV Graph refresh ON. When moving RHV Graph refresh to OFF, VM removal on RHV side, is not followed by error target refresh error.
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/264
New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/31d481adb954c50c2efa1219873af9b5be6da4ac commit 31d481adb954c50c2efa1219873af9b5be6da4ac Author: Boris Odnopozov <bodnopoz> AuthorDate: Thu Jun 21 05:41:36 2018 -0400 Commit: Boris Odnopozov <bodnopoz> CommitDate: Thu Jun 21 05:41:36 2018 -0400 Fix vm targeted refresh on removal Targeted graph refresh on deleted vm would fail. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1592430 app/models/manageiq/providers/redhat/inventory/collector/target_collection.rb | 2 +- app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 2 +- spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_graph_target_vm_spec.rb | 15 + spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresh/ovirt_sdk_refresh_graph_target_vm_removal.yml | 4557 + 4 files changed, 4574 insertions(+), 2 deletions(-)
retargeting to 5.9.3, since graph refresh is on by default in this version.
Verified on CFME-5.9.3.2 + Fix for bug 1593202 + Fix attached to this bug / RHV-4.2.3.5.
Verified on CFME-5.10.0.15 (Graph refresh is ON, by default)/RHV-4.2.3. Removal of a VM from RHV provider (done on RHV side), is followed by a successful target refresh.