'nova resize-revert' does not handle the deleted flavor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ken'ichi Ohmichi |
Bug Description
'nova resize-revert' does not handle the deleted flavor,
and an exception happens in the case.
* How to reproduce the problem on DevStack:
$ nova flavor-create sample 10 512 0 2
$ nova boot --image cirros-
$ nova resize test01 m1.tiny
$ nova flavor-delete 10
$ nova resize-revert test01
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-b0d3e016-
$
I feel it is better that 'nova resize-revert' prints a error reason like
"Previous flavor could not be found".
* The contents of nova.log
---
2012-12-15 01:10:07 22693 ERROR nova.manager [-] Error during ComputeManager.
2012-12-15 01:10:07 22693 TRACE nova.manager Traceback (most recent call last):
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager task(self, context)
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager retval = f(*args, **kwargs)
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager self._update_
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager self._update_
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager instance_type = instance_
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager return db.instance_
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager return IMPL.instance_
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager return f(*args, **kwargs)
2012-12-15 01:10:07 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:10:07 22693 TRACE nova.manager raise exception.
2012-12-15 01:10:07 22693 TRACE nova.manager InstanceTypeNot
2012-12-15 01:10:07 22693 TRACE nova.manager
[..]
2012-12-15 01:11:31 22693 AUDIT nova.compute.
2012-12-15 01:11:31 22693 ERROR nova.manager [-] Error during ComputeManager.
2012-12-15 01:11:31 22693 TRACE nova.manager Traceback (most recent call last):
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager task(self, context)
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager rt.update_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager retval = f(*args, **kwargs)
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager self._update_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager self._update_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager instance_type = instance_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager return db.instance_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager return IMPL.instance_
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager return f(*args, **kwargs)
2012-12-15 01:11:31 22693 TRACE nova.manager File "/opt/stack/
2012-12-15 01:11:31 22693 TRACE nova.manager raise exception.
2012-12-15 01:11:31 22693 TRACE nova.manager InstanceTypeNot
2012-12-15 01:11:31 22693 TRACE nova.manager
description: | updated |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/18284
Review: https:/