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

NFS mount broken on osx #7443

Closed
ol0lll opened this issue Jun 14, 2016 · 2 comments · Fixed by #7492
Closed

NFS mount broken on osx #7443

ol0lll opened this issue Jun 14, 2016 · 2 comments · Fixed by #7492
Assignees
Milestone

Comments

@ol0lll
Copy link

ol0lll commented Jun 14, 2016

Since vagrant version 1.8.3 mount_nfs on linux guests is not raising retryable exceptions when NFS Server is not ready, therefore nfs mount command is not retried.
Commit 837713c is joining commands which seems to break exception handling, I was able to mitigate this problem executing each command seperately:

https://gist.github.com/ol0lll/2822039f0492ee3ddddd45d3b9965ce7
in plugins/guests/linux/cap/mount_nfs.rb

@sethvargo
Copy link
Contributor

Hi @ol0lll

Thank you for opening an issue. The reason we moved the mount to a single command is that it's significantly faster. Is there an easy way to force the mount to fail so I can test the retry logic?

@ol0lll
Copy link
Author

ol0lll commented Jun 15, 2016

Hi @sethvargo,

thank you for your quick reply. I am not exactly sure why nfs is slow in my setup, for testing I think you could just leave the mount_options array empty, which causes the mount command to fail on the guest.

config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: []

This raises the exception when commands run separately.
https://gist.github.com/ol0lll/c818e00213a3ce0cd600a25ed2f741d2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants