CLI shows volume backup deleted, however it is actually not removed
Bug #1764269 reported by
lucky
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When swift-proxy-server is stopped during Delete backup operation, delete completion is displayed irrespective of deletion process not being completed internally.
Source code should be modified in order to implement error processing and retry processing at Cinder side. As preventing measure, it is recommended to delete object from backup container through Swift Delete Object operation.
To improve it, we need to throw an exception from delete() method present in chunkeddriver.py file, If it is unable to generate the list of objects.
In the operation, monitoring of relevant components need to be done and further, take manual measures whenever required.
Changed in cinder: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
Changed in cinder: | |
assignee: | Rajat Dhasmana (whoami-rajat) → nobody |
status: | New → Incomplete |
To post a comment you must log in.
Hi,
I have tried to reproduce this issue on latest release but not able to validate.
May be it's already fixed on latest but I am not sure about it. Also delete() function has changed to delete_backup() in latest release(Rocky).
Please suggest the conclusion pointer to verify the bug because "cinder backup-list" showing blank data and I am considering it has deleting/erasing completely.
Followed steps by me: ======= ======= ======= ======= ===== xenial: ~/cinder$ cinder backup-create --name newvol_bak 5d85b172- 26f9-4f84- 92e8-50941f3e7f 1a +------ -----+- ------- ------- ------- ------- ------- --+ -----+- ------- ------- ------- ------- ------- --+ 7ff3-448c- a90e-78c9b5832e 96 | 26f9-4f84- 92e8-50941f3e7f 1a | -----+- ------- ------- ------- ------- ------- --+
=======
stack@ubuntu-
| Property | Value |
+------
| id | 918a9142-
| name | newvol_bak |
| volume_id | 5d85b172-
+------
stack@ubuntu- xenial: ~/cinder$ cinder backup-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- -----+- -----+- ------- ------+ ------- ------- -+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- -----+- -----+- ------- ------+ ------- ------- -+ 7ff3-448c- a90e-78c9b5832e 96 | 5d85b172- 26f9-4f84- 92e8-50941f3e7f 1a | available | newvol_bak | 1 | 22 | volumebackups | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- -----+- -----+- ------- ------+ ------- ------- -+
+------
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+------
| 918a9142-
+------
stack@ubuntu- xenial: ~/cinder$ cinder backup-delete 918a9142- 7ff3-448c- a90e-78c9b5832e 96 & sleep 3; sudo systemctl stop <email address hidden> 7ff3-448c- a90e-78c9b5832e 96 has been accepted.[1]+ Done cinder backup-delete 918a9142- 7ff3-448c- a90e-78c9b5832e 96
[1] 20381Request to delete backup 918a9142-
stack@ubuntu- xenial: ~/cinder$ cinder backup-list ------- ---+--- -----+- -----+- -----+- ------- ------+ ------- ----+ ------- ---+--- -----+- -----+- -----+- ------- ------+ ------- ----+ ------- ---+--- -----+- -----+- -----+- ------- ------+ ------- ----+
+----+-
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+----+-
+----+-
I have tried to stop swift-proxy service multiple times(parallely with delete operation of cinder backup operation and with 1~3 seconds of difference) but it is always resulting in complete deletion.
Please let me know where should I check for the internal thing for the occurrence.