v3 attachment_delete does not delete record from db
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
While testing migration using the new v3 cinder attach apis, I noticed that attachment records in the table volume_attachment are not removed when an attachment_delete is done. Is it supposed to work like this?
Here is a case where I did a detach from nova using attachment-delete of attachment 2fddf0a4-
2017-06-03 09:45:03.852 DEBUG cinder.
Afterwards, the attach record is still there:
mysql> select * from volume_attachment;
...
| 2017-06-03 13:43:59 | 2017-06-03 13:44:03 | 2017-06-03 13:45:04 | 1 | 2fddf0a4-
...
1 row in set (0.00 sec)
Usually cinder will not remove the record from table directly when you delete the record via CLI or API, so do you mind to confirm the deleted record's column 'deleted' is whether set to 'True'? That is how we delete the record.