Bug 1290908

Summary: RFE: Support Azure VM retirement
Product: Red Hat CloudForms Management Engine Reporter: Bill Wei <bilwei>
Component: AutomateAssignee: Bill Wei <bilwei>
Status: CLOSED ERRATA QA Contact: Jeff Teehan <jteehan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: gmccullo, jhardy, jprause, mkanoor, obarenbo, tfitzger
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:azure:retire
Fixed In Version: 5.6.0.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1291274 (view as bug list) Environment:
Last Closed: 2016-06-29 15:19:56 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: 1291274    

Description Bill Wei 2015-12-11 21:18:58 UTC
Description of problem:

An Azure instance should be retirable from the Lifecycle menu. 

For selected Azure instances to be qualified for retirement, currently they need to have tag "retire_full" in category "lifecycle". The category can be added through the configuration if not exist.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2015-12-23 15:01:02 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/d2a164f2370b2cba7de69ffd3a904faeb722a31b

commit d2a164f2370b2cba7de69ffd3a904faeb722a31b
Author:     Bill Wei <bilwei>
AuthorDate: Tue Dec 15 17:11:09 2015 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Tue Dec 15 18:15:16 2015 -0500

    Support Azure VM retirement
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1290908

 .../StateMachines/Methods.class/__class__.yaml     | 44 +++++++++++++++++++++-
 .../__methods__/amazon_pre_retirement.rb           |  4 +-
 .../__methods__/azure_pre_retirement.rb            | 10 +++++
 .../__methods__/azure_pre_retirement.yaml          | 12 ++++++
 .../__methods__/openstack_pre_retirement.rb        |  2 +-
 .../Methods.class/checkpreretirement.yaml          |  2 +
 .../StateMachines/Methods.class/preretirement.yaml |  2 +
 .../method_validation/azure_pre_retirement_spec.rb | 24 ++++++++++++
 8 files changed, 95 insertions(+), 5 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/Cloud/VM/Retirement/StateMachines/Methods.class/__methods__/azure_pre_retirement.rb
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/Cloud/VM/Retirement/StateMachines/Methods.class/__methods__/azure_pre_retirement.yaml
 create mode 100644 spec/automation/unit/method_validation/azure_pre_retirement_spec.rb

Comment 4 CFME Bot 2015-12-23 20:48:42 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=8d59b06e6ca33ad59c84ca9434470bf06da71eca

commit 8d59b06e6ca33ad59c84ca9434470bf06da71eca
Author:     Bill Wei <bilwei>
AuthorDate: Tue Dec 15 17:11:09 2015 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Wed Dec 23 13:26:00 2015 -0500

    Support Azure VM retirement
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1290908

 .../StateMachines/Methods.class/__class__.yaml     | 44 +++++++++++++++++++++-
 .../__methods__/amazon_pre_retirement.rb           |  4 +-
 .../__methods__/azure_pre_retirement.rb            | 10 +++++
 .../__methods__/azure_pre_retirement.yaml          | 12 ++++++
 .../__methods__/openstack_pre_retirement.rb        |  2 +-
 .../Methods.class/checkpreretirement.yaml          |  2 +
 .../StateMachines/Methods.class/preretirement.yaml |  2 +
 .../method_validation/azure_pre_retirement_spec.rb | 24 ++++++++++++
 8 files changed, 95 insertions(+), 5 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/Cloud/VM/Retirement/StateMachines/Methods.class/__methods__/azure_pre_retirement.rb
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/Cloud/VM/Retirement/StateMachines/Methods.class/__methods__/azure_pre_retirement.yaml
 create mode 100644 spec/automation/unit/method_validation/azure_pre_retirement_spec.rb

Comment 5 Jeff Teehan 2016-04-18 16:53:47 UTC
This is working correctly from all places where terminate can be initiated.  Moving to verifed as tested on 5.6.0.1 Beta 2 using https://10.16.7.174/miq_request/show/415r4

Comment 7 errata-xmlrpc 2016-06-29 15:19:56 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/RHBA-2016:1348