Forcefully Delete Cinder Volume of Non-existing Cinder Hosts.

Problem

Unable to delete a volume that resided on a Cinder host that no longer exists. Resulting the stack deletion failure.

Environment

  • Platform9 Managed OpenStack - All Versions.

  • Cinder.

  • Cinder Cli tool should be installed.

Cause

Backend host for the cinder-volume is removed but the Cinder volume still points to the removed host.

Resolution

triangle-exclamation

Add the volume to a new host as a temporary change to move the volume from a stale/orphaned state before proceeding with the deletion from the backend.

The steps to be followed are:

  1. Confirm the details of the volume that needs to be deleted using below command:

circle-exclamation
  1. Change the volume pointing to old host to state available and detached using below command:

  1. Update the cinder volume which is pointing to old host to the new host id. The new host can be any host with a cinder role applied within the same region.

circle-info

Info

The cinder-manage binary is available only on the Platform9 Management Plane and Block Storage hosts directly. If running from a Block Storage host, the following will need to be prepended as shown.

  1. Force delete the volume once cinder host is updated.

Additional Information

Verify if volume is deleted and do not have any old or stale data.

Last updated