Ask Your Question

Revision history [back]

Openstack Kilo 3 node setup: Error in Nova launch vm: The server has either erred or is incapable? is this with accessing glance image?

#nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=2b1416ed-ba5a-48a5-bc45-3e5afb793e41   --security-group default --key-name demo-key demo-instance1

DEBUG (session:195) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:395) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:224) RESP: [200] Vary: X-Auth-Token Content-Type: application/json Content-Length: 250 X-Openstack-Request-Id: req-f7b99f83-c2ae-49b8-9262-a18058a6e308 Date: Wed, 21 Sep 2016 13:40:01 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:171) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:395) "POST /v3/auth/tokens HTTP/1.1" 201 3250
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/5c7a30f269d145a7ae7775fc12b8d001/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f13ce0b953154512f90767d34f34f5fe8050d3dc"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:395) "GET /v2/5c7a30f269d145a7ae7775fc12b8d001/images HTTP/1.1" 200 508
DEBUG (session:224) RESP: [200] Content-Type: application/json Content-Length: 508 X-Compute-Request-Id: req-c4edb137-8808-4ba8-81b2-046ea6ca737a Date: Wed, 21 Sep 2016 13:40:01 GMT Connection: keep-alive
RESP BODY: {"images": [{"id": "6ae96fe9-c7e2-4a65-a430-cf536de4b7b2", "links": [{"href": "http://controller:8774/v2/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2", "rel": "self"}, {"href": "http://controller:8774/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2", "rel": "bookmark"}, {"href": "http://controller:9292/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.4-x86_64"}]}

DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f13ce0b953154512f90767d34f34f5fe8050d3dc"
DEBUG (connectionpool:395) "GET /v2/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2 HTTP/1.1" 500 128
DEBUG (session:224) RESP:
DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-efb7c299-79de-4fad-8c01-e7ed23d1a4cb)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 495, in do_boot
    boot_args, boot_kwargs = _boot(cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 142, in _boot
    image = _find_image(cs, args.image)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1894, in _find_image
    return utils.find_resource(cs.images, image)
  File "/usr/lib/python2.7/site-packages/novaclient/utils.py", line 216, in find_resource
    return manager.find(**kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 196, in find
    matches = self.findall(**kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 258, in findall
    found.append(self.get(obj.id))
  File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get
    return self._get("/images/%s" % base.getid(image), "image")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-efb7c299-79de-4fad-8c01-e7ed23d1a4cb)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-efb7c299-79de-4fad-8c01-e7ed23d1a4cb)

Is this something with permissions on glance images folder?
Here are the permissions for glance
-rw-r----- 1 glance glance 13287936 Sep  2 20:19 6ae96fe9-c7e2-4a65-a430-cf536de4b7b2

and here is the Nova - api log

File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return resp(environ, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return self._call_app(env, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return resp(environ, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return resp(environ, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     response = self.app(environ, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return resp(environ, start_response)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     content_type, body, accept)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 83, in show
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     image = self._image_api.get(context, id)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     show_deleted=show_deleted)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 309, in show
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     include_locations=include_locations)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 483, in _translate_from_glance
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     include_locations=include_locations)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 545, in _extract_attributes
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     queued = getattr(image, 'status') == 'queued'
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     self.get()
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     new = self.manager.get(self.id)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack     raise AttributeError(k)
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack AttributeError: id
2016-09-21 03:55:51.259 4530 TRACE nova.api.openstack
2016-09-21 03:55:51.260 4530 INFO nova.api.openstack [req-90c5f546-414c-4bd8-b623-276edc1fbb59 11c51d5a6ed841f0bbbf68902a1af853 5c7a30f269d145a7ae7775fc12b8d001 - - -] http://controller:8774/v2
/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2 returned with HTTP 500
2016-09-21 03:55:51.260 4530 INFO nova.osapi_compute.wsgi.server [req-90c5f546-414c-4bd8-b623-276edc1fbb59 11c51d5a6ed841f0bbbf68902a1af853 5c7a30f269d145a7ae7775fc12b8d001 - - -] 10.19.21.13 "
GET /v2/5c7a30f269d145a7ae7775fc12b8d001/images/6ae96fe9-c7e2-4a65-a430-cf536de4b7b2 HTTP/1.1" status: 500 len: 359 time: 0.0311739


Can any one help to narrow down the issue? Thanks is advance.