Object deletion from DB without driver interaction¶
It’s impossible to delete a volume, a backup or a snapshot when the service is not available. There’s no way to bypass driver interaction.
Sometimes, OpenStack admins are pulling the plugs off some storage backends to use a new one. They realize later that they need to cleanup the various objects.
With cinder-manage, we will have a –db-only switch under the volume delete command. The snapshots are deleted in cascade. We will also implement backup subcommand that acts like the volume subcommand.
The only known workaround is to manually update multiple tables and set the status to ‘deleted’ to various objects.
Data model impact¶
REST API impact¶
Active/Active HA impact¶
Other end user impact¶
These commands will be available to operators:
cinder-manage volume delete [--db-only] <volume-id> cinder-manage backup delete [--db-only] <backup-id>
Other deployer impact¶
Primary assignee: David Vallee Delisle <firstname.lastname@example.org>
The following changes will be done under cinder-manage command: * Add a –db-only switch to the volume delete command. * Add a backup delete subcommand with –db-only support. * The snapshots are deleted in cascade when a volume is deleted.
The following changes will be done in the rpcapis: * Add a db_only argument in the delete function
The following changes will be done in the manages: * Add a db_only argument in the delete function
Create tests to validate the delete volume and the delete backup are really deleting.
Man page for cinder-manage and any associated documentation will be updated.