Bug 1283716

Summary: Setting Retirement Date from Cloud provider->Instances->Lifecycle fails
Product: Red Hat CloudForms Management Engine Reporter: lgalis
Component: UI - OPSAssignee: lgalis
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: high    
Version: 5.5.0CC: dajohnso, dclarizi, hkataria, jhardy, jprause, lgalis, mpovolny, obarenbo, sshveta
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: service:catalog
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1291342 (view as bug list) Environment:
Last Closed: 2016-06-29 15:03:22 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: 1291342    
Attachments:
Description Flags
retire Instance none

Description lgalis 2015-11-19 16:30:13 UTC
Description of problem:


undefined method `find' for nil:NilClass [vm/retire] 

When clicking on Lifecycle-> Set retirement dates when navigating from Cloud provider->Instances

How reproducible:


Steps to Reproduce:
1.Cloud provider
2.Instances
3.Select a one and click Lifecycle-> Set retirement

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2015-12-04 18:52:17 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e3fc3ab131c890321ace3e925c7e2003bb6be73f

commit e3fc3ab131c890321ace3e925c7e2003bb6be73f
Author:     Laura Galis <lgalis>
AuthorDate: Fri Nov 20 18:09:26 2015 -0500
Commit:     Laura Galis <lgalis>
CommitDate: Thu Dec 3 16:35:41 2015 -0500

    Fix for Retire Toolbar from Cloud Provider Instances list page
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283716

 app/controllers/application_controller/ci_processing.rb |  5 +++--
 app/views/vm/retire.html.haml                           |  2 ++
 spec/controllers/ems_common_controller_spec.rb          | 16 ++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 app/views/vm/retire.html.haml

Comment 5 CFME Bot 2015-12-17 17:51:46 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d8a2f0d341a70fd48055066faa2eb7f1435076b9

commit d8a2f0d341a70fd48055066faa2eb7f1435076b9
Author:     Laura Galis <lgalis>
AuthorDate: Fri Nov 20 18:09:26 2015 -0500
Commit:     Laura Galis <lgalis>
CommitDate: Tue Dec 15 09:11:08 2015 -0500

    Fix for Retire Toolbar from Cloud Provider Instances list page
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283716
    (cherry picked from commit e3fc3ab)

 app/controllers/application_controller/ci_processing.rb |  5 +++--
 app/views/vm/retire.html.haml                           |  2 ++
 spec/controllers/ems_common_controller_spec.rb          | 16 ++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 app/views/vm/retire.html.haml

Comment 6 Shveta 2016-04-18 17:48:53 UTC
Cloud - Instance - Lifecycle - retire this Instance .
Still doesn't work .
Does not do anything .

Checked in 

5.6.0.1-beta2.20160413141124_e25ac0e

Comment 7 Shveta 2016-04-18 17:49:52 UTC
Created attachment 1148258 [details]
retire Instance

Comment 10 Shveta 2016-04-29 17:19:43 UTC
The message is shown , but nothing else changes for the VM.
The VM kept showing "Power ON" state and Retirement Date kept showing "never " in the summary page of the VM

Comment 12 Shveta 2016-04-29 18:27:09 UTC
Verifying the bug.

Comment 14 errata-xmlrpc 2016-06-29 15:03:22 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