Bug 1393842

Summary: RFE - Azure Orchestration Service Retirement does not delete VMs
Product: Red Hat CloudForms Management Engine Reporter: Gellert Kis <gekis>
Component: ProvidersAssignee: Bill Wei <bilwei>
Status: CLOSED CURRENTRELEASE QA Contact: Jeff Teehan <jteehan>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: bsorota, cpelland, fdewaley, jfrey, jhardy, jocarter, obarenbo, saali, simaishi
Target Milestone: GAKeywords: FutureFeature, TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: azure:stack:retirement
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1414003 1414005 (view as bug list) Environment:
5.6.2.1
Last Closed: 2017-06-12 17:12:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1414003, 1414005    

Comment 4 Bill Wei 2016-11-14 15:27:41 UTC
When we retire an Orchestration service, the resulting stack will be retired. We do not force to retire VMs that belong to the stack. It is because other providers such as Amazon and Openstack, when a stack is deleted, all associated resources are automatically deleted together with the stack. However this is not the case for Azure, that only the stack (deployment) is deleted, leaving its associated resources untouched.

As an RFE, we could add logic to force to delete associated resources to a stack, not limit only to VMs.

There will be some issues concerning the stack retirement. We should have further discussions somewhere else.

Comment 8 CFME Bot 2017-01-16 17:32:44 UTC
New commit detected on ManageIQ/manageiq-providers-azure/master:
https://github.com/ManageIQ/manageiq-providers-azure/commit/71e9ea4a549450dda09c34a95a8911d566821046

commit 71e9ea4a549450dda09c34a95a8911d566821046
Author:     Bill Wei <bilwei>
AuthorDate: Mon Jan 16 09:12:55 2017 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Mon Jan 16 09:26:24 2017 -0500

    Delete all resources when deleting a stack
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1393842

 .../manageiq/providers/azure/cloud_manager/orchestration_stack.rb     | 2 +-
 .../providers/azure/cloud_manager/orchestration_stack_spec.rb         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comment 9 Bill Wei 2017-01-16 19:24:05 UTC
Merged to upstream

Comment 12 Jeff Teehan 2017-04-17 19:45:04 UTC
It's working now as of 5.8.0.10  Moving to verified.