Bug 1638918 - Allow volumes to be forcefully unmanaged
Summary: Allow volumes to be forcefully unmanaged
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 10.0 (Newton)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Alpha
: ---
Assignee: Eric Harney
QA Contact: Yosi Ben Shimon
Kim Nylander
URL:
Whiteboard:
: 1638820 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-12 20:07 UTC by Mircea Vutcovici
Modified: 2023-10-26 20:58 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 610037 0 None ABANDONED cinder-manage object delete --db-only 2021-02-10 18:20:31 UTC
Red Hat Issue Tracker OSP-11723 0 None None None 2021-12-10 18:10:24 UTC

Description Mircea Vutcovici 2018-10-12 20:07:49 UTC
Description of problem:
When the cinder backend is removed, it is not anymore possible to remove the cinder volumes. The volumes remain in deleting state forever.

Even running openstack volume delete --force --

There are workarounds to fix this in the DB, but they come with the risk that they become outdated when OpenStack is changing (e.g. https://access.redhat.com/solutions/2578061) they might have undocumented side effects.


Version-Release number of selected component (if applicable):


How reproducible:
Each time you remove the cinder backend (in this case ceph).

Steps to Reproduce:
1. Add a cinder backend (e.g. ceph)
2. Stop the backend or removed it form network)
3. Try to delete any volume that was stored on the cinder backend

Actual results:
The volume remains in deleting state.

Expected results:
The volume to be deleted


Additional info:

Comment 1 David Vallee Delisle 2018-10-12 20:39:58 UTC
Bug 1638820 was opened for OSP13

Blueprint upstream: https://blueprints.launchpad.net/cinder/+spec/cinder-delete-from-db

Comment 3 Alan Bishop 2018-10-17 14:09:22 UTC
*** Bug 1638820 has been marked as a duplicate of this bug. ***

Comment 4 coldford@redhat.com 2018-11-07 22:05:52 UTC
Hello,

Can we get a clear set of instructions for removing orphaned cinder volumes from an OSP 10 database? 

Cory Oldford

Comment 16 Gregory Charot 2022-04-21 16:57:45 UTC
This feature was reviewed during PTG, the idea is to add an option in cinder unmanage to forcefully unmanage a volume which would nicely clean it from the environment.

Adding PM ack for OSP 18.0


Note You need to log in before you can comment on or make changes to this bug.