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
I would like to change a log level from error to warning in CheckMountOptions().
I found the error messege in trident log(v22.10.0).
time="2022-11-07T03:21:02Z" level=error msg="checking mount options failed; mismatch in mount option: bind, this might cause mount failure" requestID=c8d856be-1fff-4926-8770-7a5bbeb4ed0c requestSource=CSI source=/dev/dm-4 target=/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/publish/pvc-831fab01-891d-463c-a51a-6d08aa468474/e2410367-77ba-40d5-9242-7def5ceee42d
This error is shown in the result of CheckMountOptions().
When CheckMountOptions() fails, it only outputs the error message but does not stop processing.
If you don't want to stop the process with only a check, I would like it to be a warning level, not an error.
Please let me know about the use case of error and the correct process that should be followed, if you don't change the log level.
Another point, I think a procMount (info source: /proc/self/mountinfo) in CheckMountOptions() doesn't include the bind option. So if the method tries to check the bind option, it will always fail.
Describe the bug
I would like to change a log level from error to warning in CheckMountOptions().
I found the error messege in trident log(v22.10.0).
This error is shown in the result of CheckMountOptions().
When CheckMountOptions() fails, it only outputs the error message but does not stop processing.
If you don't want to stop the process with only a check, I would like it to be a
warning
level, not anerror.
Please let me know about the use case of error and the correct process that should be followed, if you don't change the log level.
Another point, I think a procMount (info source:
/proc/self/mountinfo
) in CheckMountOptions() doesn't include thebind
option. So if the method tries to check thebind
option, it will always fail.Here are the logs before and after this error.
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
None
Expected behavior
The error messege in CheckoutMountOptions() will be
warning
level.The text was updated successfully, but these errors were encountered: