instance_type is still set as a property value of "none" even when flavors cannot be retrieved
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Ke Wu | ||
horizon (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
* horizon throw errors when view horizon/
flavor still in use by instances.
* try to get flavor info through the flavor.get api,this can retrive the deleted
flavor info.
[Test Case]
* Launch an instance of flavor m1.tiny
on controller node do: nova flavor-delete m1.tiny, and wait for it to succeed.
on horizon look at the state of the machines, http://
syspanel/
m1.tiny and therefore can not report the status and details of the instance in
question.
[Regression Potential]
* This is a backport from upstream.
In Nova dashboard and Syspanel dashboard if the flavor of an instance cannot be retrieved the property .full_flavor will still be set to "None". If there is no error retrieving flavors and a flavor has been deleted, this can cause a large traceback in the table rendering as get_size checks if the instance object hasattr() "full_flavor" instead of for the individual values to display in the "Size" column.
Attached is a potential fix. I have also included an alternate code path that will directly query the API for a flavor's information if it is not present in the full_flavors list(); this can occur if a flavor has been deleted as api.nova.
Changed in horizon: | |
status: | New → Confirmed |
milestone: | none → folsom-1 |
importance: | Undecided → Medium |
Changed in horizon: | |
assignee: | nobody → Nebula (nebula) |
Changed in horizon: | |
milestone: | folsom-1 → folsom-2 |
Changed in horizon: | |
status: | Confirmed → In Progress |
Changed in horizon: | |
assignee: | Nebula (nebula) → Ke Wu (ke-wu) |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | folsom-2 → 2012.2 |
description: | updated |
Changed in openstack-dashboard (Ubuntu Precise): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in openstack-dashboard (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in openstack-dashboard (Ubuntu Precise): | |
assignee: | nobody → Yaguang Tang (heut2008) |
Changed in openstack-dashboard (Ubuntu): | |
assignee: | Yaguang Tang (heut2008) → nobody |
Changed in horizon (Ubuntu Precise): | |
status: | New → In Progress |
tags: | added: cts-cloud-review |
tags: | removed: cts-cloud-review |
Fix proposed to branch: master /review. openstack. org/8811
Review: https:/