Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rwx and rox support for nfs #231

Merged
merged 3 commits into from
Aug 7, 2023
Merged

Add rwx and rox support for nfs #231

merged 3 commits into from
Aug 7, 2023

Conversation

VamsiSiddu-7
Copy link
Contributor

@VamsiSiddu-7 VamsiSiddu-7 commented Aug 7, 2023

Description

This pr adds the RWX and ROX support for csi-powerflex nfs-support

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#763

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • RWX Test Logs
     time="2023-08-04T13:39:43Z" level=info msg="/csi.v1.Controller/CreateVolume: REQ 0019: Name=k8s-9d83be7ea8, CapacityRange=required_bytes:8589934592 , VolumeCapabilities=[mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > ], Parameters=map[allowRoot:true csi.storage.k8s.io/pv/name:k8s-9d83be7ea8 csi.storage.k8s.io/pvc/name:pvol0 csi.storage.k8s.io/pvc/namespace:default nasName:env8nasserver storagepool:Env8-SP-SW_SSD-1 systemID:05d539c3cdc5280f], AccessibilityRequirements=requisite:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > preferred:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > , XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:39:43Z" level=info msg="getSystemIDFromParameters system 05d539c3cdc5280f"
time="2023-08-04T13:39:43Z" level=info msg="Use systemID as 05d539c3cdc5280f"
time="2023-08-04T13:39:43Z" level=info msg="Found topology constraint: VxFlex OS system: 05d539c3cdc5280f-nfs"
time="2023-08-04T13:39:43Z" level=info msg="Added accessible topology segment for volume: k8s-9d83be7ea8, segment: csi-vxflexos.dellemc.com/05d539c3cdc5280f = true"
time="2023-08-04T13:39:43Z" level=info msg="Accessible topology for volume: k8s-9d83be7ea8, segments: map[string]string{\"csi-vxflexos.dellemc.com/05d539c3cdc5280f\":\"true\"}"
time="2023-08-04T13:39:43Z" level=info msg="Protection Domain name not provided; there could be conflicts if two storage pools share a name"
time="2023-08-04T13:39:43Z" level=info msg="Executing CreateVolume with following fields" Name=k8s-9d83be7ea8 NasServerID=64132f37-d33e-9d4a-89ba-d625520a4779 SizeInB=8589934592 StoragePoolID=28515fee00000000 x-csi-pv-claimname=pvol0 x-csi-pv-name=k8s-9d83be7ea8 x-csi-pv-namespace=default
time="2023-08-04T13:39:44Z" level=debug msg="Volume does not exist, proceeding to create new volume"
time="2023-08-04T13:39:59Z" level=info msg="/csi.v1.Controller/CreateVolume: REP 0019: Volume=capacity_bytes:8589934592 volume_id:\"05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943\" volume_context:<key:\"CreationTime\" value:\"1970-01-01 00:00:00 +0000 UTC\" > volume_context:<key:\"InstallationID\" value:\"04cfcf6a7ded067f\" > volume_context:<key:\"Name\" value:\"k8s-9d83be7ea8\" > volume_context:<key:\"NasServerID\" value:\"64132f37-d33e-9d4a-89ba-d625520a4779\" > volume_context:<key:\"StoragePoolID\" value:\"28515fee00000000\" > volume_context:<key:\"StoragePoolName\" value:\"Env8-SP-SW_SSD-1\" > volume_context:<key:\"StorageSystem\" value:\"05d539c3cdc5280f\" > volume_context:<key:\"fsType\" value:\"nfs\" > volume_context:<key:\"nasName\" value:\"env8nasserver\" > volume_context:<key:\"nfsAcls\" value:\"0777\" > accessible_topology:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > , XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:39:59Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REQ 0020: VolumeId=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943, NodeId=EA5045EF-5955-5FB1-AE15-5D2A55B21085, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-9d83be7ea8 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:39:59Z" level=info msg="VolumeContext:"
time="2023-08-04T13:39:59Z" level=info msg="    [CreationTime]=1970-01-01 00:00:00 +0000 UTC"
time="2023-08-04T13:39:59Z" level=info msg="    [InstallationID]=04cfcf6a7ded067f"
time="2023-08-04T13:39:59Z" level=info msg="    [NasServerID]=64132f37-d33e-9d4a-89ba-d625520a4779"
time="2023-08-04T13:39:59Z" level=info msg="    [StorageSystem]=05d539c3cdc5280f"
time="2023-08-04T13:39:59Z" level=info msg="    [Name]=k8s-9d83be7ea8"
time="2023-08-04T13:39:59Z" level=info msg="    [StoragePoolID]=28515fee00000000"
time="2023-08-04T13:39:59Z" level=info msg="    [nasName]=env8nasserver"
time="2023-08-04T13:39:59Z" level=info msg="    [fsType]=nfs"
time="2023-08-04T13:39:59Z" level=info msg="    [nfsAcls]=0777"
time="2023-08-04T13:39:59Z" level=info msg="    [storage.kubernetes.io/csiProvisionerIdentity]=1691143919314-4133-csi-vxflexos.dellemc.com"
time="2023-08-04T13:39:59Z" level=info msg="    [StoragePoolName]=Env8-SP-SW_SSD-1"
time="2023-08-04T13:39:59Z" level=info msg="Volume ID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-04T13:40:00Z" level=debug msg="NFS Export does not exist for fs: k8s-9d83be7ea8 ,proceeding to create NFS Export"
time="2023-08-04T13:40:02Z" level=debug msg="NFS Export: 64ccffb0-769d-44ae-3bb2-3a7645b0a943 is accessible to host: EA5045EF-5955-5FB1-AE15-5D2A55B21085 with access mode: MULTI_NODE_MULTI_WRITER"
time="2023-08-04T13:40:02Z" level=debug msg="ControllerPublishVolume successful for volid: [05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943]"
time="2023-08-04T13:40:02Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REP 0020: PublishContext=map[host:xxxxx2 nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:41:52Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REQ 0021: VolumeId=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943, NodeId=F63BB95F-3594-5AA8-8390-CAA24138F015, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-9d83be7ea8 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:41:52Z" level=info msg="VolumeContext:"
time="2023-08-04T13:41:52Z" level=info msg="    [InstallationID]=04cfcf6a7ded067f"
time="2023-08-04T13:41:52Z" level=info msg="    [StorageSystem]=05d539c3cdc5280f"
time="2023-08-04T13:41:52Z" level=info msg="    [Name]=k8s-9d83be7ea8"
time="2023-08-04T13:41:52Z" level=info msg="    [NasServerID]=64132f37-d33e-9d4a-89ba-d625520a4779"
time="2023-08-04T13:41:52Z" level=info msg="    [StoragePoolID]=28515fee00000000"
time="2023-08-04T13:41:52Z" level=info msg="    [nasName]=env8nasserver"
time="2023-08-04T13:41:52Z" level=info msg="    [StoragePoolName]=Env8-SP-SW_SSD-1"
time="2023-08-04T13:41:52Z" level=info msg="    [fsType]=nfs"
time="2023-08-04T13:41:52Z" level=info msg="    [nfsAcls]=0777"
time="2023-08-04T13:41:52Z" level=info msg="    [storage.kubernetes.io/csiProvisionerIdentity]=1691143919314-4133-csi-vxflexos.dellemc.com"
time="2023-08-04T13:41:52Z" level=info msg="    [CreationTime]=1970-01-01 00:00:00 +0000 UTC"
time="2023-08-04T13:41:52Z" level=info msg="Volume ID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-04T13:41:54Z" level=debug msg="NFS Export: 64ccffb0-769d-44ae-3bb2-3a7645b0a943 is accessible to host: F63BB95F-3594-5AA8-8390-CAA24138F015 with access mode: MULTI_NODE_MULTI_WRITER"
time="2023-08-04T13:41:54Z" level=debug msg="ControllerPublishVolume successful for volid: [05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943]"
time="2023-08-04T13:41:54Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REP 0021: PublishContext=map[host:xxxxxx1 nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

time="2023-08-04T13:40:05Z" level=info msg="/csi.v1.Node/NodePublishVolume: REQ 0007: VolumeId=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943, PublishContext=map[host:xxxxxx nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943], TargetPath=/var/lib/kubelet/pods/cd994326-a1eb-4c87-af7c-e24d50197b86/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-9d83be7ea8 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f csi.storage.k8s.io/ephemeral:false csi.storage.k8s.io/pod.name:test-deployment-9898ff984-9cxc4 csi.storage.k8s.io/pod.namespace:default csi.storage.k8s.io/pod.uid:cd994326-a1eb-4c87-af7c-e24d50197b86 csi.storage.k8s.io/serviceAccount.name:default fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

time="2023-08-04T13:40:05Z" level=info msg="[NodePublishVolume] csiVolID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943"
time="2023-08-04T13:40:05Z" level=info msg="[NodePublishVolume] volumeID: 3a7645b0a943"
time="2023-08-04T13:40:05Z" level=info msg="[NodePublishVolume] systemID: 05d539c3cdc5280f harvested from csiVolID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943"
time="2023-08-04T13:40:05Z" level=info msg="[NodePublishVolume] We are about to probe the system with systemID 05d539c3cdc5280f"
time="2023-08-04T13:40:05Z" level=info msg="Volume ID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-04T13:40:06Z" level=info msg="The mountOptions received are: []"
time="2023-08-04T13:40:06Z" level=debug msg="created directory" path="/var/lib/kubelet/pods/cd994326-a1eb-4c87-af7c-e24d50197b86/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount"
time="2023-08-04T13:40:06Z" level=info msg="Node publish volume params " AccessMode=MULTI_NODE_MULTI_WRITER ExportPath="xxxxxx:/k8s-9d83be7ea8" ID=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 TargetPath="/var/lib/kubelet/pods/cd994326-a1eb-4c87-af7c-e24d50197b86/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount"
time="2023-08-04T13:40:06Z" level=info msg="The mountOptions being used for mount are: [rw]"
time="2023-08-04T13:40:06Z" level=info msg="mount command" args="-t nfs -o rw xxxxx:/k8s-9d83be7ea8 /var/lib/kubelet/pods/cd994326-a1eb-4c87-af7c-e24d50197b86/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount" cmd=mount
time="2023-08-04T13:40:07Z" level=info msg="/csi.v1.Node/NodePublishVolume: REP 0007: XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-04T13:41:58Z" level=info msg="/csi.v1.Node/NodePublishVolume: REQ 0426: VolumeId=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943, PublishContext=map[host:xxxxxx nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943], TargetPath=/var/lib/kubelet/pods/b6ba5930-5a25-4d9b-8998-56ff2498f9eb/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_MULTI_WRITER > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-9d83be7ea8 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f csi.storage.k8s.io/ephemeral:false csi.storage.k8s.io/pod.name:test-deployment-2-6d85895d85-v5x4g csi.storage.k8s.io/pod.namespace:default csi.storage.k8s.io/pod.uid:b6ba5930-5a25-4d9b-8998-56ff2498f9eb csi.storage.k8s.io/serviceAccount.name:default fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"


time="2023-08-04T13:41:58Z" level=info msg="found in VolumeContext" nasName=env8nasserver
time="2023-08-04T13:41:58Z" level=info msg="[NodePublishVolume] csiVolID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943"
time="2023-08-04T13:41:58Z" level=info msg="[NodePublishVolume] volumeID: 3a7645b0a943"
time="2023-08-04T13:41:58Z" level=info msg="[NodePublishVolume] systemID: 05d539c3cdc5280f harvested from csiVolID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943"
time="2023-08-04T13:41:58Z" level=info msg="[NodePublishVolume] We are about to probe the system with systemID 05d539c3cdc5280f"
time="2023-08-04T13:41:58Z" level=info msg="Volume ID: 05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-04T13:41:59Z" level=info msg="The mountOptions received are: []"
time="2023-08-04T13:41:59Z" level=debug msg="created directory" path="/var/lib/kubelet/pods/b6ba5930-5a25-4d9b-8998-56ff2498f9eb/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount"
time="2023-08-04T13:41:59Z" level=info msg="Node publish volume params " AccessMode=MULTI_NODE_MULTI_WRITER ExportPath="xxxxxx:/k8s-9d83be7ea8" ID=05d539c3cdc5280f/64ccffa0-1453-a192-d66f-3a7645b0a943 TargetPath="/var/lib/kubelet/pods/b6ba5930-5a25-4d9b-8998-56ff2498f9eb/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount"
time="2023-08-04T13:41:59Z" level=info msg="The mountOptions being used for mount are: [rw]"
time="2023-08-04T13:41:59Z" level=info msg="mount command" args="-t nfs -o rw xxxxxx:/k8s-9d83be7ea8 /var/lib/kubelet/pods/b6ba5930-5a25-4d9b-8998-56ff2498f9eb/volumes/kubernetes.io~csi/k8s-9d83be7ea8/mount" cmd=mount
time="2023-08-04T13:41:59Z" level=info msg="/csi.v1.Node/NodePublishVolume: REP 0426: XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

[root@master-1-wkC8qnRhY5M5A manifests]# k exec -it test-deployment-9898ff984-6jhrb -- /bin/sh
/ #
/ # ls
bin    data   dev    etc    home   lib    lib64  proc   root   sys    tmp    usr    var
/ # ls -l data
total 16
drwxr-xr-x    2 root     root          8192 Aug  4 13:39 lost+found
-rw-r--r--    1 root     root            12 Aug  4 13:53 test.txt


[root@master-1-wkC8qnRhY5M5A manifests]# k exec -it test-deployment-2-6d85895d85-fhcvs -- /bin/sh
/ #
/ # ls
bin    data   dev    etc    home   lib    lib64  proc   root   sys    tmp    usr    var
/ # ls -l data
total 16
drwxr-xr-x    2 root     root          8192 Aug  4 13:39 lost+found
-rw-r--r--    1 root     root            12 Aug  4 13:53 test.txt
/ #
  • ROX logs
time="2023-08-06T13:28:47Z" level=info msg="/csi.v1.Controller/CreateVolume: REQ 0025: Name=k8s-09fe945897, CapacityRange=required_bytes:8589934592 , VolumeCapabilities=[mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_READER_ONLY > ], Parameters=map[allowRoot:true csi.storage.k8s.io/pv/name:k8s-09fe945897 csi.storage.k8s.io/pvc/name:pvol0 csi.storage.k8s.io/pvc/namespace:default nasName:env8nasserver storagepool:Env8-SP-SW_SSD-1 systemID:05d539c3cdc5280f], AccessibilityRequirements=requisite:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > preferred:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > , XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:28:47Z" level=info msg="getSystemIDFromParameters system 05d539c3cdc5280f"
time="2023-08-06T13:28:47Z" level=info msg="Use systemID as 05d539c3cdc5280f"
time="2023-08-06T13:28:47Z" level=info msg="Found topology constraint: VxFlex OS system: 05d539c3cdc5280f-nfs"
time="2023-08-06T13:28:47Z" level=info msg="Added accessible topology segment for volume: k8s-09fe945897, segment: csi-vxflexos.dellemc.com/05d539c3cdc5280f = true"
time="2023-08-06T13:28:47Z" level=info msg="Accessible topology for volume: k8s-09fe945897, segments: map[string]string{\"csi-vxflexos.dellemc.com/05d539c3cdc5280f\":\"true\"}"
time="2023-08-06T13:28:48Z" level=info msg="Protection Domain name not provided; there could be conflicts if two storage pools share a name"
time="2023-08-06T13:28:48Z" level=info msg="Executing CreateVolume with following fields" Name=k8s-09fe945897 NasServerID=64132f37-d33e-9d4a-89ba-d625520a4779 SizeInB=8589934592 StoragePoolID=28515fee00000000 x-csi-pv-claimname=pvol0 x-csi-pv-name=k8s-09fe945897 x-csi-pv-namespace=default
time="2023-08-06T13:28:48Z" level=debug msg="Volume does not exist, proceeding to create new volume"
time="2023-08-06T13:29:05Z" level=info msg="/csi.v1.Controller/CreateVolume: REP 0025: Volume=capacity_bytes:8589934592 volume_id:\"05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943\" volume_context:<key:\"CreationTime\" value:\"1970-01-01 00:00:00 +0000 UTC\" > volume_context:<key:\"InstallationID\" value:\"04cfcf6a7ded067f\" > volume_context:<key:\"Name\" value:\"k8s-09fe945897\" > volume_context:<key:\"NasServerID\" value:\"64132f37-d33e-9d4a-89ba-d625520a4779\" > volume_context:<key:\"StoragePoolID\" value:\"28515fee00000000\" > volume_context:<key:\"StoragePoolName\" value:\"Env8-SP-SW_SSD-1\" > volume_context:<key:\"StorageSystem\" value:\"05d539c3cdc5280f\" > volume_context:<key:\"fsType\" value:\"nfs\" > volume_context:<key:\"nasName\" value:\"env8nasserver\" > volume_context:<key:\"nfsAcls\" value:\"0777\" > accessible_topology:<segments:<key:\"csi-vxflexos.dellemc.com/05d539c3cdc5280f-nfs\" value:\"true\" > > , XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:29:06Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REQ 0026: VolumeId=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943, NodeId=EA5045EF-5955-5FB1-AE15-5D2A55B21085, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_READER_ONLY > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-09fe945897 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:29:06Z" level=info msg="VolumeContext:"
time="2023-08-06T13:29:06Z" level=info msg="    [Name]=k8s-09fe945897"
time="2023-08-06T13:29:06Z" level=info msg="    [nasName]=env8nasserver"
time="2023-08-06T13:29:06Z" level=info msg="    [CreationTime]=1970-01-01 00:00:00 +0000 UTC"
time="2023-08-06T13:29:06Z" level=info msg="    [InstallationID]=04cfcf6a7ded067f"
time="2023-08-06T13:29:06Z" level=info msg="    [fsType]=nfs"
time="2023-08-06T13:29:06Z" level=info msg="    [StoragePoolID]=28515fee00000000"
time="2023-08-06T13:29:06Z" level=info msg="    [StoragePoolName]=Env8-SP-SW_SSD-1"
time="2023-08-06T13:29:06Z" level=info msg="    [StorageSystem]=05d539c3cdc5280f"
time="2023-08-06T13:29:06Z" level=info msg="    [nfsAcls]=0777"
time="2023-08-06T13:29:06Z" level=info msg="    [NasServerID]=64132f37-d33e-9d4a-89ba-d625520a4779"
time="2023-08-06T13:29:06Z" level=info msg="    [storage.kubernetes.io/csiProvisionerIdentity]=1691143919314-4133-csi-vxflexos.dellemc.com"
time="2023-08-06T13:29:06Z" level=info msg="Volume ID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-06T13:29:07Z" level=debug msg="NFS Export does not exist for fs: k8s-09fe945897 ,proceeding to create NFS Export"
time="2023-08-06T13:29:08Z" level=debug msg="NFS Export: 64cfa023-757c-16ce-a359-3a7645b0a943 is accessible to host: EA5045EF-5955-5FB1-AE15-5D2A55B21085 with access mode: MULTI_NODE_READER_ONLY"
time="2023-08-06T13:29:08Z" level=debug msg="ControllerPublishVolume successful for volid: [05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943]"
time="2023-08-06T13:29:08Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REP 0026: PublishContext=map[host:xxxxxx nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:30:45Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REQ 0027: VolumeId=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943, NodeId=F63BB95F-3594-5AA8-8390-CAA24138F015, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_READER_ONLY > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-09fe945897 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:30:45Z" level=info msg="VolumeContext:"
time="2023-08-06T13:30:45Z" level=info msg="    [storage.kubernetes.io/csiProvisionerIdentity]=1691143919314-4133-csi-vxflexos.dellemc.com"
time="2023-08-06T13:30:45Z" level=info msg="    [StoragePoolID]=28515fee00000000"
time="2023-08-06T13:30:45Z" level=info msg="    [StoragePoolName]=Env8-SP-SW_SSD-1"
time="2023-08-06T13:30:45Z" level=info msg="    [nasName]=env8nasserver"
time="2023-08-06T13:30:45Z" level=info msg="    [fsType]=nfs"
time="2023-08-06T13:30:45Z" level=info msg="    [nfsAcls]=0777"
time="2023-08-06T13:30:45Z" level=info msg="    [Name]=k8s-09fe945897"
time="2023-08-06T13:30:45Z" level=info msg="    [NasServerID]=64132f37-d33e-9d4a-89ba-d625520a4779"
time="2023-08-06T13:30:45Z" level=info msg="    [CreationTime]=1970-01-01 00:00:00 +0000 UTC"
time="2023-08-06T13:30:45Z" level=info msg="    [InstallationID]=04cfcf6a7ded067f"
time="2023-08-06T13:30:45Z" level=info msg="    [StorageSystem]=05d539c3cdc5280f"
time="2023-08-06T13:30:45Z" level=info msg="Volume ID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-06T13:30:46Z" level=debug msg="NFS Export: 64cfa023-757c-16ce-a359-3a7645b0a943 is accessible to host: F63BB95F-3594-5AA8-8390-CAA24138F015 with access mode: MULTI_NODE_READER_ONLY"
time="2023-08-06T13:30:46Z" level=debug msg="ControllerPublishVolume successful for volid: [05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943]"
time="2023-08-06T13:30:46Z" level=info msg="/csi.v1.Controller/ControllerPublishVolume: REP 0027: PublishContext=map[host:xxxxxx nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

time="2023-08-06T13:29:16Z" level=info msg="/csi.v1.Node/NodePublishVolume: REQ 5767: VolumeId=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943, PublishContext=map[host:xxxxx nasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943], TargetPath=/var/lib/kubelet/pods/0b705476-3b29-4360-b566-bc7a02ab6274/volumes/kubernetes.io~csi/k8s-09fe945897/mount, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_READER_ONLY > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-09fe945897 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f csi.storage.k8s.io/ephemeral:false csi.storage.k8s.io/pod.name:test-deployment-9898ff984-b5fn7 csi.storage.k8s.io/pod.namespace:default csi.storage.k8s.io/pod.uid:0b705476-3b29-4360-b566-bc7a02ab6274 csi.storage.k8s.io/serviceAccount.name:default fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

time="2023-08-06T13:29:16Z" level=info msg="[NodePublishVolume] csiVolID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943"
time="2023-08-06T13:29:16Z" level=info msg="[NodePublishVolume] volumeID: 3a7645b0a943"
time="2023-08-06T13:29:16Z" level=info msg="[NodePublishVolume] systemID: 05d539c3cdc5280f harvested from csiVolID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943"
time="2023-08-06T13:29:16Z" level=info msg="[NodePublishVolume] We are about to probe the system with systemID 05d539c3cdc5280f"
time="2023-08-06T13:29:16Z" level=info msg="Volume ID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-06T13:29:17Z" level=info msg="The mountOptions received are: []"
time="2023-08-06T13:29:17Z" level=debug msg="created directory" path="/var/lib/kubelet/pods/0b705476-3b29-4360-b566-bc7a02ab6274/volumes/kubernetes.io~csi/k8s-09fe945897/mount"
time="2023-08-06T13:29:17Z" level=info msg="Node publish volume params " AccessMode=MULTI_NODE_READER_ONLY ExportPath="10.225.109.43:/k8s-09fe945897" ID=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 TargetPath="/var/lib/kubelet/pods/0b705476-3b29-4360-b566-bc7a02ab6274/volumes/kubernetes.io~csi/k8s-09fe945897/mount"
time="2023-08-06T13:29:17Z" level=info msg="The mountOptions being used for mount are: [rw]"
time="2023-08-06T13:29:17Z" level=info msg="mount command" args="-t nfs -o rw xxxxxx:/k8s-09fe945897 /var/lib/kubelet/pods/0b705476-3b29-4360-b566-bc7a02ab6274/volumes/kubernetes.io~csi/k8s-09fe945897/mount" cmd=mount
time="2023-08-06T13:29:17Z" level=info msg="/csi.v1.Node/NodePublishVolume: REP 5767: XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:30:52Z" level=info msg="/csi.v1.Node/NodePublishVolume: REQ 6169: VolumeId=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943, PublishContext=map[host:xxxxxxxnasName:env8nasserver nfsAcls:0777 volumeContextId:05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943], TargetPath=/var/lib/kubelet/pods/69f2fb9f-49b0-4142-a2f0-937b10f2de8d/volumes/kubernetes.io~csi/k8s-09fe945897/mount, VolumeCapability=mount:<fs_type:\"nfs\" > access_mode:<mode:MULTI_NODE_READER_ONLY > , Readonly=false, VolumeContext=map[CreationTime:1970-01-01 00:00:00 +0000 UTC InstallationID:04cfcf6a7ded067f Name:k8s-09fe945897 NasServerID:64132f37-d33e-9d4a-89ba-d625520a4779 StoragePoolID:28515fee00000000 StoragePoolName:Env8-SP-SW_SSD-1 StorageSystem:05d539c3cdc5280f csi.storage.k8s.io/ephemeral:false csi.storage.k8s.io/pod.name:test-deployment-2-6d85895d85-85r5t csi.storage.k8s.io/pod.namespace:default csi.storage.k8s.io/pod.uid:69f2fb9f-49b0-4142-a2f0-937b10f2de8d csi.storage.k8s.io/serviceAccount.name:default fsType:nfs nasName:env8nasserver nfsAcls:0777 storage.kubernetes.io/csiProvisionerIdentity:1691143919314-4133-csi-vxflexos.dellemc.com], XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
time="2023-08-06T13:30:52Z" level=info msg="[NodePublishVolume] csiVolID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943"
time="2023-08-06T13:30:52Z" level=info msg="[NodePublishVolume] volumeID: 3a7645b0a943"
time="2023-08-06T13:30:52Z" level=info msg="[NodePublishVolume] systemID: 05d539c3cdc5280f harvested from csiVolID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943"
time="2023-08-06T13:30:52Z" level=info msg="[NodePublishVolume] We are about to probe the system with systemID 05d539c3cdc5280f"
time="2023-08-06T13:30:52Z" level=info msg="Volume ID: 05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 contains system ID: 05d539c3cdc5280f. checkVolumesMap passed"
time="2023-08-06T13:30:52Z" level=info msg="The mountOptions received are: []"
time="2023-08-06T13:30:52Z" level=debug msg="created directory" path="/var/lib/kubelet/pods/69f2fb9f-49b0-4142-a2f0-937b10f2de8d/volumes/kubernetes.io~csi/k8s-09fe945897/mount"
time="2023-08-06T13:30:52Z" level=info msg="Node publish volume params " AccessMode=MULTI_NODE_READER_ONLY ExportPath="10.225.109.43:/k8s-09fe945897" ID=05d539c3cdc5280f/64cfa010-0769-0b6e-f0a8-3a7645b0a943 TargetPath="/var/lib/kubelet/pods/69f2fb9f-49b0-4142-a2f0-937b10f2de8d/volumes/kubernetes.io~csi/k8s-09fe945897/mount"
time="2023-08-06T13:30:52Z" level=info msg="The mountOptions being used for mount are: [rw]"
time="2023-08-06T13:30:52Z" level=info msg="mount command" args="-t nfs -o rw xxxxxx:/k8s-09fe945897 /var/lib/kubelet/pods/69f2fb9f-49b0-4142-a2f0-937b10f2de8d/volumes/kubernetes.io~csi/k8s-09fe945897/mount" cmd=mount
time="2023-08-06T13:30:52Z" level=info msg="/csi.v1.Node/NodePublishVolume: REP 6169: XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"


[root@master-1-wkC8qnRhY5M5A manifests]# k exec -it test-deployment-9898ff984-9hvlz -- /bin/sh
/ #
/ # ls
bin    data   dev    etc    home   lib    lib64  proc   root   sys    tmp    usr    var

/ # ls -l /data
total 8
drwxr-xr-x    2 root     root          8192 Aug  6 13:28 lost+found
/ # cd /data
/data # ls
lost+found
/data # touch test.txt
touch: test.txt: Read-only file system
/data # exit
command terminated with exit code 1
[root@master-1-wkC8qnRhY5M5A manifests]# k exec -it test-deployment-2-6d85895d85-w9m98 -- /bin/sh
/ #
/ # ls
bin    data   dev    etc    home   lib    lib64  proc   root   sys    tmp    usr    var
/ # ls -l data
total 8
drwxr-xr-x    2 root     root          8192 Aug  6 13:28 lost+found
/ # cd data
/data # ls
lost+found
/data # touch test.txt
touch: test.txt: Read-only file system

@VamsiSiddu-7 VamsiSiddu-7 merged commit 62a3b38 into main Aug 7, 2023
@anandrajak1 anandrajak1 deleted the add-rwx-support branch October 17, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants