RBD: check_valid_device not working for locally attached volumes

Bug #1884552 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Gorka Eguileor

Bug Description

The check_valid_device method of the RBD connector doesn't work for locally attached volumes (using krbd) because it only has code for handles.

Tags: drivers rbd
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

Fix proposed to branch: master
Review: https://review.opendev.org/737311

Changed in os-brick:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (master)

Reviewed: https://review.opendev.org/737311
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=7d995b6cf6552c1119dcde9f7cdf2c5a05b3b92b
Submitter: Zuul
Branch: master

commit 7d995b6cf6552c1119dcde9f7cdf2c5a05b3b92b
Author: Gorka Eguileor <email address hidden>
Date: Thu Jun 18 21:05:05 2020 +0200

    RBD: Fix check_valid_device

    The check_valid_device method of the RBD connector doesn't work for
    locally attached volumes (using krbd) because it only has code for
    handles.

    This patch adds code to handle the check of locally attached RBD volumes
    running the code as root and as the current user.

    In order to preserve current behavior we don't change the code for
    checking valid handles, which means we are ignoring the run_as_root
    parameter.

    Closes-Bug: #1884552
    Related-Bug: #1883720
    Change-Id: Iedf1d4678eeef438ac4f03a61f5f91f3a225c3fd

Changed in os-brick:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.