Disable Glance API v1 cause Nova Image-list error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.