Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1997122

Summary: [LocalVolume] provisioning fails silently if device is already claimed
Product: OpenShift Container Platform Reporter: Rohan CJ <rojoseph>
Component: StorageAssignee: Rohan CJ <rojoseph>
Storage sub component: Local Storage Operator QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: aos-bugs, jsafrane
Version: 4.7   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:48:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rohan CJ 2021-08-24 13:09:01 UTC
Description of problem:

LocalVolume device paths are explicitly specified, so if they are
already claimed, we should not fail siliently.

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

How reproducible: Always

Steps to Reproduce:
1.
2.
3.

Actual results:

No indication why device is not claimed if device is claimed by another LV or LVset.

Expected results:

Event and log message should fire.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 3 Chao Yang 2021-09-06 10:47:54 UTC
oc describe localvolume/lv2
Name:         lv2
Namespace:    openshift-local-storage
Labels:       <none>
Annotations:  <none>
API Version:  local.storage.openshift.io/v1
Kind:         LocalVolume
Metadata:
  Creation Timestamp:  2021-09-06T08:45:16Z
  Finalizers:
    storage.openshift.com/local-volume-protection
  Generation:  3
  Managed Fields:
    API Version:  local.storage.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:spec:
        .:
        f:storageClassDevices:
    Manager:      Mozilla
    Operation:    Update
    Time:         2021-09-06T08:45:16Z
    API Version:  local.storage.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:finalizers:
          .:
          v:"storage.openshift.com/local-volume-protection":
      f:spec:
        f:managementState:
    Manager:      local-storage-operator
    Operation:    Update
    Time:         2021-09-06T08:45:16Z
    API Version:  local.storage.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:conditions:
        f:generations:
        f:managementState:
        f:observedGeneration:
        f:readyReplicas:
    Manager:      local-storage-operator
    Operation:    Update
    Subresource:  status
    Time:         2021-09-06T08:45:16Z
    API Version:  local.storage.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:spec:
        f:logLevel:
    Manager:         kubectl-edit
    Operation:       Update
    Time:            2021-09-06T08:49:16Z
  Resource Version:  168333
  UID:               35324815-d385-43cf-82f5-48a426b93614
Spec:
  Log Level:         TraceAll
  Management State:  Managed
  Storage Class Devices:
    Device Paths:
      /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol06441cbef41a05c35
    Storage Class Name:  lv2
    Volume Mode:         Filesystem
Status:
  Conditions:
    Last Transition Time:  2021-09-06T08:45:16Z
    Message:               Ready
    Status:                True
    Type:                  Available
  Generations:
    Group:              apps
    Last Generation:    2
    Name:               diskmaker-manager
    Namespace:          openshift-local-storage
    Resource:           DaemonSet
  Management State:     Managed
  Observed Generation:  3
  Ready Replicas:       0
Events:
  Type     Reason               Age   From                            Message
  ----     ------               ----  ----                            -------
  Warning  DeviceSymlinkExists  120m  localvolume-symlink-controller  ip-10-0-139-67.us-east-2.compute.internal - not symlinking, already claimed: [/mnt/local-storage/lv1/nvme-Amazon_Elastic_Block_Store_vol06441cbef41a05c35]

Passed with local-storage-operator.4.9.0-202109031123

Comment 6 errata-xmlrpc 2021-10-18 17:48:47 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.9.0 bug fix and security 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-2021:3759