root@cloud1:~# glance image-list
+--------------------------------------+-----------------------------------+-------------+------------------+-------------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+-----------------------------------+-------------+------------------+-------------+--------+
| 102b2ad1-724d-4a71-a14a-7c46ec779800 | another-cirros-raw | raw | bare | 41126400 | active |
| 143c8e08-5e63-4c12-98f8-5281b4dccd74 | w2k8x64virtio | raw | ovf | 34359738368 | active |
| 26913719-a3dd-47d0-9dd3-ab3c43e1a832 | rhel-6.3-x86_64-minimal-net-net | raw | bare | 5368709120 | active |
| 2793ec6d-c705-4201-b7e0-bc9e3e437e99 | precise-server-cloudimg-amd64-raw | raw | bare | 2147483648 | active |
| 29cadc20-9b7b-479d-9cf3-781e2e730323 | smoke-test-17199 | raw | bare | 41126400 | active |
| 33413113-bdbd-4c83-9395-edccdcb47b3b | cirros-0.3.0-x86_64 | qcow2 | bare | 9761280 | active |
| 47348b19-8d1f-46d7-a9cf-b4b5592f6276 | smoke-test-13678 | raw | bare | 41126400 | active |
| 508116f8-aaa9-4dea-80c3-e06f55c20255 | w2k8x64virtioproper | raw | ovf | 34359738368 | active |
| 621e0155-5e72-4380-bd78-031be17a8dae | precise-server-cloudimg-amd64 | qcow2 | bare | 232914944 | active |
| 742b10c2-98ba-4077-834f-c5a9031aafbf | rhel-6.3-x86_64-minimal | raw | bare | 5368709120 | active |
| 7665d5cb-d9eb-4107-9c86-34425e3d6a53 | w2k8-iaas | raw | ovf | 53687091200 | active |
| 78924e97-b5ad-47f8-8aec-a0b6951292f9 | windows2008r2-raw | raw | bare | 34359738368 | active |
| 83fb108a-03ce-493b-af22-ed5557eefafc | cirros-0.3.0.raw | raw | bare | 41126400 | active |
| 842fa5b1-7458-4db2-9ae4-391d2f943437 | windows2008r2-virtio.raw | raw | bare | 34359738368 | active |
| 8ed374fa-e950-4d0b-8644-c23f93ce6062 | rhel-6.3-x86_64-minimal-net | raw | bare | 5368709120 | active |
| a3f1473d-ce67-4a14-978c-36fd015625b8 | windows2008r2-raw | raw | bare | 34359738368 | active |
| a6ec9ddb-eb7c-4cd8-93ce-63f5261f30aa | cirros_cmd_vol_snap | raw | bare | | active |
| b2210588-7e80-4d4c-9c72-8f68d2bb49d0 | w2k8x64 | raw | bare | 53687091200 | active |
| c7ec2f2b-5ea3-46ea-939b-90bf358a81e3 | yet-another-cirros-raw | raw | bare | 41126400 | active |
| cbeefdf3-6e02-44be-8582-baf5976d8d47 | smoke-test-13512 | raw | bare | 41126400 | active |
| d43bf4ae-e728-40d1-8855-395371033c87 | smoke-test-8360 | raw | bare | 41126400 | active |
+--------------------------------------+-----------------------------------+-------------+------------------+-------------+--------+
Good idea on the integers vs letters.....but when I do one that starts with a letter, I get the same thing.
HTTP/1.1 500 Internal Server Error
date: Tue, 06 Nov 2012 15:29:35 GMT
content-length: 3450
content-type: text/plain
connection: close
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
response = req.get_response(self.application)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
application, catch_exc_info=False)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
return self.app(env, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
response = req.get_response(self.application)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
application, catch_exc_info=False)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
return app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, 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 159, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 532, in __call__
request, **action_args)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 549, in dispatch
return method(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/utils.py", line 408, in wrapped
return func(self, req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 836, in delete
req.context, id)
File "/usr/lib/python2.7/dist-packages/glance/store/__init__.py", line 259, in safe_delete_from_backend
return delete_from_backend(context, uri, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/store/__init__.py", line 239, in delete_from_backend
return store.delete(loc)
File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 267, in delete
with rbd.Image(ioctx, loc.image) as image:
File "/usr/lib/python2.7/dist-packages/rbd.py", line 299, in __init__
raise TypeError('name must be a string')
TypeError: name must be a string
Request returned failure status.
None
HTTPInternalServerError (HTTP 500)
Sure.
Here is my glance image-list
root@cloud1:~# glance image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- -----+- ------- -----+- ------- ------- ---+--- ------- ---+--- -----+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- -----+- ------- -----+- ------- ------- ---+--- ------- ---+--- -----+ 724d-4a71- a14a-7c46ec7798 00 | another-cirros-raw | raw | bare | 41126400 | active | 5e63-4c12- 98f8-5281b4dccd 74 | w2k8x64virtio | raw | ovf | 34359738368 | active | a3dd-47d0- 9dd3-ab3c43e1a8 32 | rhel-6. 3-x86_64- minimal- net-net | raw | bare | 5368709120 | active | c705-4201- b7e0-bc9e3e437e 99 | precise- server- cloudimg- amd64-raw | raw | bare | 2147483648 | active | 9b7b-479d- 9cf3-781e2e7303 23 | smoke-test-17199 | raw | bare | 41126400 | active | bdbd-4c83- 9395-edccdcb47b 3b | cirros-0.3.0-x86_64 | qcow2 | bare | 9761280 | active | 8d1f-46d7- a9cf-b4b5592f62 76 | smoke-test-13678 | raw | bare | 41126400 | active | aaa9-4dea- 80c3-e06f55c202 55 | w2k8x64virtioproper | raw | ovf | 34359738368 | active | 5e72-4380- bd78-031be17a8d ae | precise- server- cloudimg- amd64 | qcow2 | bare | 232914944 | active | 98ba-4077- 834f-c5a9031aaf bf | rhel-6. 3-x86_64- minimal | raw | bare | 5368709120 | active | d9eb-4107- 9c86-34425e3d6a 53 | w2k8-iaas | raw | ovf | 53687091200 | active | b5ad-47f8- 8aec-a0b6951292 f9 | windows2008r2-raw | raw | bare | 34359738368 | active | 03ce-493b- af22-ed5557eefa fc | cirros-0.3.0.raw | raw | bare | 41126400 | active | 7458-4db2- 9ae4-391d2f9434 37 | windows2008r2- virtio. raw | raw | bare | 34359738368 | active | e950-4d0b- 8644-c23f93ce60 62 | rhel-6. 3-x86_64- minimal- net | raw | bare | 5368709120 | active | ce67-4a14- 978c-36fd015625 b8 | windows2008r2-raw | raw | bare | 34359738368 | active | eb7c-4cd8- 93ce-63f5261f30 aa | cirros_cmd_vol_snap | raw | bare | | active | 7e80-4d4c- 9c72-8f68d2bb49 d0 | w2k8x64 | raw | bare | 53687091200 | active | 5ea3-46ea- 939b-90bf358a81 e3 | yet-another- cirros- raw | raw | bare | 41126400 | active | 6e02-44be- 8582-baf5976d8d 47 | smoke-test-13512 | raw | bare | 41126400 | active | e728-40d1- 8855-395371033c 87 | smoke-test-8360 | raw | bare | 41126400 | active | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- -----+- ------- -----+- ------- ------- ---+--- ------- ---+--- -----+
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 102b2ad1-
| 143c8e08-
| 26913719-
| 2793ec6d-
| 29cadc20-
| 33413113-
| 47348b19-
| 508116f8-
| 621e0155-
| 742b10c2-
| 7665d5cb-
| 78924e97-
| 83fb108a-
| 842fa5b1-
| 8ed374fa-
| a3f1473d-
| a6ec9ddb-
| b2210588-
| c7ec2f2b-
| cbeefdf3-
| d43bf4ae-
+------
Good idea on the integers vs letters.....but when I do one that starts with a letter, I get the same thing.
root@cloud1:~# glance --debug image-delete d43bf4ae- e728-40d1- 8855-395371033c 87 7bc4807d646b8ce fd' -H 'Content-Type: application/ octet-stream' -H 'User-Agent: python- glanceclient' http:// 10.101. 54.11:9292/ v1/images/ d43bf4ae- e728-40d1- 8855-395371033c 87
curl -i -X DELETE -H 'X-Auth-Token: b816df6905384be
HTTP/1.1 500 Internal Server Error
date: Tue, 06 Nov 2012 15:29:35 GMT
content-length: 3450
content-type: text/plain
connection: close
Traceback (most recent call last): python2. 7/dist- packages/ eventlet/ wsgi.py" , line 382, in handle_one_response n(self. environ, start_response) python2. 7/dist- packages/ webob/dec. py", line 147, in __call__ python2. 7/dist- packages/ webob/dec. py", line 210, in call_func python2. 7/dist- packages/ glance/ common/ wsgi.py" , line 326, in __call__ response( self.applicatio n) python2. 7/dist- packages/ webob/request. py", line 1086, in get_response info=False) python2. 7/dist- packages/ webob/request. py", line 1055, in call_application self.environ, start_response) python2. 7/dist- packages/ keystone/ middleware/ auth_token. py", line 278, in __call__ python2. 7/dist- packages/ webob/dec. py", line 147, in __call__ python2. 7/dist- packages/ webob/dec. py", line 210, in call_func python2. 7/dist- packages/ glance/ common/ wsgi.py" , line 326, in __call__ response( self.applicatio n) python2. 7/dist- packages/ webob/request. py", line 1086, in get_response info=False) python2. 7/dist- packages/ webob/request. py", line 1055, in call_application self.environ, start_response) python2. 7/dist- packages/ paste/urlmap. py", line 203, in __call__ python2. 7/dist- packages/ webob/dec. py", line 159, in __call__ python2. 7/dist- packages/ routes/ middleware. py", line 131, in __call__ python2. 7/dist- packages/ webob/dec. py", line 159, in __call__ python2. 7/dist- packages/ webob/dec. py", line 147, in __call__ python2. 7/dist- packages/ webob/dec. py", line 210, in call_func python2. 7/dist- packages/ glance/ common/ wsgi.py" , line 532, in __call__ python2. 7/dist- packages/ glance/ common/ wsgi.py" , line 549, in dispatch python2. 7/dist- packages/ glance/ common/ utils.py" , line 408, in wrapped python2. 7/dist- packages/ glance/ api/v1/ images. py", line 836, in delete python2. 7/dist- packages/ glance/ store/_ _init__ .py", line 259, in safe_delete_ from_backend from_backend( context, uri, **kwargs) python2. 7/dist- packages/ glance/ store/_ _init__ .py", line 239, in delete_from_backend python2. 7/dist- packages/ glance/ store/rbd. py", line 267, in delete python2. 7/dist- packages/ rbd.py" , line 299, in __init__
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
request, **action_args)
File "/usr/lib/
return method(*args, **kwargs)
File "/usr/lib/
return func(self, req, *args, **kwargs)
File "/usr/lib/
req.context, id)
File "/usr/lib/
return delete_
File "/usr/lib/
return store.delete(loc)
File "/usr/lib/
with rbd.Image(ioctx, loc.image) as image:
File "/usr/lib/
raise TypeError('name must be a string')
TypeError: name must be a string
Request returned failure status. verError (HTTP 500)
None
HTTPInternalSer