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
[blobfuse2] return code should be non-zero when mount parameter is wrong #735
Comments
-o cli inputs are not supported in v2. If you wish you use v2 with same semantics, in terms of cli, as v1 then you can use "mountv1" option instead. If you wish to use "mount" command of v2 then "--read-only, --attr-timeout, --negative-timeout, --entry-timeout" are the replacements for the same. |
@vibhansa-msft |
Thanks for opening the issue @andyzhangx we'll get that fixed :) |
Hi @andyzhangx this issue appears to be from the command library that we're using - they don't give us the ability to exit on errors. I have opened up an issue against their repo here spf13/cobra#1633. I will keep you posted! |
I think this is a blocking issue, maybe you could switch to flag:
|
here is the example I switch from |
@andyzhangx it might not be as simple as that example since we parse inputs from flags, config file and env var. So we have some other logic that does this. I will investigate the feasibility of migrating to flags. If not, we may just have to fork the cobra library and set the error handling to ExitOnError manually |
Required code changes merged into main branch. |
Which version of the blobfuse was used?
blobfuse v2 preview
Which OS (please include version) are you using?
Ubuntu 18.04
What problem was encountered?
It seems
-o
parameters are not supported any more in v2, while it still returns 0 which means mount is successful, and csi driver would regard it as successful mount. return code should be non-zero when mount parameter is wrongHave you found a mitigation/solution?
By default, blobfuse logs errors to syslog. If this is relevant, is there anything in the syslog that might be helpful?
If relevant, please share your mount command.
The text was updated successfully, but these errors were encountered: