cinder list with metadata filter doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Juan Manuel Ollé |
Bug Description
cinder list does not work with --metadata filtered
>cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| b67cffdd-
| cd2880ae-
+------
one of them has the readonly metadata attribute setted
cinder show test
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-04-
| display_description | None |
| display_name | test |
| encrypted | False |
| id | cd2880ae-
| metadata | {u'readonly': u'True'} |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+------
cinder show test2
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-04-
| display_description | None |
| display_name | test2 |
| encrypted | False |
| id | b67cffdd-
| metadata | {} |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+------
But if I try to get the list with the metadata readonly as True it return that no volume has it setted
cinder list --metadata readonly=True
+----+-
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+----+-
+----+-
It is spected that volume test is listed (it has the readonly attribute setted)
Changed in cinder: | |
assignee: | nobody → Juan Manuel Ollé (juan-m-olle) |
Changed in cinder: | |
milestone: | none → juno-1 |
no longer affects: | python-cinderclient |
tags: | added: icehouse-backport-potential |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-1 → 2014.2 |
Cinder log:
2014-04-22 15:59:35.078 DEBUG routes.middleware [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Matched GET /55088aa5b5054b 878b11d765e960c 459/volumes/ detail from (pid=19904) __call__ /usr/lib/ python2. 7/dist- packages/ routes/ middleware. py:100 f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Route path: '/{project_ id}/volumes/ detail' , defaults: {'action': u'detail', 'controller': <cinder. api.openstack. wsgi.Resource object at 0x3e91f90>} from (pid=19904) __call__ /usr/lib/ python2. 7/dist- packages/ routes/ middleware. py:102 f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Match dict: {'action': u'detail', 'controller': <cinder. api.openstack. wsgi.Resource object at 0x3e91f90>, 'project_id': u'55088aa5b5054 b878b11d765e960 c459'} from (pid=19904) __call__ /usr/lib/ python2. 7/dist- packages/ routes/ middleware. py:103 api.openstack. wsgi [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] GET http:// 192.168. 41.101: 8776/v1/ 55088aa5b5054b8 78b11d765e960c4 59/volumes/ detail? metadata= %7B%27readonly% 27%3A+% 27True% 27%7D api.openstack. wsgi [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Empty body provided in request from (pid=19904) get_body /opt/stack/ cinder/ cinder/ api/openstack/ wsgi.py: 787 f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Searching by: MultiDict( [('metadata' , {'readonly': 'True'})]) from (pid=19904) get_all /opt/stack/ cinder/ cinder/ volume/ api.py: 294 openstack. common. lockutils [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] Got semaphore "dbapi_backend" for method "__get_backend"... from (pid=19904) inner /opt/stack/ cinder/ cinder/ openstack/ common/ lockutils. py:191 api.openstack. wsgi [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] http:// 192.168. 41.101: 8776/v1/ 55088aa5b5054b8 78b11d765e960c4 59/volumes/ detail? metadata= %7B%27readonly% 27%3A+% 27True% 27%7D returned with HTTP 200 wsgi.server [req-c6ceb63e- f7f3-485b- a670-6159cd4de1 d0 2a9a2562c222468 6a9ab35c9cc6a77 da 55088aa5b5054b8 78b11d765e960c4 59] 192.168.41.101 - - [22/Apr/2014 15:59:35] "GET /v1/55088aa5b50 54b878b11d765e9 60c459/ volumes/ detail? metadata= %7B%27readonly% 27%3A+% 27True% 27%7D HTTP/1.1" 200 253 0.235086
2014-04-22 15:59:35.079 DEBUG routes.middleware [req-c6ceb63e-
2014-04-22 15:59:35.079 DEBUG routes.middleware [req-c6ceb63e-
2014-04-22 15:59:35.080 INFO cinder.
2014-04-22 15:59:35.080 DEBUG cinder.
2014-04-22 15:59:35.081 DEBUG cinder.volume.api [req-c6ceb63e-
2014-04-22 15:59:35.082 DEBUG cinder.
2014-04-22 15:59:35.168 INFO cinder.
2014-04-22 15:59:35.172 INFO eventlet.