Bug 1907391 - cinder reset-state should print a warning to callers when moving a volume from attached to available
Summary: cinder reset-state should print a warning to callers when moving a volume fro...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Eric Harney
QA Contact: Evelina Shames
Andy Stillman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-14 12:32 UTC by Lee Yarwood
Modified: 2023-07-12 14:39 UTC (History)
3 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
Red Hat Issue Tracker OSP-2155 0 None None None 2022-11-24 08:47:49 UTC

Description Lee Yarwood 2020-12-14 12:32:25 UTC
Description of problem:

$subject, we've seen a number of examples recently where users have called reset-state [1][2][3] without updating the Nova DB and leaving the volume still attached there. This is an admin only command/API that really should only be used in conjunction with Nova DB updates (I am thinking about introducing force detach API FWIW) when users understand the issue and the required steps to fix it.

A clear warning being printed should help avoid users getting stuck in weird and wonderful corners going forward.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1906941
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1887383
[3] https://bugzilla.redhat.com/show_bug.cgi?id=1883583


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

How reproducible:
Always

Steps to Reproduce:
1. Attempt to call `cinder reset-state`

Actual results:
Called without printing a clear warning etc.

Expected results:
Print a clear warning etc.

Additional info:

Comment 1 Eric Harney 2020-12-14 13:16:10 UTC
This upstream spec is aiming to resolve issues like this:
https://review.opendev.org/c/openstack/cinder-specs/+/682456

Comment 2 Luigi Toscano 2020-12-16 14:47:48 UTC
Should we consider this a bugfix or a feature? The spec above is not approved for Wallaby right now, and depending on the fix it may be complicated to backport the changes.

Comment 3 Luigi Toscano 2020-12-17 16:13:54 UTC
The WIP upstream spec is now https://review.opendev.org/c/openstack/cinder-specs/+/766716 - this is going to be a feature.


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