Verify that kadalu will not process any other volumes AND kadalu-provisioner-0 errors with
[2024-08-01 17:09:47,424] ERROR [_server - 508:_call_behavior] - Exception calling application: [Errno 2] No such file or directory: '/mnt/volprevix'
Traceback (most recent call last):
File "/kadalu/lib/python3.10/site-packages/grpc/_server.py", line 494, in _call_behavior
response_or_iterator = behavior(argument, context)
File "/kadalu/controllerserver.py", line 120, in CreateVolume
volume = search_volume(request.name)
File "/kadalu/volumeutils.py", line 782, in search_volume
retry_errors(os.statvfs, [mntdir], [ENOTCONN])
File "/kadalu/kadalulib.py", line 48, in retry_errors
return func(*args)
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/volprevix'
Expected behavior
Just work
Actual behavior
Unable to process any other volumes and errors out with restarts of containers in kadalu-provisioner-0
Thanks for bringing this up. I experienced the same error (Tried to describe it in #1058, but could not reproduce it at this time due to an other error)
Describe the bug This command has a bug: https://github.com/kadalu/kadalu/blob/d6bfe1ada056a4aa421c0c3be0f5e1ab00cbb453/lib/kadalulib.py#L67 It uses grep to match a volume, but it should use regex to exactly match the volume name, otherwise, it will match any volumes with the same prefix
To Reproduce Steps to reproduce the behavior:
Expected behavior Just work
Actual behavior Unable to process any other volumes and errors out with restarts of containers in kadalu-provisioner-0
Environment:
Screenshots or Logs Please ask
Additional context As a work around try not to name the PVCs in a way that one will be a prefix of the other. ex: Call them begin-PVC_NAME-end