Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-23971

[2158521] LVMS "topolvm.io" storageProfile is missing accessModes and volumeMode

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • Release Notes
    • Hide
      Cause: The TopoLVM provisioner name string has changed as of OCP 4.12 Consequence: The TopoLVM provisioner is no longer recognized by OpenShift Virtualization which could prevent OS images from importing automatically.
      Workaround (if any): Update the StorageProfile to add an entry to the claimPropertySets list and delete the stuck DataVolumes in the openshift-virtualization-os-images namespace
      Result: The OS images will be imported
      Show
      Cause: The TopoLVM provisioner name string has changed as of OCP 4.12 Consequence: The TopoLVM provisioner is no longer recognized by OpenShift Virtualization which could prevent OS images from importing automatically. Workaround (if any): Update the StorageProfile to add an entry to the claimPropertySets list and delete the stuck DataVolumes in the openshift-virtualization-os-images namespace Result: The OS images will be imported
    • Known Issue
    • Done
    • ---
    • ---
    • Storage Core Sprint 231

      Description of problem:
      Since 4.12 TopoLVM (LVMS) D/S provisioner was renamed from "topolvm.cybozu.com" to "topolvm.io". For the old provisioner, we fixed this bug: https://bugzilla.redhat.com/show_bug.cgi?id=2143268

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

      How reproducible:
      Always

      Steps to Reproduce:
      1. oc get storageprofile lvms-vg1 -oyaml

      Actual results:
      spec: {}
      status:
      provisioner: topolvm.io
      storageClass: lvms-vg1

      Expected results:
      $ oc get storageprofile lvms-vg1 -oyaml
      ....
      spec: {}
      status:
      claimPropertySets:

      • accessModes:
      • ReadWriteOnce
        volumeMode: Block
      • accessModes:
      • ReadWriteOnce
        volumeMode: Filesystem
      • accessModes:
      • ReadWriteOncePod
        volumeMode: Block
      • accessModes:
      • ReadWriteOncePod
        volumeMode: Filesystem
        provisioner: topolvm.io
        storageClass: lvms-vg1

      Additional info:

      This will impact the boot-source images feature when lvms-vg1 is the default storage class:

      $ oc describe dv -n openshift-virtualization-os-images centos-stream8-2f16c067b974
      ...
      Warning ErrClaimNotValid 4m35s (x17 over 10m) datavolume-controller DataVolume.storage spec is missing accessMode and volumeMode, cannot get access mode from StorageProfile lvms-vg1

      W/A:
      1. Patch the storageProfile manually:

      oc patch storageprofile lvms-vg1 --type=merge -p '{"spec": {"claimPropertySets": [

      {"accessModes": ["ReadWriteOnce"], "volumeMode": "Block"}

      ,

      {"accessModes": ["ReadWriteOnce"], "volumeMode": "Filesystem"}

      ]}}'

      2. Delete the DVs in openshift-virtualization-os-images namespace, they will be recreated and will grab the accessMode and volumeMode from the updated storageprofile.

            jpeimer@redhat.com Jenia Peimer
            jpeimer@redhat.com Jenia Peimer
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: