Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova image-show get error

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.noarch
python-netaddr-0.7.18-1.el7.noarch
python-slip-dbus-0.4.0-2.el7.noarch
python-posix_ipc-0.9.8-1.el7.x86_64
python-tempita-0.5.1-8.el7.noarch
python-keyring-5.0-4.el7.noarch
python-pycurl-7.19.0-17.el7.x86_64
python-amqp-1.4.6-1.el7.noarch
python-warlock-1.0.1-1.el7.noarch
python-extras-0.0.3-2.el7.noarch
python-ply-3.4-10.el7.noarch
python-linecache2-1.0.0-1.el7.noarch
python-routes-1.13-2.el7.noarch
python-babel-1.3-6.el7.noarch
python-paste-1.7.5.1-9.20111221hg1498.el7.noarch
python-beaker-1.5.4-10.el7.noarch
python-markupsafe-0.11-10.el7.x86_64
python-mimeparse-0.1.4-2.el7.noarch
python-oslo-utils-1.4.0-1.el7.noarch
python-keystonemiddleware-1.5.1-1.el7.noarch
python-glanceclient-0.17.0-2.el7.noarch
python-oslo-db-1.7.1-1.el7.noarch
python-semantic_version-2.4.2-1.el7.noarch
python-nose-1.3.7-7.el7.noarch
python-networkx-core-1.10-1.el7.noarch
python-markdown-2.4.1-1.el7.centos.noarch
python-jinja2-2.7.2-2.el7.noarch
python-webob-1.4.1-2.el7.noarch
python-slip-0.4.0-2.el7.noarch
python-sqlalchemy-1.0.11-1.el7.x86_64
python-configobj-4.7.2-7.el7.noarch
python-ldap-2.4.15-2.el7.x86_64
python-jsonschema-2.3.0-1.el7.noarch
python-retrying-1.2.3-4.el7.noarch
python-ipaddress-1.0.7-4.el7.noarch
python-sqlparse-0.1.18-5.el7.noarch
python-dateutil-1.5-7.el7.noarch
python-saslwrapper-0.16-5.el7.x86_64
python-pycparser-2.14-1.el7.noarch
python-qpid-common-0.32-13.el7.noarch
python-traceback2-1.4.0-2.el7.noarch
python-backports-1.0-8.el7.x86_64
python-stevedore-1.8.0-1.el7.noarch
python-cliff-1.15.0-1.el7.noarch
python-repoze-who-2.1-1.el7.noarch
python-mako-0.8.1-2.el7.noarch
python-testtools-1.8.0-2.el7.noarch
python-oslo-serialization-1.4.0-1.el7.noarch

2. Environment variable
[root@controller ~]# env | grep OS
OS_PROJECT_DOMAIN_ID=default
HOSTNAME=controller.mycloud.com
OS_IMAGE_API_VERSION=2
OS_USER_DOMAIN_ID=default
OS_PROJECT_NAME=admin
OS_PASSWORD=admin
OS_AUTH_URL=http://controller:35357/v3
OS_USERNAME=admin
OS_TENANT_NAME=admin

3. Execute result
[root@controller ~]# glance image-list
+--------------------------------------+---------------------+
| ID                                   | Name                |
+--------------------------------------+---------------------+
| 32293c92-36ff-4928-a48e-4492a16107d7 | cirros-0.3.4-x86_64 |
+--------------------------------------+---------------------+
[root@controller ~]# glance image-show 32293c92-36ff-4928-a48e-4492a16107d7
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6     |
| container_format | bare                                 |
| created_at       | 2016-05-08T08:55:58Z                 |
| disk_format      | qcow2                                |
| id               | 32293c92-36ff-4928-a48e-4492a16107d7 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros-0.3.4-x86_64                  |
| owner            | 8627ab6006cf48e6a720aed61c606816     |
| protected        | False                                |
| size             | 13287936                             |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2016-05-08T08:55:59Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+

[root@controller ~]# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID                                   | Name                | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| 32293c92-36ff-4928-a48e-4492a16107d7 | cirros-0.3.4-x86_64 | ACTIVE |        |
+--------------------------------------+---------------------+--------+--------+
[root@controller ~]# nova image-show 32293c92-36ff-4928-a48e-4492a16107d7
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-08f3b4d3-3bbd-4dc3-929a-718b92d8463f)
When error occured, log of onova-api as below:

2016-05-09 11:43:28.985 20126 INFO nova.osapi_compute.wsgi.server [req-f7a00813-a221-44ab-99cd-1213b72af8ea ece8a0ecdacc4834a12b0079f6e41c97 8627ab6006cf48e6a720aed61c606816 - - -] 10.0.0.11 "GET /v2/8627ab6006cf48e6a720aed61c606816/images/detail HTTP/1.1" status: 200 len: 889 time: 0.5705180
2016-05-09 11:43:43.251 20126 ERROR nova.api.openstack [req-08f3b4d3-3bbd-4dc3-929a-718b92d8463f ece8a0ecdacc4834a12b0079f6e41c97 8627ab6006cf48e6a720aed61c606816 - - -] Caught error: id
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack Traceback (most recent call last):
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return req.get_response(self.application)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1317, in send
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     application, catch_exc_info=False)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1281, in call_application
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return self._call_app(env, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     response = self.app(environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     content_type, body, accept)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 83, in show
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     image = self._image_api.get(context, id)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     show_deleted=show_deleted)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 309, in show
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     include_locations=include_locations)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 483, in _translate_from_glance
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     include_locations=include_locations)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 545, in _extract_attributes
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     queued = getattr(image, 'status') == 'queued'
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     self.get()
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     new = self.manager.get(self.id)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack     raise AttributeError(k)
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack AttributeError: id
2016-05-09 11:43:43.251 20126 TRACE nova.api.openstack 
2016-05-09 11:43:43.328 20126 INFO nova.api.openstack [req-08f3b4d3-3bbd-4dc3-929a-718b92d8463f ece8a0ecdacc4834a12b0079f6e41c97 8627ab6006cf48e6a720aed61c606816 - - -] http://controller:8774/v2/8627ab6006cf48e6a720aed61c606816/images/32293c92-36ff-4928-a48e-4492a16107d7 returned with HTTP 500
2016-05-09 11:43:43.332 20126 INFO nova.osapi_compute.wsgi.server [req-08f3b4d3-3bbd-4dc3-929a-718b92d8463f ece8a0ecdacc4834a12b0079f6e41c97 8627ab6006cf48e6a720aed61c606816 - - -] 10.0.0.11 "GET /v2/8627ab6006cf48e6a720aed61c606816/images/32293c92-36ff-4928-a48e-4492a16107d7 HTTP/1.1" status: 500 len: 359 time: 0.6284380