How To Reset OpenStack Volume States

Problem

OpenStack volumes can be in the following states: "available”, “error”, “creating”, “deleting”, “in-use”, “attaching”, “detaching”, “error_deleting” or “maintenance”.

Sometimes the volumes might be in a state which does not reflect their present condition. For example, a failed live migration might set the volume state to "error". However, you can access and edit the data inside the volume. In such a case, it becomes necessary to reset the volume state to reflect its actual condition.

WARNING: This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using.

Environment

  • Platform9 Managed OpenStack - All Versions.
  • python-openstackclient (OpenStack CLI)
  • Cinder

Procedure

  1. These steps can only be run as admin. Source the RC file with the admin credentials.
Copy
  1. Get the UUID of the volume whose status you want to change.
Screen_Shot_2020-01-30_at_10.59.34_AM.png

Screen_Shot_2020-01-30_at_10.59.34_AM.png

  1. Change the status using the following command.
Copy
  1. Verify if the volume state has changed
Copy

Additional Information

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard