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
Reviewed: https:/ /review. opendev. org/737311 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=7d995b6cf65 52c1119dcde9f7c df2c5a05b3b92b
Committed: https:/
Submitter: Zuul
Branch: master
commit 7d995b6cf6552c1 119dcde9f7cdf2c 5a05b3b92b
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 38ac4f03a61f5f9 1f3a225c3fd
Related-Bug: #1883720
Change-Id: Iedf1d4678eeef4