create volume from snapshot ,the request body is not correct
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
How to reproduce:
1. create a new blank volume
2. Snapshot volume which was created at step1
3. Into volume snapshots page, create another volume source from the snapshot which was created at step2.
4. open cinder-api debug log, you can find the horizon send the request message body:
[root@compuer03 cinder]# cat cinder-api.log |grep "Create volume request body"
2015-07-22 10:32:22.093 29454 DEBUG cinder.
so, you will find the "u'snapshot_id': None," , so the volume source snapshot_id was lost.
5. I reproduce this issue in K version.
Changed in horizon: | |
assignee: | nobody → jelly (coding1314) |
Changed in horizon: | |
assignee: | jelly (coding1314) → nobody |
Changed in horizon: | |
milestone: | none → queens-1 |
I didn't find the issue in stable/kilo. I tested it in devstack.
2015-07-27 16:25:51.747 DEBUG cinder. api.v2. volumes [req-f74e8a1e- 1e05-45bc- a89b-a779e8af56 97 admin] Create volume request body: {u'volume': {u'status': u'creating', u'user_id': None, u'description': u'', u'imageRef': None, u'availability_ zone': None, 'scheduler_hints': {}, u'attach_status': u'detached', u'source_volid': None, u'name': u'aaa', u'metadata': {}, u'consistencygr oup_id' : None, u'volume_type': u'lvm', u'snapshot_id': u'76209bfb- 96f0-49c5- abca-ca5f162e4b 9f', u'project_id': None, u'source_replica': None, u'size': 1}} create /opt/stack/ cinder/ cinder/ api/v2/ volumes. py:312 api.v2. volumes [req-1a46fc83- 83c0-4fd8- bde9-d3548db165 09 admin] Create volume request body: {u'volume': {u'status': u'creating', u'user_id': None, u'description': u'', u'imageRef': None, u'availability_ zone': None, 'scheduler_hints': {}, u'attach_status': u'detached', u'source_volid': None, u'name': u'bbb', u'metadata': {}, u'consistencygr oup_id' : None, u'volume_type': u'lvm', u'snapshot_id': u'76209bfb- 96f0-49c5- abca-ca5f162e4b 9f', u'project_id': None, u'source_replica': None, u'size': 1}} create /opt/stack/ cinder/ cinder/ api/v2/ volumes. py:312 api.v2. volumes [req-f221be26- 1bc1-4204- 9b79-3d3fb76179 58 admin] Create volume request body: {u'volume': {u'status': u'creating', u'user_id': None, u'description': u'', u'imageRef': None, u'availability_ zone': None, 'scheduler_hints': {}, u'attach_status': u'detached', u'source_volid': None, u'name': u'c', u'metadata': {}, u'consistencygr oup_id' : None, u'volume_type': u'lvm', u'snapshot_id': u'76209bfb- 96f0-49c5- abca-ca5f162e4b 9f', u'project_id': None, u'source_replica': None, u'size': 1}} create /opt/stack/ cinder/ cinder/ api/v2/ volumes. py:312 api.v2. volumes [req-cddb536e- 7e00-4a17- 8dce-af621e01d5 7f admin] Create volume request body: {u'volume': {u'status': u'creating', u'user_id': None, u'description': u'', u'imageRef': None, u'availability_ zone': None, 'scheduler_hints': {}, u'attach_status': u'detached', u'source_volid': None, u'name': u'e', u'metadata': {}, u'consistencygr oup_id' : None, u'volume_type': u'lvm', u'snapshot_id': u'76209bfb- 96f0-49c5- abca-ca5f162e4b 9f', u'project_id': None, u'source_replica': None, u'size': 1}} create /opt/stack/ cinder/ cinder/ api/v2/ volumes. py:312
2015-07-27 16:27:13.328 DEBUG cinder.
2015-07-27 16:30:33.979 DEBUG cinder.
2015-07-27 16:44:24.031 DEBUG cinder.