Bug: resize instance after edit flavor with horizon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Smith | ||
Kilo |
Fix Released
|
Medium
|
Matt Riedemann | ||
Liberty |
Fix Released
|
Medium
|
Matt Riedemann | ||
Mitaka |
Fix Released
|
Medium
|
Matt Riedemann | ||
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Liberty |
Triaged
|
Medium
|
Unassigned | ||
Mitaka |
Triaged
|
Medium
|
Unassigned | ||
nova-powervm |
Fix Released
|
Medium
|
Drew Thorstensen | ||
tempest |
Fix Released
|
Wishlist
|
Matt Riedemann | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Wily |
Triaged
|
Medium
|
Unassigned | ||
Xenial |
Triaged
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Error occured when resize instance after edit flavor with horizon (and also delete flavor used by instance)
Reproduce step :
1. create flavor A
2. boot instance using flavor A
3. edit flavor with horizon (or delete flavor A)
-> the result is same to edit or to delelet flavor because edit flavor means delete/recreate flavor)
4. resize or migrate instance
5. Error occured
Log :
nova-compute.log
File "/opt/openstack
return getattr(target, method)(*args, **kwargs)
File "/opt/openstack
result = fn(cls, context, *args, **kwargs)
File "/opt/openstack
db_flavor = db.flavor_
File "/opt/openstack
return IMPL.flavor_
File "/opt/openstack
return f(*args, **kwargs)
File "/opt/openstack
raise exception.
FlavorNotFound: Flavor 7 could not be found.
This Error is occured because of below code:
/opt/openstack/
def resize_
....
if (not instance_type or
not isinstance(
....
I think that deleted flavor should be taken when resize instance.
I tested this in stable/kilo, but I think stable/liberty and stable/mitaka has same bug because source code is not changed.
thanks.
summary: |
- Bug: Error resize instance after edit flavor with horizon + Bug: resize instance after edit flavor with horizon |
tags: | added: nova |
tags: | added: migrate resize |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in tempest: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in nova-powervm: | |
status: | Fix Released → Fix Committed |
assignee: | nobody → Drew Thorstensen (thorst) |
importance: | Undecided → Medium |
Changed in nova (Ubuntu Yakkety): | |
status: | New → Fix Released |
tags: | added: sts-sru |
no longer affects: | cloud-archive/kilo |
Changed in nova-powervm: | |
status: | Fix Committed → Fix Released |
Changed in nova (Ubuntu Wily): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in nova (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in cloud-archive: | |
importance: | Undecided → Medium |
status: | New → Fix Released |
tags: | removed: sts-sru |
Its working fine in stable/mitaka . I am able to resize the instance after deleting the flavor with which the instance is launched.