Bug 1654436 - Remove_from_disk method is leaving VMs in an Orphaned State for VMware Provider
Summary: Remove_from_disk method is leaving VMs in an Orphaned State for VMware Provider
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.9.6
Assignee: Adam Grare
QA Contact: Kedar Kulkarni
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1644770
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-28 19:25 UTC by Satoe Imaishi
Modified: 2022-07-09 10:15 UTC (History)
12 users (show)

Fixed In Version: 5.9.6.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1644770
Environment:
Last Closed: 2018-12-13 15:16:02 UTC
Category: ---
Cloudforms Team: VMware
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3816 0 None None None 2018-12-13 15:16:08 UTC

Comment 2 Satoe Imaishi 2018-11-28 19:29:42 UTC
Oops.. put 'master' BZ link when backported https://github.com/ManageIQ/manageiq/pull/18200 to Gaprindashvili.


commit a79c4db3bcaa83e5665782c04f71ff13126a3afd
Author: Jason Frey <fryguy9>
Date:   Wed Nov 28 10:29:37 2018 -0500

    Merge pull request #18200 from agrare/bz_1644770_disconnect_storage_when_disconnecting_vms
    
    Disconnect storage when disconnecting the VM
    
    (cherry picked from commit 3e466eb1f562fba5743a8c4cbb66bf900b8e6a21)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1644770

Comment 3 CFME Bot 2018-11-28 19:31:43 UTC
New commit detected on ManageIQ/manageiq-content/gaprindashvili:

https://github.com/ManageIQ/manageiq-content/commit/bd8fa5379ad1ba877aac5e3ab4f7668d839cd7a2
commit bd8fa5379ad1ba877aac5e3ab4f7668d839cd7a2
Author:     Jason Frey <fryguy9>
AuthorDate: Wed Nov 28 10:32:54 2018 -0500
Commit:     Jason Frey <fryguy9>
CommitDate: Wed Nov 28 10:32:54 2018 -0500

    Merge pull request #472 from agrare/bz_1644770_disconnect_storage_when_disconnecting_vms

    Disconnect storage when disconnecting a VM

    (cherry picked from commit 6032cc1a9861563d800893a22ca7583a2e776076)

    https://bugzilla.redhat.com/show_bug.cgi?id=1654436

 content/automate/ManageIQ/System/Event/EmsEvent/EVM.class/destroyvm_task_complete.yaml | 2 -
 content/automate/ManageIQ/System/Event/EmsEvent/RHEVM.class/user_remove_vm_finished.yaml | 4 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

Comment 4 CFME Bot 2018-11-28 19:31:57 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-vmware/commit/bd97d36dd291a7decd01e0a3c762f8080fdf43e2
commit bd97d36dd291a7decd01e0a3c762f8080fdf43e2
Author:     Jason Frey <fryguy9>
AuthorDate: Wed Nov 28 10:32:26 2018 -0500
Commit:     Jason Frey <fryguy9>
CommitDate: Wed Nov 28 10:32:26 2018 -0500

    Merge pull request #336 from agrare/bz_1644770_disconnect_storage_when_disconnecting_vms

    Check EmsEvents when disconnecting storage

    (cherry picked from commit f73e67f64056d8a56ac78597824203ac58671319)

    https://bugzilla.redhat.com/show_bug.cgi?id=1654436

 app/models/manageiq/providers/vmware/infra_manager/vm_or_template_shared.rb | 1 +
 app/models/manageiq/providers/vmware/infra_manager/vm_or_template_shared/disconnect.rb | 27 +
 2 files changed, 28 insertions(+)

Comment 5 CFME Bot 2018-11-28 19:32:10 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-ovirt/commit/b7cca71ac9e6b18b9d765028b2367b3d5037ec0b
commit b7cca71ac9e6b18b9d765028b2367b3d5037ec0b
Author:     Jason Frey <fryguy9>
AuthorDate: Wed Nov 28 10:33:37 2018 -0500
Commit:     Jason Frey <fryguy9>
CommitDate: Wed Nov 28 10:33:37 2018 -0500

    Merge pull request #310 from agrare/bz_1644770_disconnect_storage_when_disconnecting_vms

    No need to override disconnect_inv from core

    (cherry picked from commit b3afbb248d40d472e90d797d0fd59ee3086e2ffc)

    https://bugzilla.redhat.com/show_bug.cgi?id=1654436

 app/models/manageiq/providers/redhat/infra_manager/vm.rb | 6 -
 1 file changed, 6 deletions(-)

Comment 6 CFME Bot 2018-11-28 19:37:12 UTC
New commit detected on ManageIQ/manageiq-automation_engine/gaprindashvili:

https://github.com/ManageIQ/manageiq-automation_engine/commit/8d0a4592908eb8b24891ef567e460388942b5204
commit 8d0a4592908eb8b24891ef567e460388942b5204
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Nov 28 14:04:56 2018 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Nov 28 14:04:56 2018 -0500

    Merge pull request #272 from agrare/disconnect_storage_no_op

    Make disconnect_storage a no-op

    (cherry picked from commit d9dcef8ce15f9b51766bed4ef65c41397a900122)

    https://bugzilla.redhat.com/show_bug.cgi?id=1654436

 lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_builtin_method.rb | 5 +-
 lib/miq_automation_engine/service_models/miq_ae_service_ems_event.rb | 3 +-
 spec/service_models/miq_ae_service_ems_event_spec.rb | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

Comment 11 Kedar Kulkarni 2018-12-07 20:31:35 UTC
On 5.9.5.6 this is verified. I was able to Retire a VM and that showed up as Archived while when I removed VM from inventory in vSphere UI it showed up in CFME as Orphaned.

Comment 13 errata-xmlrpc 2018-12-13 15:16:02 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://access.redhat.com/errata/RHSA-2018:3816


Note You need to log in before you can comment on or make changes to this bug.