Comment 8 for bug 1196666

Revision history for this message
weiguo sun (wsun2) wrote : RE: [Bug 1196666] Re: upload-to-image doesn't work with the Ceph RBD backend

No problem, which timezone are you based? Beijing? Any suggestions how I can get more debugging information? The debug=True is already turned for cinder.conf as well as verbose=True.
BTW, I am on IRC now and maybe we can chat quickly if you are online?
Thx for the help. --weiguo
> Date: Thu, 4 Jul 2013 03:20:26 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1196666] Re: upload-to-image doesn't work with the Ceph RBD backend
>
> I'm sorry that when you added comments and I'm asleep, we are in
> different time zone.
>
> I debug the command and insert the probe to image/glance.py, it seems
> that your client exists some errors.
>
> I suggest that you can verify your class and correspond attributes when
> debug. If you can provide more debug info, the problem will be easily
> solved.
>
> > /opt/stack/cinder/cinder/image/glance.py(149)call()
> (Pdb) p client
> <glanceclient.v1.client.Client object at 0x408d890>
> (Pdb) p client.images
> <glanceclient.v1.images.ImageManager object at 0x408d9d0>
> (Pdb) p dir(client.images)
> ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_delete', '_format_image_meta_for_user', '_get_file_size', '_image_meta_from_headers', '_image_meta_to_headers', '_list', '_update', 'api', 'create', 'data', 'delete', 'get', 'list', 'resource_class', 'update']
> (Pdb) p client.images
> <glanceclient.v1.images.ImageManager object at 0x408d9d0>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1196666
>
> Title:
> upload-to-image doesn't work with the Ceph RBD backend
>
> Status in Cinder:
> Incomplete
>
> Bug description:
> Hi all,
>
> The command (on grizzly):
>
> $ cinder upload-to-image --force True --container-format bare --disk-format raw 60595635-b4a6-42de-a2d0-488c2ac75115 new-test-image
> ERROR: The server has either erred or is incapable of performing the requested operation.
>
> The cinder-api.log:
>
> 2013-07-01 12:06:12 ERROR [cinder.api.middleware.fault] Caught error: 'Controller' object has no attribute 'create'
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/cinder/api/middleware/fault.py", line 73, in __call__
> return req.get_response(self.application)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
> application, catch_exc_info=False)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
> app_iter = application(self.environ, start_response)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
> return resp(environ, start_response)
> File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in __call__
> return self.app(env, start_response)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
> return resp(environ, start_response)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
> return resp(environ, start_response)
> File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
> response = self.app(environ, start_response)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
> return resp(environ, start_response)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
> resp = self.call_func(req, *args, **self.kwargs)
> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 803, in __call__
> content_type, body, accept)
> File "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 851, in _process_stack
> action_result = self.dispatch(meth, request, action_args)
> File "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 927, in dispatch
> return method(req=request, **action_args)
> File "/usr/lib/python2.7/dist-packages/cinder/api/contrib/volume_actions.py", line 180, in _volume_upload_image
> force)
> File "/usr/lib/python2.7/dist-packages/cinder/volume/api.py", line 63, in wrapped
> return func(self, context, target_obj, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/cinder/volume/api.py", line 717, in copy_volume_to_image
> recv_metadata = self.image_service.create(context, metadata)
> File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 245, in create
> **sent_service_image_meta)
> File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 146, in call
> return getattr(client.images, method)(*args, **kwargs)
> AttributeError: 'Controller' object has no attribute 'create'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cinder/+bug/1196666/+subscriptions