The V1 API was disabled when deploying glance and an error occurred using Nova Image-list
Nova Image-listerror (clientexception): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (REQUEST-ID:REQ-70664768-3D60-434B-B812-E0251029A9DF)
See the following error from the Nova-api log
2015-08-13 17:33:46.478-TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", Line 274, in detail
Open it
/usr/lib/python2.7/dist-packages/nova/image/glance.py
In the 269 lines of this file,
def detail (Self, context, **kwargs): "" "calls out to glance for a list of detailed Image information. "" " params = _extract_query_params (Kwargs) try: images = self._client.call (context, 1, ' list ', **params) except Exception: _reraise_translated_exception () _images = [] for image in images: if _is_image_available (context, image): _images.append (_translate_ From_glance (image)) return _images
Note that this line
Images = Self._client.call (context, 1, ' list ', **params)
Description, Nova Image-list is using the Glance API v1. If, manually change to 2, after restarting Nova-api, perform Nova image-list,glance image-list
Nova image-list+----+------+--------+--------+| ID | Name | Status | Server |+----+------+--------+--------+ +----+------+--------+--------+glance image-list+------------------------ --------------+---------------------+| ID | Name |+--------------------------------------+---------------------+| d3f23850-4725-48c6-bc75-ad791afcb622 | cirros-0.3.4-x86_64 |+--------------------------------------+---------------------+
When Nova Image-list calls the Glance API, it should be the parameter of the V1 that is used.
This article is from the "Wuling Grassland" blog, please make sure to keep this source http://penguintux.blog.51cto.com/3021117/1684423
Disable Glance API v1 cause Nova Image-list error