Public bug reported: Making the call in the client to retrieve the extra_specs for a private flavor (that is shared with the tenant being used) fails with a "not found" exception. This is on Liberty.
(Pdb) print flavor <Flavor: mfisch> (Pdb) print flavor.name mfisch (Pdb) flavor.get_keys() *** ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'webob.exc.HTTPNotFound'> (HTTP 500) (Request-ID: req-94f15a92-4ca0-49fc-a203-27db2496735d) >From the nova API logs, note that 1059 is the ID of the flavor called "mfisch". 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] Unexpected exception in API method 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 60, in index 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return self._get_extra_specs(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 39, in _get_extra_specs 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions flavor = common.get_flavor(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/common.py", line 536, in get_flavor 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions raise exc.HTTPNotFound(explanation=error.format_message()) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions HTTPNotFound: Flavor 1059 could not be found. 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions 2016-07-19 14:49:59.286 47 INFO nova.api.openstack.wsgi [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. ** Affects: nova Importance: Undecided Status: New ** Description changed: Making the call in the client to retrieve the extra_specs for a private flavor (that is shared with the tenant being used) fails with a "not - found" exception. This is on Mitaka. + found" exception. This is on Liberty. (Pdb) print flavor <Flavor: mfisch> (Pdb) print flavor.name mfisch (Pdb) flavor.get_keys() *** ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'webob.exc.HTTPNotFound'> (HTTP 500) (Request-ID: req-94f15a92-4ca0-49fc-a203-27db2496735d) From the nova API logs, note that 1059 is the ID of the flavor called "mfisch". 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] Unexpected exception in API method 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 60, in index 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return self._get_extra_specs(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 39, in _get_extra_specs 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions flavor = common.get_flavor(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/common.py", line 536, in get_flavor 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions raise exc.HTTPNotFound(explanation=error.format_message()) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions HTTPNotFound: Flavor 1059 could not be found. 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions 2016-07-19 14:49:59.286 47 INFO nova.api.openstack.wsgi [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1604456 Title: cannot get extra_specs on private flavors Status in OpenStack Compute (nova): New Bug description: Making the call in the client to retrieve the extra_specs for a private flavor (that is shared with the tenant being used) fails with a "not found" exception. This is on Liberty. (Pdb) print flavor <Flavor: mfisch> (Pdb) print flavor.name mfisch (Pdb) flavor.get_keys() *** ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'webob.exc.HTTPNotFound'> (HTTP 500) (Request-ID: req-94f15a92-4ca0-49fc-a203-27db2496735d) From the nova API logs, note that 1059 is the ID of the flavor called "mfisch". 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] Unexpected exception in API method 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 60, in index 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions return self._get_extra_specs(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/compute/flavors_extraspecs.py", line 39, in _get_extra_specs 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions flavor = common.get_flavor(context, flavor_id) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions File "/venv/local/lib/python2.7/site-packages/nova/api/openstack/common.py", line 536, in get_flavor 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions raise exc.HTTPNotFound(explanation=error.format_message()) 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions HTTPNotFound: Flavor 1059 could not be found. 2016-07-19 14:49:59.284 47 ERROR nova.api.openstack.extensions 2016-07-19 14:49:59.286 47 INFO nova.api.openstack.wsgi [req-94f15a92-4ca0-49fc-a203-27db2496735d d8be46a10c6144278b13e6a8e8a62e8d 02b2cbfdd4ae42e1b0c5af9b60c28c93 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1604456/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp