tungntvn23 opened a new issue, #7519:
URL: https://github.com/apache/cloudstack/issues/7519

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   * Storage csi driver, Kubernetes Service
   ##### CLOUDSTACK VERSION
   
   * 4.17.2.0
   
   ##### CONFIGURATION
   
   * Advanced networking
   * Kubernetes service enabled
   * Cloudstack CSI driver deployed
   
   
   
   ##### OS / ENVIRONMENT
   
   * CentOS 7
   
   
   ##### SUMMARY
   
   * When create kubernetes persistent volume claim, cloudstack create volume 
and attach to node success. But when node find new disk and mount, error happen 
and cannot mount new disk.
   
   
   
   ##### STEPS TO REPRODUCE
   * Install the CSI driver in the K8s cluster using the command :
   ```kubectl apply -f 
https://github.com/apalia/cloudstack-csi-driver/releases/latest/download/manifest.yaml```
   * Deploy this storage class:
   ```
   apiVersion: storage.k8s.io/v1
   kind: StorageClass
   metadata:
     name: cloudstack-custom
   provisioner: csi.cloudstack.apache.org
   reclaimPolicy: Delete
   volumeBindingMode: WaitForFirstConsumer
   allowVolumeExpansion: false
   parameters:
     csi.cloudstack.apache.org/disk-offering-id: <id of custom disk offering>
   ```
   
   * Deploy this pvs and pod:
   ```apiVersion: v1
   kind: PersistentVolumeClaim
   metadata:
     name: example-pvc
   spec:
     storageClassName: cloudstack-custom
     accessModes:
       - ReadWriteOnce
     resources:
       requests:
         storage: 1Gi
   ---
   apiVersion: v1
   kind: Pod
   metadata:
     name: example-pod
   spec:
     containers:
       - name: example
         image: busybox
         volumeMounts:
           - mountPath: "/data"
             name: example-volume
         stdin: true
         stdinOnce: true
         tty: true
     volumes:
       - name: example-volume
         persistentVolumeClaim:
           claimName: example-pvc
   ```
   
   ##### EXPECTED RESULTS
   * PVC create, attach and mount successfull 
   
   ##### ACTUAL RESULTS
   * PVC cannot mount on node.
   Cluster logs:
   ```2023-05-11T14:53:12.668020059Z stderr F 
{"level":"debug","ts":1683816792.667122,"caller":"mount/mount.go:102","msg":"Scaning
 SCSI 
host...","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.66819279Z stderr F 
{"level":"warn","ts":1683816792.6673605,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host0/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668231033Z stderr F 
{"level":"warn","ts":1683816792.6674378,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host1/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668293633Z stderr F 
{"level":"warn","ts":1683816792.6674924,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host2/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668320007Z stderr F 
{"level":"warn","ts":1683816792.667541,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host3/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668342763Z stderr F 
{"level":"warn","ts":1683816792.6675792,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host4/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668357687Z stderr F 
{"level":"warn","ts":1683816792.667621,"caller":"mount/mount.go:110","msg":"Failed
 to rescan scsi host 
/sys/class/scsi_host/host5/scan","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}
   2023-05-11T14:53:12.668386373Z stderr F 
{"level":"warn","ts":1683816792.6677256,"caller":"mount/mount.go:121","msg":"Error
 running udevadm trigger executable file not found in 
$PATH\n","grpc.start_time":"2023-05-11T14:52:44Z","grpc.request.deadline":"2023-05-11T14:54:44Z","system":"grpc","span.kind":"server","grpc.service":"csi.v1.Node","grpc.method":"NodeStageVolume"}```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to