Bug 1907392 - [OSP 17] n-api should reject requests to attach a volume to an instance *if* an active bdm record exists
Summary: [OSP 17] 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: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 17.0
Assignee: Lee Yarwood
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks: 1948515
TreeView+ depends on / blocked
 
Reported: 2020-12-14 12:42 UTC by Lee Yarwood
Modified: 2023-03-21 19:38 UTC (History)
7 users (show)

Fixed In Version: openstack-nova-23.0.3-0.20210908140341.e39bbdc.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1948515 (view as bug list)
Environment:
Last Closed: 2022-09-21 12:13:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1908075 0 None None None 2020-12-24 11:18:15 UTC
OpenStack gerrit 766976 0 None MERGED Add regression test for bug #1908075 2021-02-19 14:36:58 UTC
OpenStack gerrit 768472 0 None MERGED api: Reject volume attach requests when an active bdm exists 2021-02-19 14:36:57 UTC
Red Hat Issue Tracker OSP-2306 0 None None None 2022-04-13 20:02:45 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:14:31 UTC

Description Lee Yarwood 2020-12-14 12:42:15 UTC
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 6 errata-xmlrpc 2022-09-21 12:13:24 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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-2022:6543


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