2015-04-27 19:19:44 |
Scott DAngelo |
bug |
|
|
added bug |
2015-04-27 19:20:02 |
Scott DAngelo |
nova: assignee |
|
Scott DAngelo (scott-dangelo) |
|
2015-04-28 03:43:26 |
Koji Iida |
bug |
|
|
added subscriber Koji Iida |
2015-04-28 14:54:15 |
Scott DAngelo |
nova: assignee |
Scott DAngelo (scott-dangelo) |
|
|
2015-04-28 14:55:24 |
Andrea Rosa |
nova: assignee |
|
Andrea Rosa (andrea-rosa-m) |
|
2015-05-01 12:42:32 |
Andrea Rosa |
nova: status |
New |
In Progress |
|
2015-07-17 08:47:27 |
Andrea Rosa |
summary |
Nova volume-detach lacks '--force' command for cleanup |
Nova doesn't allow to cleanup volumes stuck in 'attaching' or 'detaching' status |
|
2015-07-17 08:59:05 |
Andrea Rosa |
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'. |
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 at the moment as Nova doesn't allow any actions on volumes in 'ing' status.
For detaching a volume nova should do 3 things:
1 Detach the volume from the instance
2 inform cinder about the detach
3 delete the record in the nova BDM table
At the moment if 1 fails we do a roll back, if 2 fails we are stuck with a volume in detaching status. Nova shouldn't stop to complete the detach from its side if it gets some errors from cinder.
What we can do is to modify the nova code in order to manage a potential error coming from cinder, log it and go ahead with the deletion of the BDM record, then an operator can try to fix the cinder side calling the appropriate cinder call, like force-delete.
Basically, if there is a BDM record in nova, we allow the user to call the detach volume as many time as he/she likes.
Nova will delete the BDM record only if the call to cinder "terminate_connection" will success.
This bug has been discussed in a spec: https://review.openstack.org/84048
where we agreed that a spec is not required but we consider this change as a bug fix. |
|
2015-07-24 16:47:48 |
John Garbutt |
nova: importance |
Undecided |
High |
|
2015-07-24 16:47:58 |
John Garbutt |
tags |
|
volumes |
|
2015-08-06 10:51:47 |
OpenStack Infra |
nova: assignee |
Andrea Rosa (andrea-rosa-m) |
John Garbutt (johngarbutt) |
|
2015-08-06 10:53:40 |
John Garbutt |
nova: assignee |
John Garbutt (johngarbutt) |
Andrea Rosa (andrea-rosa-m) |
|
2015-08-06 12:14:48 |
Kashyap Chamarthy |
bug |
|
|
added subscriber Kashyap Chamarthy |
2015-08-13 05:00:18 |
OpenStack Infra |
nova: assignee |
Andrea Rosa (andrea-rosa-m) |
wanghao (wanghao749) |
|
2015-09-07 09:51:28 |
OpenStack Infra |
nova: assignee |
wanghao (wanghao749) |
Andrea Rosa (andrea-rosa-m) |
|
2015-10-05 17:01:28 |
Scott DAngelo |
summary |
Nova doesn't allow to cleanup volumes stuck in 'attaching' or 'detaching' status |
Nova doesn't allow cleanup of volumes stuck in 'attaching' or 'detaching' status |
|
2016-03-06 14:55:20 |
Davanum Srinivas (DIMS) |
nova: status |
In Progress |
Confirmed |
|
2016-03-06 14:55:22 |
Davanum Srinivas (DIMS) |
nova: assignee |
Andrea Rosa (andrea-rosa-m) |
|
|
2016-07-22 05:51:10 |
Tang Chen |
nova: assignee |
|
Tang Chen (tangchen) |
|
2017-01-09 08:22:11 |
Nazeema Begum |
nova: assignee |
Tang Chen (tangchen) |
Nazeema Begum (nazeema123) |
|
2017-06-23 16:29:43 |
Sean Dague |
nova: assignee |
Nazeema Begum (nazeema123) |
|
|
2017-08-29 04:58:09 |
Hironori Shiina |
bug |
|
|
added subscriber Hironori Shiina |
2018-05-31 13:14:28 |
OpenStack Infra |
nova: status |
Confirmed |
In Progress |
|
2018-05-31 13:14:28 |
OpenStack Infra |
nova: assignee |
|
Chen (chenn2) |
|
2018-09-27 08:07:29 |
Viktor Tikkanen |
bug |
|
|
added subscriber Viktor Tikkanen |
2019-04-01 01:00:52 |
Koji Iida |
removed subscriber Koji Iida |
|
|
|
2019-09-12 22:22:39 |
Alexis Deberg |
bug |
|
|
added subscriber Alexis Deberg |
2021-01-07 16:03:26 |
Lee Yarwood |
nova: status |
In Progress |
Confirmed |
|
2021-01-07 16:03:31 |
Lee Yarwood |
nova: assignee |
Mike Chen (chenn2) |
|
|
2021-02-04 09:01:10 |
Maurice Wei |
nova: assignee |
|
Maurice Wei (mauricewei) |
|
2021-08-11 11:15:35 |
Han Guangyu |
nova: assignee |
Maurice Wei (mauricewei) |
|
|
2021-08-11 11:15:56 |
Han Guangyu |
nova: assignee |
|
HanGuangyu (hanguangyu) |
|
2021-08-13 07:40:43 |
Han Guangyu |
nova: assignee |
HanGuangyu (hanguangyu) |
|
|
2021-08-19 19:18:03 |
Hemachandra Reddy |
bug |
|
|
added subscriber Hemachandra Reddy |