nova flavor-show <id> raises 500 error if flavor is deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Bhagyashri Shewale | ||
Liberty |
Fix Released
|
Undecided
|
Nicolas Simonds |
Bug Description
Reproducible on latest master.
Tried to show deleted flavor then it raises 500 error.
Steps to reproduce:
1. Create flavor
$ nova flavor-create m2.test 10 1200 12 8
2. Delete flavor
$ nova flavor-delete 10
3. Show deleted flavor
$ nova flavor-show 10
ERROR (ClientException): Unexpected API Error. Please report this at http://
Nova api logs:
-------
from (pid=31454) _http_log_response /usr/local/
2016-01-27 15:28:14.067 DEBUG nova.api.
2016-01-27 15:28:14.082 ERROR nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.082 TRACE nova.api.
2016-01-27 15:28:14.085 INFO nova.api.
<class 'webob.
2016-01-27 15:28:14.086 DEBUG nova.api.
<class 'webob.
2016-01-27 15:28:14.097 INFO nova.osapi_
Changed in nova: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in nova: | |
assignee: | Abhishek Kekane (abhishek-kekane) → Bhagyashri Shewale (bhagyashri-shewale) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
importance: | Low → High |
milestone: | none → mitaka-3 |
I was able to reproduce this, stack trace pasted below from nova logs:
2016-02-04 23:49:50.052 DEBUG nova.api. openstack. wsgi [req-314f0442- 98f4-4cd6- 8cc1-3b75fb09ed 3f admin admin] Calling method '<bound method FlavorExtraSpec sController. index of <nova.api. openstack. compute. flavors_ extraspecs. FlavorExtraSpec sController object at 0x7ff5c513d690>>' from (pid=27806) _process_stack /opt/stack/ nova/nova/ api/openstack/ wsgi.py: 699 openstack. extensions [req-314f0442- 98f4-4cd6- 8cc1-3b75fb09ed 3f admin admin] Unexpected exception in API method openstack. extensions Traceback (most recent call last): openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ extensions. py", line 478, in wrapped openstack. extensions return f(*args, **kwargs) openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ compute/ flavors_ extraspecs. py", line 60, in index openstack. extensions return self._get_ extra_specs( context, flavor_id) openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ compute/ flavors_ extraspecs. py", line 39, in _get_extra_specs openstack. extensions flavor = common. get_flavor( context, flavor_id) openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ common. py", line 543, in get_flavor openstack. extensions raise exc.HTTPNotFoun d(explanation= error.format_ message( )) openstack. extensions HTTPNotFound: Flavor 10 could not be found. openstack. extensions openstack. wsgi [req-314f0442- 98f4-4cd6- 8cc1-3b75fb09ed 3f admin admin] HTTP exception thrown: Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible. exc.HTTPNotFoun d'> openstack. wsgi [req-314f0442- 98f4-4cd6- 8cc1-3b75fb09ed 3f admin admin] Returning 500 to user: Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible. exc.HTTPNotFoun d'> from (pid=27806) __call__ /opt/stack/ nova/nova/ api/openstack/ wsgi.py: 1070 compute. wsgi.server [req-314f0442- 98f4-4cd6- 8cc1-3b75fb09ed 3f admin admin] 10.42.0.53 "GET /v2.1/9f087ae0a 9784a1a925d8cc4 28d0b151/ flavors/ 10/os-extra_ specs HTTP/1.1" status: 500 len: 499 time: 0.1468120
2016-02-04 23:49:50.064 ERROR nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.064 TRACE nova.api.
2016-02-04 23:49:50.065 INFO nova.api.
<class 'webob.
2016-02-04 23:49:50.065 DEBUG nova.api.
<class 'webob.
2016-02-04 23:49:50.066 INFO nova.osapi_