Incorrect behaviour of encrypted-volume-type
Bug #1562024 reported by
Peter Razumovsky
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Triaged
|
Medium
|
Unassigned |
Bug Description
Deleted EVT disturb to create same EVT for volume type. Way to reproduce:
1. Create EVT with API for some volume type.
2. Delete EVT with CLI. Delete completes successfuly.
3. Call list EVTs with API. Result: empty list, which is OK.
4. Call get EVT with API. Result: some stub-object with EVT type and no attributes (__repr__ returns AttributeError: name). Strange.
5. Create same EVT with API. Create completes successfuly, but there's no EVT in reality.
Changed in cinder: | |
assignee: | nobody → Cao ShuFeng (caosf-fnst) |
affects: | cinder → python-cinderclient |
Changed in python-cinderclient: | |
assignee: | Cao ShuFeng (caosf-fnst) → nobody |
assignee: | nobody → Cao ShuFeng (caosf-fnst) |
Changed in python-cinderclient: | |
importance: | Undecided → Medium |
Changed in python-cinderclient: | |
milestone: | none → 7.2.0 |
milestone: | 7.2.0 → none |
To post a comment you must log in.
Dear Peter,
I could not see this problem.
You can refer below for details and let me know in case you have some different steps to reproduce this issue:
1. Create encryption
root@sheel: /home/sheel/ next/cinder# curl -H "X-Auth- Token:a983cd943 e7f4017b1c88e09 7a216899" -H "Content-type: application/json" http:// 10.0.2. 15:8776/ v2/f270b245cb11 498ca4031deb7e1 41cfa/types/ 898016e6- 038e-4ae7- baad-2f07b44045 67/encryption -X POST -d '{"encryption": {"control_ location" : "front-end", "cipher": null, "key_size": null, "provider": "LuksEncryptor"}}' 038e-4ae7- baad-2f07b44045 67", "key_size": null, "control_location": "front-end", "encryption_id": "ded4e252- c74d-44e0- bb3e-89d00a8ae9 68", "cipher": null, "provider": "LuksEncryptor"}}
{"encryption": {"volume_type_id": "898016e6-
2. Delete Encryption /home/sheel/ python- openstackclient # cinder encryption- type-delete 898016e6- 038e-4ae7- baad-2f07b44045 67
root@sheel:
3. List Encryption /home/sheel/ python- openstackclient # curl -H "X-Auth- Token:a983cd943 e7f4017b1c88e09 7a216899" http:// 10.0.2. 15:8776/ v2/f270b245cb11 498ca4031deb7e1 41cfa/types/ c3460d77- f142-47a6- b601-44c427ec42 21/encryption -X GET
root@sheel:
{}
4. Show Encryption type-show c3460d77- f142-47a6- b601-44c427ec42 21
cinder --debug encryption-
RESP: [200] Content-Length: 2 X-Compute- Request- Id: req-969a5434- 2cc9-4379- ac6d-0fb1cb9f93 2c Connection: keep-alive Date: Fri, 25 Mar 2016 16:55:28 GMT Content-Type: application/json X-Openstack- Request- Id: req-969a5434- 2cc9-4379- ac6d-0fb1cb9f93 2c
RESP BODY: {}