Bug 1414005 - RFE - Azure Orchestration Service Retirement does not delete VMs
Summary: RFE - Azure Orchestration Service Retirement does not delete VMs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.5
Assignee: Bill Wei
QA Contact: Dave Johnson
URL:
Whiteboard: azure:stack:retirement
Depends On: 1393842
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-17 14:26 UTC by Satoe Imaishi
Modified: 2020-06-11 13:12 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
See https://bugzilla.redhat.com/show_bug.cgi?id=1414005#c6
Clone Of: 1393842
Environment:
5.6.2.1
Last Closed: 2018-12-11 15:26:35 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 3 CFME Bot 2017-01-26 15:06:20 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/3b62031bdd73791e3c8c4fa230634b290064335e

commit 3b62031bdd73791e3c8c4fa230634b290064335e
Author:     Bill Wei <bilwei>
AuthorDate: Tue Jan 17 15:39:27 2017 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Tue Jan 17 15:40:24 2017 -0500

    Aceept option to delete all associated resources
    
    Upstream commit 71e9ea4a549450dda09c34a95a8911d566821046
    There is a difference from the upstream where by default all resources are deleted
    with the stack. For Darga we will only delete resources when the flag is on.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1414005

 .../manageiq/providers/azure/cloud_manager/orchestration_stack.rb    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comment 4 Bill Wei 2017-01-26 16:47:10 UTC
Dan,
Assigning to you. We need to upgrade the armrest gem for 5.6.
You can assign it back to me when it is done. I'll add comment how to enable this feature.

Comment 5 Daniel Berger 2017-03-22 20:03:54 UTC
Bill, https://github.com/ManageIQ/manageiq/pull/13311 was merged. Back over to you!

Comment 6 Bill Wei 2017-03-27 18:21:06 UTC
For backward compatibility purpose the delete VMs at stack retirement feature is enabled by default only for product >= 5.8.

To manually turn on the feature for users on V5.6 the automate script needs a change as following:

Cloud/Orchestration/Retirement/Statemachines/Methods/remove_from_provider

change
stack.raw_delete_stack
to
stack.raw_delete_stack(true)

Note: above change can be applied for Azure stacks only. 

Need documentation update.


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