You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mounting an smb filesystem declared as read-only in the .spec.template.spec.volumes[*] triggers an error in kubelet logs. the scheduling / deployment / filesystem appears to be working, but this event fires:
MountVolume.NodeExpandVolume failed for volume "smb-config" requested read-only file system
This error / event does not fire if the .spec.template.spec.volumes[*].readOnly is omitted.
What you expected to happen:
No errors reported.
How to reproduce it:
Deploy a simple test workload like below. As presented, it works without errors and the mounted filesystem is RO as expected.
Note the .spec.template.spec.volumes[0].persistentVolumeClaim.readOnly is disabled. When this is enabled, the mentioned error / event fires, but the workload still functions.
Maybe this isn't an issue directly with csi-smb-driver, but rather a coupling with kubelet & volume CSI operations. It would be nice if the documentation somewhere pointed out this behavior.
The text was updated successfully, but these errors were encountered:
I am also seeing this in some of my filestore logs. Only behavior is that I notice is the filestore works fine but not all the time. Sporadically I have had some mounting issues onto pods that cause pods to get stuck in an init stage but it's not all the time. I am wondering if these are connecting (doesn't seem so) but curious why these logs pop up.
What happened:
Mounting an smb filesystem declared as read-only in the
.spec.template.spec.volumes[*]
triggers an error in kubelet logs. the scheduling / deployment / filesystem appears to be working, but this event fires:This error / event does not fire if the
.spec.template.spec.volumes[*].readOnly
is omitted.What you expected to happen:
No errors reported.
How to reproduce it:
Deploy a simple test workload like below. As presented, it works without errors and the mounted filesystem is RO as expected.
Note the
.spec.template.spec.volumes[0].persistentVolumeClaim.readOnly
is disabled. When this is enabled, the mentioned error / event fires, but the workload still functions.Environment:
Parting Thoughts
Maybe this isn't an issue directly with csi-smb-driver, but rather a coupling with kubelet & volume CSI operations. It would be nice if the documentation somewhere pointed out this behavior.
The text was updated successfully, but these errors were encountered: