Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-407

Default file system type (fsType) is 'xfs' for ODF LVM operator, pod creation fails for all other types (ext4, ext3, ext2)

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      1. Setup MicroShift instance
      2. Create new storage class (SC) using topolvm-provisioner with fsType: 'ext4'
      3. Create a PVC using SC crated in step-2
      4. Create a Pod using pvc created in step-3
      5. Pod creation fails with error:

       Warning  FailedMount  0s (x5 over 8s)  kubelet            MountVolume.SetUp failed for volume "pvc-382cb438-40c4-43f0-9c8c-58f9dd2cdb0e" : rpc error: code = Internal desc = mount failed: volume=427fb6ed-c0af-41b1-9d42-50bcfb571c67, error=format of disk "/dev/topolvm/427fb6ed-c0af-41b1-9d42-50bcfb571c67" failed: type:("ext4") target:("/var/lib/kubelet/pods/dc732718-d3be-4d8b-83f3-ae21d357f01c/volumes/kubernetes.io~csi/pvc-382cb438-40c4-43f0-9c8c-58f9dd2cdb0e/mount") options:("defaults") errcode:(executable file not found in $PATH) output:()

      sc.yaml

      kind: StorageClass
      apiVersion: storage.k8s.io/v1
      allowVolumeExpansion: true
      metadata:
        name: my-sc
      provisioner: topolvm.cybozu.com
      volumeBindingMode: WaitForFirstConsumer
      reclaimPolicy: "Delete"
      parameters:
        csi.storage.k8s.io/fstype: ext4

      pvc.yaml

      kind: PersistentVolumeClaim
      apiVersion: v1
      metadata:
        name: mypvc1
      spec:
        accessModes:
        - ReadWriteOnce
        storageClassName: my-sc
        resources:
          requests:
            storage: 5Gi

      pod.yaml

      kind: Pod
      apiVersion: v1
      metadata:
        name: mypod
      spec:
        containers:
          - name: dynamic
            image: quay.io/openshifttest/hello-openshift@sha256:b1aabe8c8272f750ce757b6c4263a2712796297511e0c6df79144ee188933623
            volumeMounts:
              - mountPath: /mnt/storage
                name: my-vol
            ports:
              - containerPort: 80
                name: "http-server"
        volumes:
          - name: my-vol
            persistentVolumeClaim:
              claimName: mypvc1
      Show
      1. Setup MicroShift instance 2. Create new storage class (SC) using topolvm-provisioner with fsType: 'ext4' 3. Create a PVC using SC crated in step-2 4. Create a Pod using pvc created in step-3 5. Pod creation fails with error:  Warning  FailedMount  0s (x5 over 8s)  kubelet            MountVolume.SetUp failed for volume "pvc-382cb438-40c4-43f0-9c8c-58f9dd2cdb0e" : rpc error: code = Internal desc = mount failed: volume=427fb6ed-c0af-41b1-9d42-50bcfb571c67, error=format of disk "/dev/topolvm/427fb6ed-c0af-41b1-9d42-50bcfb571c67" failed: type:( "ext4" ) target:( "/ var /lib/kubelet/pods/dc732718-d3be-4d8b-83f3-ae21d357f01c/volumes/kubernetes.io~csi/pvc-382cb438-40c4-43f0-9c8c-58f9dd2cdb0e/mount" ) options:( "defaults" ) errcode:(executable file not found in $PATH) output:() sc.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 allowVolumeExpansion: true metadata:   name: my-sc provisioner: topolvm.cybozu.com volumeBindingMode: WaitForFirstConsumer reclaimPolicy: "Delete" parameters:   csi.storage.k8s.io/fstype: ext4 pvc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata:   name: mypvc1 spec:   accessModes:   - ReadWriteOnce   storageClassName: my-sc   resources:     requests:       storage: 5Gi pod.yaml kind: Pod apiVersion: v1 metadata:   name: mypod spec:   containers:     - name: dynamic       image: quay.io/openshifttest/hello-openshift@sha256:b1aabe8c8272f750ce757b6c4263a2712796297511e0c6df79144ee188933623       volumeMounts:         - mountPath: /mnt/storage           name: my-vol       ports:         - containerPort: 80           name: "http-server"   volumes:     - name: my-vol       persistentVolumeClaim:       claimName: mypvc1
    • uShift Sprint 225, uShift Sprint 226, uShift Sprint 227

    Description

      Default file system type (fsType) is 'xfs' for ODF LVM operator, pod creation fails for all other types (ext4, ext3, ext2). Upstream Topo LVM supports ext4, but ODF LVM doesn't support currently.

      Attachments

        Activity

          People

            jcope@redhat.com Jon Cope
            rh-ee-rdeore Rahul Deore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: