Ask Your Question

Glance & Nova-api id error and how to fix it**

asked 2016-09-08 16:45:07 -0500

fifi gravatar image

updated 2016-09-14 18:14:59 -0500

I created an image with Diskimage-builder and installed python-pip, python-dev, pyhton-eventlet, python-routes, pyhton-webob, and python-paramiko on it. I uploaded this image to the glance. I wanted to delete the uploaded image for some reson, but glance couldn't delete it. In fact glance deleted the image but did not change its status to deleted. After facing this problem, my nova cannot create an instance. My attempts to lunch an instance lead to the following error message:

ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-273c3006-846a-4e3c-bac3-3325b1973dfa)

I checked all nova and neutron agent lists. They all are working fine. I reinstalled rabbitmq, and checked my nova.conf for any problem. None of them worked for me. I also check different nova log file and just just found an error in my nova.api log:

2016-09-07 20:48:27.247 20065 ERROR nova.api.openstack [req-94a5eaab-cce7-4b26-b895-a83edf02bb5c None] Caught error: id

Any help would be highly apreciated.

My nova.conf


rpc_backend = rabbit
rabbit_host = controller
rabbit_password = service_pass
auth_strategy = keystone
my_ip =
vncserver_listen =
vncserver_proxyclient_address =
verbose = True
network_api_class =
security_group_api = neutron
linuxnet_interface_driver =
firewall_driver = nova.virt.firewall.NoopFirewallDriver

service_metadata_proxy = True
metadata_proxy_shared_secret = METADATA_SECRET

connection = mysql://nova:NOVA_DBPASS@controller/nova

auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = nova
admin_password = service_pass

url = http://controller:9696
auth_strategy = keystone
admin_auth_url = http://controller:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = service_pass

host = controller

My nova.api log:

2016-09-07 20:48:26.383 20043 INFO nova.osapi_compute.wsgi.server [req-04b95aca-82e9-40ca-80a4-983f78dec9f3 None] "GET /v2/3820f4ef246a4859afbcda121114844b/servers/detail?project_id=3820f4ef246a4859afbcda121114844b HTTP/1.1" status: 200 len: 211 time: 0.1374729
2016-09-07 20:48:26.394 20043 INFO nova.osapi_compute.wsgi.server [req-4c16b867-e508-4c98-8dbf-c1a31aaaebf4 None] "GET /v2/3820f4ef246a4859afbcda121114844b/os-keypairs HTTP/1.1" status: 200 len: 212 time: 0.0068040
2016-09-07 20:48:26.578 20050 INFO nova.osapi_compute.wsgi.server [req-827d3318-7f9d-47fb-a399-979700d3f739 None] "GET /v2/3820f4ef246a4859afbcda121114844b/extensions HTTP/1.1" status: 200 len: 22227 time: 0.0785420
2016-09-07 20:48:27.247 20065 ERROR nova.api.openstack [req-94a5eaab-cce7-4b26-b895-a83edf02bb5c None] Caught error: id
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack Traceback (most recent call last):
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/", line 124, in __call__
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack     return req.get_response(self.application)
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/", line 1320, in send
2016-09-07 20:48:27.247 20065 TRACE nova ...
edit retag flag offensive close merge delete


Attempt remove package python-pip

curl "" -o ""
dbaxps gravatar imagedbaxps ( 2016-09-09 08:28:11 -0500 )edit

On RDO yum install python-pip python-devel affects python-novaclient via my experience
I need for instance python-magnumclient to be packaged on RDO to be installed smoothly, rather then installed via pip.

dbaxps gravatar imagedbaxps ( 2016-09-09 08:34:36 -0500 )edit
dbaxps gravatar imagedbaxps ( 2016-09-09 08:38:27 -0500 )edit

Thanks for your reply.

fifi gravatar imagefifi ( 2016-09-16 00:26:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-09-13 19:49:48 -0500

fifi gravatar image

The error caused by glance. It couldn't send correct image id to nova for furthur processes. To solve this problem

1- I reinstalled glance and python-glanceclient.

2- By default nova call glance client to query image metadata by using glance api version 1. I modify /usr/lib/python2.7/dist-packages/nova/image/ as below

def get(self, context, id_or_uri, include_locations=False,   ========changed to========>   def get(self, context, id_or_uri, include_locations=True,

3- In /etc/glance/glance.api.conf make the glance use api version to 2. enable_v2_api = True

4- restart glance-api, glance-registry, and nova-api. Everything should work fine.

edit flag offensive delete link more


I guess python packages I installed on my image caused this problem.

fifi gravatar imagefifi ( 2016-09-16 00:28:33 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-09-08 16:45:07 -0500

Seen: 576 times

Last updated: Sep 14 '16