Bug 1328083

Summary: resize instance, changing flavor throws undefined method `[]' for nil:NilClass [vm_cloud/resize_vm]
Product: Red Hat CloudForms Management Engine Reporter: Ronnie Rasouli <rrasouli>
Component: ProvidersAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, jfrey, jhardy, obarenbo, simaishi, ukalifon
Target Milestone: Beta 2   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack:vm:reconfigure
Fixed In Version: 5.6.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:50:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:

Description Ronnie Rasouli 2016-04-18 12:03:08 UTC
Description of problem:

Reconfiguring an instance changing it's flavor to larger flavor throws an error.

as described in:https://github.com/ManageIQ/manageiq/issues/7899


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



5.6.0.1-beta2.20160413141124_e25ac0e


How reproducible:
100%

Steps to Reproduce:
1.create and boot an instance
2.reconfigure the instance
3.change it's flavor to larger flavor

Actual results:

an error appear:
Unexpected error encountered Error text:

undefined method `[]' for nil:NilClass [vm_cloud/resize_vm]  



Expected results:


Additional info:

Comment 3 CFME Bot 2016-05-06 03:05:54 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/edcdac67efa4d961db161f8aef259137bb28ee03

commit edcdac67efa4d961db161f8aef259137bb28ee03
Author:     Marek Aufart <maufart>
AuthorDate: Fri Apr 29 10:58:58 2016 +0200
Commit:     Marek Aufart <maufart>
CommitDate: Mon May 2 15:30:13 2016 +0200

    Fix openstack cloud instance resize
    
    Issue #7899
    https://bugzilla.redhat.com/show_bug.cgi?id=1328083

 .../manageiq/providers/openstack/cloud_manager/vm/resize.rb    | 10 +++++++++-
 app/views/vm_common/_resize.html.haml                          |  5 +++++
 .../manageiq/providers/openstack/cloud_manager/vm_spec.rb      |  1 +
 3 files changed, 15 insertions(+), 1 deletion(-)

Comment 5 Udi Kalifon 2016-06-01 07:37:40 UTC
Verified that the error doesn't happen any more, but the instance resize is still an issue. Verified in 5.6.0.8-rc1-nightly.20160527091122_ced67ee.

Comment 7 errata-xmlrpc 2016-06-29 15:50:25 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