Closed saurabhwani5 closed 7 months ago
Uploaded csi snap here : /scale-csi/D.1012
This is expected due to additional REST call and handling added for RDR in case of VAR_DRIVER_DISCOVER_CG_FILESET: ENABLED
and this will most likely be not fixed in CSI 2.10.
Along with the time taken for a PVC to go to bound state, the actual time taken for CreateVolume request by CSI driver in the logs will help to understand exact numbers here, e.g.
I0908 06:11:11.617869 1 utils.go:79] [d8df41bc-e6d4-48fc-8432-1a580c7279bb] Time taken to execute /csi.v1.Controller/CreateVolume request(in milliseconds): 27059
In case of disabled PVC creation is talking more than 60 sec , need to check why is this taking more time
I0908 07:20:47.204830 1 utils.go:79] [47ac119a-dbad-42c3-910a-6bc0001ae112] Time taken to execute /csi.v1.Controller/CreateVolume request(in milliseconds): 62375
DISABLED taking more time was observed by Saurabh in dev build before PR#1004, and I think with CSI 2.8.0 build also. It is likely to be due to delay from Scale/GUI/Network. Please try the combinations of Scale cluster/CSI/k8s/OCP where you are seeing less/more delays to identify if it is due to any Scale/GUI version or fyre delay.
For ENABLED case too, observe and comment the time taken for CreateVolume in logs for multiple volumes created at various time with various Scale clusters (also while capturing the time taken for CreateVolume in case of DISABLED/previous build before PR#1004 - so that the difference is seen for the same cluster).
@amdabhad @saurabhwani5 is this still a valid defect ?
@Jainbrt when CG fileset discovery is ENABLED and if there are multiple independent filesets on the storage created by CSI, then the delay is expected due additional processing added in CSI 2.10 for RDR. So from test side, unless you want to test delays for any scenarios for DISABLED case, this can be closed (anyways similar delays were also observed on one of Saurabh's cluster with CSI 2.8.0).
Based on last comment, we can close this defect
Describe the bug
When there are 100 Independent version 1 PVCs/ Fileset already present , pvc creation of version2 takes more time when VAR_DRIVER_DISCOVER_CG_FILESET: ENABLED
How to Reproduce?
(Note : In this case I'm considering time required to create second PVC onwards for all of the below example as after applying optional cm it takes more time for first PVC creation)
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: scale-advance-pvc spec: accessModes:
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ibm-spectrum-scale-csi-advance provisioner: spectrumscale.csi.ibm.com parameters: volBackendFs: "local-sample" version: "2" reclaimPolicy: Delete scale-advance-pvc Pending pvc-5c850e74-60e5-458d-a54b-336790b9cb44 0 ibm-spectrum-scale-csi-advance 15s scale-advance-pvc Bound pvc-5c850e74-60e5-458d-a54b-336790b9cb44 1Gi RWX ibm-spectrum-scale-csi-advance 15s [root@worker0 31223663-891c-42dd-b826-000000000005-default]# ls pvc-5c850e74-60e5-458d-a54b-336790b9cb44 [root@worker0 31223663-891c-42dd-b826-000000000005-default]# pwd /mnt/local-sample/31223663-891c-42dd-b826-000000000005-default
scale-advance-pvc Pending pvc-e3e24667-68bf-46cf-9958-48dc74e8959b 0 ibm-spectrum-scale-csi-advance 24s scale-advance-pvc Bound pvc-e3e24667-68bf-46cf-9958-48dc74e8959b 1Gi RWX ibm-spectrum-scale-csi-advance 24s
[root@api.saurabh56.cp.fyre.ibm.com pr1004]# cat cm.yaml kind: ConfigMap apiVersion: v1 metadata: name: ibm-spectrum-scale-csi-config namespace: ibm-spectrum-scale-csi data: VAR_DRIVER_DISCOVER_CG_FILESET: DISABLED [root@api.saurabh56.cp.fyre.ibm.com pr1004]# oc apply -f cm.yaml configmap/ibm-spectrum-scale-csi-config created [root@api.saurabh56.cp.fyre.ibm.com pr1004]# oc project ibm-spectrum-scale-csi Now using project "ibm-spectrum-scale-csi" on server "https://api.saurabh56.cp.fyre.ibm.com:6443". [root@api.saurabh56.cp.fyre.ibm.com pr1004]# oc get pods NAME READY STATUS RESTARTS AGE ibm-spectrum-scale-csi-attacher-79988f966c-8lpn6 1/1 Running 0 63s ibm-spectrum-scale-csi-attacher-79988f966c-bcjvq 1/1 Running 0 63s ibm-spectrum-scale-csi-operator-7c5df54f55-f8749 1/1 Running 0 4h39m ibm-spectrum-scale-csi-provisioner-849d44564d-cv5h7 1/1 Running 0 63s ibm-spectrum-scale-csi-resizer-97b5fdfff-vwsrn 1/1 Running 0 63s ibm-spectrum-scale-csi-snapshotter-6fd4dc599d-rmhz2 1/1 Running 0 63s ibm-spectrum-scale-csi-srf2l 3/3 Running 0 56s ibm-spectrum-scale-csi-v67n6 3/3 Running 0 59s ibm-spectrum-scale-csi-wxrpm 3/3 Running 0 62s [root@api.saurabh56.cp.fyre.ibm.com pr1004]# oc get cso NAME VERSION SUCCESS ibm-spectrum-scale-csi 2.10.0 True [root@api.saurabh56.cp.fyre.ibm.com pr1004]# oc exec -it ibm-spectrum-scale-csi-srf2l -- env PATH=/chroot:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm HOSTNAME=worker0.saurabh56.cp.fyre.ibm.com NSS_SDB_USE_CACHE=no NODEPUBLISH_METHOD=BINDMOUNT CSI_ENDPOINT=unix:///var/lib/kubelet/plugins/spectrumscale.csi.ibm.com/csi.sock worker0.saurabh56.cp.fyre.ibm.com=worker0 worker2.saurabh56.cp.fyre.ibm.com=worker2 master0.saurabh56.cp.fyre.ibm.com=master0 PERSISTENT_LOG=DISABLED worker1.saurabh56.cp.fyre.ibm.com=worker1 SHORTNAME_NODE_MAPPING=yes IS_OpenShift=True VOLUME_STATS_CAPABILITY=ENABLED KUBELET_ROOT_DIR_PATH=/var/lib/kubelet SKIP_MOUNT_UNMOUNT=yes NODE_ID=worker0.saurabh56.cp.fyre.ibm.com master1.saurabh56.cp.fyre.ibm.com=master1 CSI_CG_PREFIX=31223663-891c-42dd-b826-3be564ddea55 DISCOVER_CG_FILESET=DISABLED
[root@worker0 local-sample]# ls | grep default 31223663-891c-42dd-b826-000000000005-default scale-advance-pvc Pending pvc-1d1281fc-23bb-4d14-afa2-58ed00bd07d3 0 ibm-spectrum-scale-csi-advance 15s scale-advance-pvc Bound pvc-1d1281fc-23bb-4d14-afa2-58ed00bd07d3 1Gi RWX ibm-spectrum-scale-csi-advance 15s
scale-advance-pvc Pending pvc-7875e517-f008-4f2d-8df1-8a28278a15db 0 ibm-spectrum-scale-csi-advance 12s scale-advance-pvc Bound pvc-7875e517-f008-4f2d-8df1-8a28278a15db 1Gi RWX ibm-spectrum-scale-csi-advance 12s
mmcrfileset local-sample 31223663-891c-42dd-b826-000000000005-default --inode-space=new -t "Fileset created by IBM Container Storage Interface driver" mmlinkfileset local-sample 31223663-891c-42dd-b826-000000000005-default