Skip to content

Commit da3ca6e

Browse files
committed
node: don't force nfs version 3 - use OS default
This change uses the default NFS version on the given AMI. On Ubuntu 11.10+ this defaults to NFSv4. Versions prior set the default to NFSv3.
1 parent 5530d37 commit da3ca6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎starcluster/node.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,10 @@ def mount_nfs_shares(self, server_node, remote_paths):
747747
remote_paths))
748748
self.ssh.remove_lines_from_file('/etc/fstab', remote_paths_regex)
749749
fstab = self.ssh.remote_file('/etc/fstab', 'a')
750+
mount_opts = 'rw,exec,noauto'
750751
for path in remote_paths:
751-
fstab.write('%s:%s %s nfs vers=3,rw,exec,noauto 0 0\n' %
752-
(server_node.alias, path, path))
752+
fstab.write('%s:%s %s nfs %s 0 0\n' %
753+
(server_node.alias, path, path, mount_opts))
753754
fstab.close()
754755
for path in remote_paths:
755756
if not self.ssh.path_exists(path):

0 commit comments

Comments
 (0)