Bug 1401003

Summary: When you delete the VM from RHEV provider side, half the time it picks archived and the other half the time it picks orphaned even though the VM's disks were deleted.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: abellott, cpelland, istein, jfrey, jhardy, masayag, obarenbo, oourfali, pkliczew, simaishi, yjog
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.7.0.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1334949 Environment:
Last Closed: 2017-01-04 13:18:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On: 1334949    
Bug Blocks:    

Comment 2 CFME Bot 2016-12-06 17:13:34 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/819c07955c329102d6f19ee1d8a72a55894bf0c6

commit 819c07955c329102d6f19ee1d8a72a55894bf0c6
Author:     Adam Grare <agrare>
AuthorDate: Thu Dec 1 09:08:14 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Fri Dec 2 11:42:17 2016 -0500

    Merge pull request #12788 from pkliczewski/master
    
    Fetch disk info when a vm removed
    (cherry picked from commit fc26fd8a18d88bcb07525201e78588e2797997f3)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1401003

 .../manageiq/providers/redhat/infra_manager/vm.rb  |  29 ++++++
 .../Event/EmsEvent/RHEVM.class/user_remove_vm.yaml |   2 +-
 .../providers/redhat/infra_manager/vm_spec.rb      |  34 +++++++
 .../redhat/infra_manager/vm_fetch_disks.yml        | 107 +++++++++++++++++++++
 .../redhat/infra_manager/vm_fetch_no_disks.yml     |  73 ++++++++++++++
 5 files changed, 244 insertions(+), 1 deletion(-)
 create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/vm_fetch_disks.yml
 create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/vm_fetch_no_disks.yml

Comment 3 Ilanit Stein 2016-12-07 12:50:39 UTC
Verified on CFME-5.7.0.14-1, RHV-4.0.5.

10 VMs, that were removed, including their disks, turned into Archived on CFME.

Comment 5 errata-xmlrpc 2017-01-04 13:18:22 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-0012.html