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

kubelet mount failure, CSI driver not found

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 229

      Description of problem:

      Initial volume creation was successful, CSI driver is listed, but when trying to mount getting the following error;   Warning  FailedMount  2m20s (x2078 over 2d22h)  kubelet  MountVolume.MountDevice failed for volume "pvc-e9f82e8a-0c96-4198-acd7-ec235ff4ee11" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name topolvm.cybozu.com not found in the list of registered CSI drivers

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

      RH4E - microshift-4.12.0~ec.5-202210310916.p0.g6c4ad89.assembly.ec.5.el8.x86_64.rpm

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

      pvc config: apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        annotations:
          kubectl.kubernetes.io/last-applied-configuration: |
            {"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"name":"pos-mariadb-pvc","namespace":"pos"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"50Gi"}}}}
          pv.kubernetes.io/bind-completed: "yes"
          pv.kubernetes.io/bound-by-controller: "yes"
          volume.beta.kubernetes.io/storage-provisioner: topolvm.cybozu.com
          volume.kubernetes.io/selected-node: d9icwpmicro01.idm.ad.ctc
          volume.kubernetes.io/storage-provisioner: topolvm.cybozu.com
        creationTimestamp: "2022-12-09T16:53:45Z"
        finalizers:
        - kubernetes.io/pvc-protection
        name: pos-mariadb-pvc
        namespace: pos
        resourceVersion: "228934"
        uid: e9f82e8a-0c96-4198-acd7-ec235ff4ee11
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 50Gi
        storageClassName: topolvm-provisioner
        volumeMode: Filesystem
        volumeName: pvc-e9f82e8a-0c96-4198-acd7-ec235ff4ee11
      status:
        accessModes:
        - ReadWriteOnce
        capacity:
          storage: 50Gi
        phase: Bound
      --------------------
      apiVersion: v1
      kind: Service
      metadata:
        labels:
          app: mariadb
          app.kubernetes.io/component: mariadb
          app.kubernetes.io/instance: mariadb
          app.kubernetes.io/name: mariadb
          app.kubernetes.io/part-of: pos-core-app
        name: mariadb
        namespace: pos
      spec:
        ports:
        - name: 3306-tcp
          port: 3306
        selector:
          app: mariadb
          deployment: mariadb
      ---
      apiVersion: apps/v1
      kind: Deployment
      metadata:
        labels:
          app: mariadb
          app.kubernetes.io/component: mariadb
          app.kubernetes.io/instance: mariadb
          app.kubernetes.io/name: mariadb
          app.kubernetes.io/part-of: pos-core-app
        name: mariadb
        namespace: pos
      spec:
        progressDeadlineSeconds: 600
        replicas: 1
        revisionHistoryLimit: 10
        selector:
          matchLabels:
            app: mariadb
        strategy:
          rollingUpdate:
            maxSurge: 25%
            maxUnavailable: 25%
          type: RollingUpdate
        template:
          metadata:
            labels:
              app: mariadb
              deployment: mariadb
          spec:
            containers:
            - env:
              - name: MYSQL_ROOT_PASSWORD
                value: abc123
              image: mariadb:10.1.48
              imagePullPolicy: IfNotPresent
              name: mariadb
              ports:
              - containerPort: 3306
                protocol: TCP
              terminationMessagePath: /dev/termination-log
              terminationMessagePolicy: File
              volumeMounts:
              - mountPath: /var/lib/mysql
                name: pos-mariadb-pvc
              - mountPath: /etc/mysql/conf.d
                name: pos-mariadb-config
                readOnly: true
            dnsPolicy: ClusterFirst
            restartPolicy: Always
            schedulerName: default-scheduler
            terminationGracePeriodSeconds: 30
            volumes:
            - name: pos-mariadb-pvc
              persistentVolumeClaim:
                claimName: pos-mariadb-pvc
            - configMap:
                defaultMode: 420
                name: pos-mariadb-cfgmap
              name: pos-mariadb-config

       

            jcope@redhat.com Jon Cope
            mschmitt-redhat Mark Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: