Bug 1886383 - Additional PVs privisioned over a different dm-X symlink but sharing the same underlying devicePath
Summary: Additional PVs privisioned over a different dm-X symlink but sharing the same...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.5.z
Assignee: Hemant Kumar
QA Contact: Chao Yang
URL:
Whiteboard:
: 1892197 (view as bug list)
Depends On: 1903362
Blocks: 1903361
TreeView+ depends on / blocked
 
Reported: 2020-10-08 10:40 UTC by Robert Sandu
Modified: 2024-06-13 23:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1903361 1903362 (view as bug list)
Environment:
Last Closed: 2020-12-15 20:28:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift local-storage-operator pull 189 0 None closed Bug 1886383: Fix bug with device lock acquisition failing 2021-02-11 02:27:37 UTC
Red Hat Knowledge Base (Solution) 5558251 0 None None None 2020-11-09 07:27:52 UTC
Red Hat Product Errata RHSA-2020:5359 0 None None None 2020-12-15 20:29:12 UTC

Description Robert Sandu 2020-10-08 10:40:39 UTC
Description of problem: when using a LVM LogicalVolume as LocalVolume devicePath [0]. Sample config below (where /dev/elasticsearch/elasticsearch is the LVM LogicalVolume):

$ oc get localvolume -n local-storage es-disks -o json | jq .spec.storageClassDevices
[
  {
    "devicePaths": [
      "/dev/elasticsearch/elasticsearch"
    ],
    "fsType": "ext4",
    "storageClassName": "es-disks",
    "volumeMode": "Filesystem"
  }
]

This ends up 

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

Actual results:
- The LocalVolume PV points to an underlying /mnt/local-storage/${StorageClassName}/dm-X path, instead of the /dev/elasticsearch/elasticsearch LogicalVolume.
- /dev/elasticsearch/elasticsearch has different /mnt/local-storage/${StorageClassName}/dm-X symlinks pointing to the same /dev/elasticsearch/elasticsearch LogicalVolume
- Different PersistentVolumes can be provisioned pointing to different /mnt/local-storage/${StorageClassName}/dm-X symlinks, under the same /dev/elasticsearch/elasticsearch LogicalVolume, pointing to the same underlying data.

Expected results:
- Have one and only PV per LocalVolume object.

Additional info:
- Logs dumps and outputs to follow.

---
[0] https://github.com/openshift/local-storage-operator/blob/release-4.5/deploy/cr.yaml#L10

Comment 18 Hemant Kumar 2020-10-30 14:19:24 UTC
*** Bug 1892197 has been marked as a duplicate of this bug. ***

Comment 37 errata-xmlrpc 2020-12-15 20:28:44 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 (Moderate: OpenShift Container Platform 4.5.23 security and bug fix update), 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/RHSA-2020:5359


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