"nova image-create" doesn't work for rbd backed

Bug #1196678 reported by weiguo sun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Undecided
Unassigned

Bug Description

Hi,

I did the following on our grizzly setup with RBD as the storage backend for both glance and cinder,

# nova image-create 21793c0b-6595-4b02-9e2b-8e4177365a67 image-from-wgs-rhenova l64-tst
ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-01064eff-ef54-4a5e-b4d5-a6c5a6f4f2c0)

The nova-api log is showing as following,

2013-07-01 12:38:53.125 8177 INFO nova.osapi_compute.wsgi.server [-] (8177) accepted ('10.29.126.72', 42763)

2013-07-01 12:38:53.209 INFO nova.osapi_compute.wsgi.server [req-91999bee-b726-426b-80e1-6e4f70d85728 94cb0f488f0c4dfba1ddc691108d0923 3637769023e047
b29c9bb672decca472] 10.29.126.72 "GET /v2/3637769023e047b29c9bb672decca472/servers/21793c0b-6595-4b02-9e2b-8e4177365a67 HTTP/1.1" status: 200 len: 15
08 time: 0.0827971

2013-07-01 12:38:53.210 8177 INFO nova.osapi_compute.wsgi.server [-] (8177) accepted ('10.29.126.72', 42769)

2013-07-01 12:38:53.287 ERROR nova.api.openstack [req-01064eff-ef54-4a5e-b4d5-a6c5a6f4f2c0 94cb0f488f0c4dfba1ddc691108d0923 3637769023e047b29c9bb672d
ecca472] Caught error: Image could not be found.
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack Traceback (most recent call last):
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return req.get_response(self.application)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack application, catch_exc_info=False)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in
 __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return self.app(env, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack response = self.app(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in __call__
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack content_type, body, accept)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 942, in _process_stack
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1022, in dispatch
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return method(req=request, **action_args)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/common.py", line 436, in inner
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return f(*args, **kwargs)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 1343, in _action_create_image
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack src_image = self.compute_api.image_service.show(context, img)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 239, in show
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack _reraise_translated_image_exception(image_id)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 237, in show
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack image = self._client.call(context, 1, 'get', image_id)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 182, in call
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return getattr(client.images, method)(*args, **kwargs)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 104, in get
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack % urllib.quote(image_id))
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 260, in raw_request
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack return self._http_request(url, method, **kwargs)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 221, in _http_request
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack raise exc.from_response(resp, body_str)
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack ImageNotFound: Image could not be found.
2013-07-01 12:38:53.287 8177 TRACE nova.api.openstack
2013-07-01 12:38:53.289 INFO nova.api.openstack [req-01064eff-ef54-4a5e-b4d5-a6c5a6f4f2c0 94cb0f488f0c4dfba1ddc691108d0923 3637769023e047b29c9bb672decca472] http://10.29.126.72:8774/v2/3637769023e047b29c9bb672decca472/servers/21793c0b-6595-4b02-9e2b-8e4177365a67/action returned with HTTP 404
2013-07-01 12:38:53.290 INFO nova.osapi_compute.wsgi.server [req-01064eff-ef54-4a5e-b4d5-a6c5a6f4f2c0 94cb0f488f0c4dfba1ddc691108d0923 3637769023e047b29c9bb672decca472] 10.29.126.72 "POST /v2/3637769023e047b29c9bb672decca472/servers/21793c0b-6595-4b02-9e2b-8e4177365a67/action HTTP/1.1" status: 404 len: 272 time: 0.0793591

Thanks. --weiguo

Tags: drivers rbd
Mike Perez (thingee)
tags: added: drivers rbd
Revision history for this message
Haomai Wang (haomai) wrote :
Changed in cinder:
status: New → Incomplete
Revision history for this message
weiguo sun (wsun2) wrote :

Please close this bug. I will refile it under nova section given the traceback came from nova-api.

Thanks. --weiguo

Revision history for this message
weiguo sun (wsun2) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.