Comment 7 for bug 1196666

Revision history for this message
Haomai Wang (haomai) wrote :

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>