python-novaclient/releasenotes/notes/no-glance-proxy-5c13001a4b13e8ce.yaml
Sean Dague f839cf1625 Look up image names directly in glance
This does a lookup directly to the image service for name => id
mapping of images. This is required to move on to supporting the
2.36 microversion since that microversion makes the compute
image API proxy return a 404, so before the client can support
that microversion it has to first drop it's usage of the proxy
API.

Because of the way the FakeHTTPClient was stubbing the image
API proxy and the tests are not passing uuids for image IDs,
there is a lot of cleaning up of the tests to make this work
with a fake glance v2 API backend. The tests were basically
false though since you can't do 'nova image-show 1', but because
the stubs mask that it's just been a mountain of lies that has to
be cleaned up here.

As a side effect of fixing a bunch of the tests, this also
makes debugging assert_called less terrible with a better error
message.

Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>

Related to blueprint deprecate-api-proxies

Change-Id: Iaff3999eafb7d746e5c6032f07ce0756f7b5e868
2016-08-12 16:00:56 -04:00

11 lines
393 B
YAML

---
upgrade:
- |
The 2.36 microversion deprecated the image proxy API. As such, CLI calls
now directly call the image service to get image details, for example,
as a convenience to boot a server with an image name rather than the image
id. To do this the following is assumed:
#. There is an **image** entry in the service catalog.
#. The image v2 API is available.