nova/nova/api/openstack/compute/views
Matt Riedemann 2e68b2298e Pre-load expected attrs that the view builder needs for server details
There is a race between getting the instances from the database and
when the view builder shows the details.  If an instance is deleted
before lazy-loading some info, like the flavor, then the view
builder fails with an InstanceNotFound and the request returns a 500
in the v2.1 case and a 404 in the v2 case.

We can have the view builder tell the API code what attributes it
expects when it gets the instance from the database so that we don't
have to do any lazy loading in the view builder.

Change-Id: Ie03ab415baaa9e88c423a1c60a40d53b4cc464c4
Closes-Bug: #1487570
2015-08-25 11:43:01 -07:00
..
__init__.py Implements blueprint separate-nova-volumeapi 2012-01-13 09:06:55 -08:00
addresses.py Remove extended addresses from V2.1 update & rebuild 2015-03-04 16:08:02 +09:00
flavors.py GET details REST API next link missing 'details' 2015-01-26 21:09:53 +00:00
images.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
limits.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
servers.py Pre-load expected attrs that the view builder needs for server details 2015-08-25 11:43:01 -07:00
versions.py Fix link's href to consider osapi_compute_link_prefix 2015-08-24 11:18:15 +09:00