Use default timeout and retransmission values for the NFS mount.#6019
Merged
Conversation
This also allows the mount command to apply NFS mount custom values set by ADMINS via '/etc/nfsmount.conf'.
Member
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2674 |
Contributor
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3406)
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When an NFS primary storage pool is created, Libvirt mounts the pool with the default NFS configurations (that can be customized by ADMINS via
/etc/nfsmount.conf)This would be a typical mounted NFS pool:
However, in case the pool is umounted (for whatever reason)
kvmheartbeat.shremounts withtimeo=133andretrans=10:This PR aims at removing the hard-coded values to make sure that
kvmheartbeat.sh"re-mounts" the partitions accordingly to the expected parameters.Note that if one wants to have a different timeout than the default of 600, it would be possible to achieve it by setting config:
/etc/nfsmount.confWith this PR, then it would work fine either with the Libvirt mount and
kvmheartbeat.sh"re-mount".Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
kvmheartbeat.shto mount it back