Bug 1948515 - [OSP 16.2] n-api should reject requests to attach a volume to an instance *if* an active bdm record exists
Summary: [OSP 16.2] n-api should reject requests to attach a volume to an instance *if...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Lee Yarwood
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On: 1907392
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-12 10:43 UTC by Lee Yarwood
Modified: 2023-03-21 19:41 UTC (History)
8 users (show)

Fixed In Version: openstack-nova-20.6.1-2.20210429124809.10df176.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1907392
Environment:
Last Closed: 2021-09-15 07:13:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:14:17 UTC

Description Lee Yarwood 2021-04-12 10:43:17 UTC
+++ This bug was initially created as a clone of Bug #1907392 +++

Description of problem:

$subject, this is an odd little corner case but if an admin resets the state of an attached volume to available there are no checks within n-api stopping a user from attaching the volume to another instance, regardless of the original bdm record.

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

How reproducible:
Always

Steps to Reproduce:
1. Attach a volume to an instance.
2. Reset the state of the volume to available.
3. Attach the volume to another instance.

Actual results:
The volume is attached to both instances in Nova but a single instance in Cinder.

Expected results:
The second request to attach a volume should be rejected by Nova until the attachment is removed.

Additional info:

Comment 16 errata-xmlrpc 2021-09-15 07:13:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:3483


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