Comment 9 for bug 1196666

Revision history for this message
weiguo sun (wsun2) wrote :

please see the pdb output from glance.py. It looks like that glanceclient.v2 was called instead of v1 from your example. --weiguo

(Epdb) p client
<glanceclient.v2.client.Client object at 0x2e713d0>
(Epdb) p client.images
<glanceclient.v2.images.Controller object at 0x2ba7c50>
(Epdb) p dir(client.images)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'data', 'delete', 'get', 'http_client', 'list', 'model', 'update']
(Epdb) p client.images
<glanceclient.v2.images.Controller object at 0x2ba7c50>

After disabling "glance_api_version=2" in cinder.conf, the error dissappears and the image got registered in glance.

However, the new image creation stuck at "queued" status,

72fe1a63-6d40-4dcd-ba68-a85745218c29 | new-test-image | raw | bare | | queued |