Bug 1414005

Summary: RFE - Azure Orchestration Service Retirement does not delete VMs
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Bill Wei <bilwei>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: bsorota, cpelland, fdewaley, jfrey, jhardy, jocarter, jprause, obarenbo, saali, simaishi
Target Milestone: GAKeywords: FutureFeature, ZStream
Target Release: 5.6.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: azure:stack:retirement
Fixed In Version: Doc Type: Enhancement
Doc Text:
See https://bugzilla.redhat.com/show_bug.cgi?id=1414005#c6
Story Points: ---
Clone Of: 1393842 Environment:
5.6.2.1
Last Closed: 2018-12-11 15:26:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1393842    
Bug Blocks:    

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.