Backup deleted but data not deleted

Bug #1933443 reported by ZhaoYixin
6
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.

Revision history for this message
ZhaoYixin (zhaoyixin) wrote :

Details of the call:

root@ctl01:~# cat zhaoyx01rc
export OS_USERNAME=zhaoyx01
export OS_PASSWORD=zhaoyx01
export OS_PROJECT_NAME=zhaoyx01
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://ctl01:5000/v3
export OS_IDENTITY_API_VERSION=3

root@ctl01:~# . zhaoyx01rc
root@ctl01:~# cinder create 1 --name test1 #id:a501a4a7-a354-4fd3-88e3-c79690d45432
root@ctl01:~# cinder backup-create a501a4a7-a354-4fd3-88e3-c79690d45432 --name test1-b #id:b7d433e9-1167-451c-afe2-af503c1b2637

### Query the backup-related objects in the rgw bucket
root@ctl01:~# radosgw-admin bucket list --bucket 6a478c559734491482febaf0394307bc/backup |grep b7d433e9-1167-451c-afe2-af503c1b2637
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00001",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00002",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00003",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637_metadata",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637_sha256file",

### Use admin user to delete backup
root@ctl01:~# cat adminrc
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://ctl01:5000/v3
export OS_IDENTITY_API_VERSION=3

root@ctl01:~# . adminrc
root@ctl01:~# cinder backup-delete b7d433e9-1167-451c-afe2-af503c1b2637
Request to delete backup b7d433e9-1167-451c-afe2-af503c1b2637 has been accepted.
root@ctl01:~# cinder backup-show b7d433e9-1167-451c-afe2-af503c1b2637
ERROR: No volumebackup with a name or ID of 'b7d433e9-1167-451c-afe2-af503c1b2637' exists.

MariaDB [cinder]> select deleted from backups where id='b7d433e9-1167-451c-afe2-af503c1b2637';
+---------+
| deleted |
+---------+
| 1 |
+---------+
1 row in set (0.000 sec)

### Query the backup-related objects in the rgw bucket again
root@ctl01:~# radosgw-admin bucket list --bucket 6a478c559734491482febaf0394307bc/backup |grep b7d433e9-1167-451c-afe2-af503c1b2637
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00001",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00002",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637-00003",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637_metadata",
        "name": "volume_a501a4a7-a354-4fd3-88e3-c79690d45432/20210624083701/az_nova_backup_b7d433e9-1167-451c-afe2-af503c1b2637_sha256file",

Found that the object data has not been deleted

tags: added: rgw swift
Changed in cinder:
importance: Undecided → Medium
importance: Medium → Undecided
Changed in cinder:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/802440

Changed in cinder:
status: New → In Progress
norman shen (jshen28)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.