Bug 1445018 - Error when displaying reconfigure dialog page for VM if VM has no Flavor
Summary: Error when displaying reconfigure dialog page for VM if VM has no Flavor
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.0
Assignee: Sam Lucidi
QA Contact: Ola Pavlenko
URL:
Whiteboard: vm:reconfigure
Depends On:
Blocks: 1446277
TreeView+ depends on / blocked
 
Reported: 2017-04-24 18:02 UTC by Petr Blaho
Modified: 2018-03-06 14:45 UTC (History)
9 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1446277 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:45:50 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
500 response instead of data (71.35 KB, image/png)
2017-04-24 18:02 UTC, Petr Blaho
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1445005 0 high CLOSED Error page when going to Reconfigure for Instance 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1445011 0 high CLOSED Buttons on reconfigure dialog for VM do not work 2021-02-22 00:41:40 UTC

Internal Links: 1445005 1445011

Description Petr Blaho 2017-04-24 18:02:45 UTC
Created attachment 1273683 [details]
500 response instead of data

Description of problem:
When VM has no Flavor (as a result of fix for in https://bugzilla.redhat.com/show_bug.cgi?id=1437624 ) server got error "undefined method `root_disk_size' for nil:NilClass [vm_cloud/resize_form_fields]"

Version-Release number of selected component (if applicable):
master of manageiq, manageiq-providers-openstack repos
master of manage-ui-classic repo with applied patch from https://github.com/ManageIQ/manageiq-ui-classic/pull/1139


How reproducible:
Always, easy.

Steps to Reproduce:
1. Apply https://github.com/ManageIQ/manageiq-ui-classic/pull/1139 to fix https://bugzilla.redhat.com/show_bug.cgi?id=1445005
2. Have a VM and more then 2 Flavors in OpenStack
3. Delete Flavor which VM has assigned in OpenStack UI (or from CLI)
4. Do a refresh on ManageIQ part.
5. Go to VM details page
6. Click on "Configuration" in toolbar, then "Reconfigure this instance"

Actual results:
Popup with "Server Error" label and error information. See attached screenshot.

Expected results:
Reconfigure VM dialog with dropdown filled with Flavors. 

Additional info:

Comment 2 Dave Johnson 2017-04-25 15:07:39 UTC
Luke, is this the case with all VMs or only OSP?  Is this a new regression introduced or is in present in 5.7.2?

Tentatively setting blocker until we get more information.

Comment 3 Tzu-Mainn Chen 2017-04-25 17:56:03 UTC
Dave, keep in mind this is only an issue when someone has deleted a flavor for a running instance.  I'm not sure this is a blocker, considering that such instances wouldn't even refresh properly for the past couple of releases.

Comment 4 luke couzens 2017-04-25 18:45:50 UTC
This is OSP only.

Comment 6 Satoe Imaishi 2017-04-27 14:56:39 UTC
PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/1163


Note You need to log in before you can comment on or make changes to this bug.