禁用glance api v1 引起nova image-list 报错
2021-10-01 05:14
标签:nova performing glance 在部署glance时禁用了v1 api,使用nova image-list出现了报错nova image-list ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-70664768-3d60-434b-b812-e0251029a9df)从nova-api日志上看到有下面一报错2015-08-13 17:33:46.478 17 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 274, in detail打开/usr/lib/python2.7/dist-packages/nova/image/glance.py在这个文件的269行, 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注意,这一行images = self._client.call(context, 1, ‘list‘, **params)说明,nova image-list使用的是glance api v1。如果,手动改为2,重启nova-api后,执行nova image-list,glance image-listnova image-list +----+------+--------+--------+ | ID | Name | Status | Server | +----+------+--------+--------+ +----+------+--------+--------+ glance image-list +--------------------------------------+---------------------+ | ID | Name | +--------------------------------------+---------------------+ | d3f23850-4725-48c6-bc75-ad791afcb622 | cirros-0.3.4-x86_64 | +--------------------------------------+---------------------+nova image-list 调用glance api时,应是使用的v1的参数。本文出自 “武陵荒草” 博客,请务必保留此出处http://penguintux.blog.51cto.com/3021117/1684423禁用glance api v1 引起nova image-list 报错标签:nova performing glance 原文地址:http://penguintux.blog.51cto.com/3021117/1684423
上一篇:css添加方法
下一篇:solarwind 2002
文章标题:禁用glance api v1 引起nova image-list 报错
文章链接:http://soscw.com/index.php/essay/108273.html