Ask Your Question
0

nova image-show get error

asked 2016-05-08 22:59:50 -0500

jacob.zhang gravatar image
An error message "ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-23bd9f49-7864-45d8-8a7b-7afac274f143)" throw out when executed command "nova image-show"
But any thing is OK when execute "nova image-list ,glance image-list and glance image-show"

Any ideal and details as bellow:
1. Packages
[root@controller ~]# rpm -qa openstack*
openstack-utils-2014.2-1.el7.noarch
openstack-nova-conductor-2015.1.2-1.el7.noarch
openstack-nova-api-2015.1.2-1.el7.noarch
openstack-keystone-2015.1.2-1.el7.noarch
openstack-glance-2015.1.3-2.el7.noarch
openstack-nova-common-2015.1.2-1.el7.noarch
openstack-nova-cert-2015.1.2-1.el7.noarch
openstack-nova-novncproxy-2015.1.2-1.el7.noarch
openstack-selinux-0.6.41-1.el7.noarch
openstack-nova-console-2015.1.2-1.el7.noarch
openstack-nova-scheduler-2015.1.2-1.el7.noarch
[root@controller ~]# rpm -qa python-*
python-pycadf-0.8.0-1.el7.noarch
python-novaclient-2.23.0-1.el7.noarch
python-oslo-concurrency-1.8.2-1.el7.noarch
python-openstackclient-1.0.3-2.el7.noarch
python-elasticsearch-1.4.0-2.el7.noarch
python-oslo-vmware-0.11.1-1.el7.noarch
python-simplegeneric-0.8-7.el7.noarch
python-websockify-0.6.0-2.el7.noarch
python-oslo-rootwrap-1.6.0-1.el7.noarch
python-paramiko-1.15.1-1.el7.noarch
python-psutil-2.2.1-1.el7.x86_64
python-pyudev-0.15-7.el7_2.1.noarch
python-perf-3.10.0-327.13.1.el7.x86_64
python-six-1.9.0-2.el7.noarch
python-prettytable-0.7.2-2.el7.centos.noarch
python-simplejson-3.5.3-5.el7.x86_64
python-zope-interface-4.0.5-4.el7.x86_64
python-netifaces-0.10.4-1.el7.x86_64
python-cmd2-0.6.8-3.el7.noarch
python-urllib3-1.13.1-3.el7.noarch
python-chardet-2.2.1-1.el7_1.noarch
python-idna-2.0-1.el7.noarch
python-enum34-1.0.4-1.el7.noarch
python-jsonpointer-1.9-2.el7.noarch
python-anyjson-0.3.3-3.el7.noarch
python-dogpile-core-0.4.1-2.el7.noarch
python-qpid-0.32-13.el7.noarch
python-httplib2-0.9.2-1.el7.noarch
python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
python-oslo-config-1.9.3-1.el7.noarch
python-migrate-0.10.0-1.el7.noarch
python-pysaml2-3.0.2-1.el7.noarch
python-alembic-0.8.3-3.el7.noarch
python-fixtures-1.4.0-2.el7.noarch
python-keystoneclient-1.3.0-1.el7.noarch
python-oslo-messaging-1.8.3-1.el7.noarch
python-neutronclient-2.4.0-1.el7.noarch
python-oslo-policy-0.3.1-1.el7.noarch
python-swiftclient-2.4.0-1.el7.noarch
python-debtcollector-0.3.0-3.el7.noarch
python-osprofiler-0.3.0-1.el7.noarch
python-pygments-2.0.2-4.el7.noarch
python-rfc3986-0.2.0-1.el7.noarch
python-libs-2.7.5-34.el7.x86_64
python-decorator-3.4.0-3.el7.noarch
python-IPy-0.75-6.el7.noarch
python-iniparse-0.4-9.el7.noarch
python-ldappool-1.0-4.el7.noarch
python-urlgrabber-3.10-7.el7.noarch
python-requests-2.9.1-2.el7.noarch
python-unicodecsv-0.14.1-4.el7.noarch
python-oauthlib-0.7.2-5.20150520git514cad7.el7.noarch
python-jsonpatch-1.2-3.el7.centos.noarch
python-editor-0.4-4.el7.noarch
python-kombu-3.0.32-1.el7.noarch
python-dogpile-cache-0.5.7-3.el7.noarch
python-repoze-lru-0.4-3.el7.noarch
python-setuptools-0.9.8-4.el7.noarch
python-oslo-context-0.2.0-5.el7.noarch
python-paste-deploy-1.5.2-6.el7.noarch
python-unittest2-1.1.0-4.el7.noarch
python-memcached-1.54-3.el7.noarch
python-oslo-i18n-1.5.0-3.el7.noarch
python-oslo-middleware-1.0.0-2.el7.noarch
python-cinderclient-1.2.1-1.el7.noarch
python-oslo-log-1.0.0-1.el7.noarch
python-keystone-2015.1.2-1.el7.noarch
python-futures-3.0.3-1.el7.noarch
python-glance-store-0.4.0-1.el7.noarch
python-wrapt-1.10.5-3.el7.x86_64
python-devel-2.7.5-34.el7.x86_64
python-taskflow-0.7.1-2.el7.noarch
python-glance-2015.1.3-2.el7.noarch
python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
python-lxml-3.2.1-4.el7.x86_64
python-cheetah-2.4.4-5.el7.centos.x86_64
python-nova-2015.1.2-1.el7.noarch
python-pbr-1.8.1-2.el7 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-13 15:44:51 -0500

fifi gravatar image

Your solution works if you also set enable_v2_api = True in your glance.api.conf file

edit flag offensive delete link more
0

answered 2016-05-19 00:02:29 -0500

kumar lakshman kumar gravatar image

Hi Jacob, looks like the glance API config option in nova is work in progress. https://blueprints.launchpad.net/nova...

edit flag offensive delete link more
1

answered 2016-05-09 02:57:37 -0500

jacob.zhang gravatar image

As i checked, default nova call glance client to query image metadata by using version 1 If i modify /usr/lib/python2.7/site-packages/nova/image/api.py as below and query again, version 2 of glance api will be called and i got right result that i wanted.

-70     def get(self, context, id_or_uri, include_locations=False,
+70     def get(self, context, id_or_uri, include_locations=True,
[root@controller ~]# nova image-show 32293c92-36ff-4928-a48e-4492a16107d7
+----------------------+--------------------------------------+
| Property             | Value                                |
+----------------------+--------------------------------------+
| OS-EXT-IMG-SIZE:size | 13287936                             |
| created              | 2016-05-08T08:55:58Z                 |
| id                   | 32293c92-36ff-4928-a48e-4492a16107d7 |
| minDisk              | 0                                    |
| minRam               | 0                                    |
| name                 | cirros-0.3.4-x86_64                  |
| progress             | 100                                  |
| status               | ACTIVE                               |
| updated              | 2016-05-08T08:55:59Z                 |
+----------------------+--------------------------------------+

Now, new question is: how to specify glance api version to nova service, are there some configure item?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-05-08 22:59:50 -0500

Seen: 377 times

Last updated: Sep 13 '16