Nova volume-detach lacks '--force' command for cleanup

Bug #1449223 reported by Scott DAngelo
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-novaclient
Confirmed
Wishlist
Andrea Rosa

Bug Description

Cinder volumes can get stuck in a state of 'attaching' or 'detaching' and they need to be cleaned up or they will be incapable of being used. This is not possible because python-novaclient 'nova volume-detach' lacks a '--force' option.
Nova will need to call Cinder force_detach. Cinder already has a force_detach API that should also be called to ask the storage driver to terminate_connection and detach the volume from the backend. The Nova BlockDeviceMapping table can have an entry indicating that a volume is attached. Changes to nova to allow a force_detach are needed to remove an entry for a given volume in the case where the volume gets stuck in 'attaching' or 'detaching'.

Depends-on: https://bugs.launchpad.net/nova/+bug/1449221

Changed in python-novaclient:
assignee: nobody → Scott DAngelo (scott-dangelo)
Changed in python-novaclient:
assignee: Scott DAngelo (scott-dangelo) → nobody
Changed in python-novaclient:
assignee: nobody → Andrea Rosa (andrea-rosa-m)
Revision history for this message
melanie witt (melwitt) wrote :

This is a tracking a new feature that must be implemented in Nova first

Changed in python-novaclient:
importance: Undecided → Wishlist
status: New → Confirmed
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.