Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-27003

lvmcluster creation using diskselector with symlink (by-id) and wipe option fails

XMLWordPrintable

    • None
    • Proposed
    • OCPEDGE Sprint 247, OCPEDGE Sprint 248
    • 2
    • None
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-26502. The following is the description of the original issue:

      Description of problem:

      After a failed attempt to create an LVMCluster (due to a dirty disk), removing the LVMCluster and attempting to recreate it with forceWipeDevicesAndDestroyAllData selected results in the topolvm-node pod stuck in ContainerCreating with:
      
      Warning  FailedMount  6s (x6 over 21s)  kubelet            MountVolume.SetUp failed for volume "lvmd-config-dir" : configmap "lvmd-config" not found
      
      Verified the configmap does not exist.
      
      This problem does not occur if the first creation of the LVMCluster includes the option to wipe the device - I have only seen it on subsequent creation attempts.
          

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

          4.15.0.rc0 and latest lvms

      How reproducible:

          Always

      Steps to Reproduce:

          1. AWS SNO cluster, attach a dirty EBS volume (pre-existing LVM data, pre-existing FS)
          2. Install LVMS 4.15.0 operator
          3. Create an LVMCluster by path /dev/disk/by-id, do not select forceWipeDevicesAndDestroyAllData
          4. Creation fails (expected) due to existing vg data
          5. oc delete lvmcluster test-lvmcluster
          6. Create the lvmcluster again but do specify the option to wipe the device.
          

      Actual results:

          topolvm-node pod is stuck in ContainerCreating and oc describe on it shows this event.
      
      Warning  FailedMount  6s (x6 over 21s)  kubelet            MountVolume.SetUp failed for volume "lvmd-config-dir" : configmap "lvmd-config" not found
      
      I haven't found a way around this.  Subsequent attempts to delete/recreate the lvmcluster hit the same problem.   

       

      Expected results:

          lvmcluster created successfully on subsequent attempts if the wipe device option is specified.   If the option is specified on the initial attempt, the lvmcluster is created successfully.  

      Additional info:

          

              sakbas@redhat.com Suleyman Akbas
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Rahul Deore Rahul Deore
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: