forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hack nfs-server image to run it 'graceless'
The NFS grace period is set to 90 seconds and it stalls the clients trying to access the share right after the server start. This may affect the tests and lead to timeouts so disable the setting. Signed-off-by: Vasiliy Ulyanov <[email protected]>
- Loading branch information
1 parent
d1faa68
commit 0e76688
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
# The NFS grace period is set to 90 seconds and it stalls the clients | ||
# trying to access the share right after the server start. This may affect | ||
# the tests and lead to timeouts so disable the setting. | ||
sed -i"" \ | ||
-e "s#Grace_Period = 90#Graceless = true#g" \ | ||
/opt/start_nfs.sh | ||
|
||
exec /opt/start_nfs.sh |