Backup deleted but data not deleted
Bug #1933443 reported by
ZhaoYixin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Low
|
Unassigned |
Bug Description
Use the admin user and project to delete the backup under other projects. The request is processed successfully. The backup is marked as deleted in the database, but the object data that constitutes the backup is not deleted.
Backup driver is swift provided by ceph rgw.
tags: | added: rgw swift |
Changed in cinder: | |
importance: | Undecided → Medium |
importance: | Medium → Undecided |
Changed in cinder: | |
importance: | Undecided → Low |
description: | updated |
To post a comment you must log in.
Details of the call:
root@ctl01:~# cat zhaoyx01rc zhaoyx01 zhaoyx01 NAME=zhaoyx01 DOMAIN_ NAME=Default DOMAIN_ NAME=Default ctl01:5000/ v3 API_VERSION= 3
export OS_USERNAME=
export OS_PASSWORD=
export OS_PROJECT_
export OS_USER_
export OS_PROJECT_
export OS_AUTH_URL=http://
export OS_IDENTITY_
root@ctl01:~# . zhaoyx01rc a354-4fd3- 88e3-c79690d454 32 a354-4fd3- 88e3-c79690d454 32 --name test1-b #id:b7d433e9- 1167-451c- afe2-af503c1b26 37
root@ctl01:~# cinder create 1 --name test1 #id:a501a4a7-
root@ctl01:~# cinder backup-create a501a4a7-
### Query the backup-related objects in the rgw bucket 482febaf0394307 bc/backup |grep b7d433e9- 1167-451c- afe2-af503c1b26 37 a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00001" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00002" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00003" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37_metadata" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37_sha256file" ,
root@ctl01:~# radosgw-admin bucket list --bucket 6a478c559734491
"name": "volume_
"name": "volume_
"name": "volume_
"name": "volume_
"name": "volume_
### Use admin user to delete backup ADMIN_PASS NAME=admin DOMAIN_ NAME=Default DOMAIN_ NAME=Default ctl01:5000/ v3 API_VERSION= 3
root@ctl01:~# cat adminrc
export OS_USERNAME=admin
export OS_PASSWORD=
export OS_PROJECT_
export OS_USER_
export OS_PROJECT_
export OS_AUTH_URL=http://
export OS_IDENTITY_
root@ctl01:~# . adminrc 1167-451c- afe2-af503c1b26 37 1167-451c- afe2-af503c1b26 37 has been accepted. 1167-451c- afe2-af503c1b26 37 1167-451c- afe2-af503c1b26 37' exists.
root@ctl01:~# cinder backup-delete b7d433e9-
Request to delete backup b7d433e9-
root@ctl01:~# cinder backup-show b7d433e9-
ERROR: No volumebackup with a name or ID of 'b7d433e9-
MariaDB [cinder]> select deleted from backups where id='b7d433e9- 1167-451c- afe2-af503c1b26 37';
+---------+
| deleted |
+---------+
| 1 |
+---------+
1 row in set (0.000 sec)
### Query the backup-related objects in the rgw bucket again 482febaf0394307 bc/backup |grep b7d433e9- 1167-451c- afe2-af503c1b26 37 a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00001" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00002" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37-00003" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37_metadata" , a501a4a7- a354-4fd3- 88e3-c79690d454 32/202106240837 01/az_nova_ backup_ b7d433e9- 1167-451c- afe2-af503c1b26 37_sha256file" ,
root@ctl01:~# radosgw-admin bucket list --bucket 6a478c559734491
"name": "volume_
"name": "volume_
"name": "volume_
"name": "volume_
"name": "volume_
Found that the object data has not been deleted