summaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sebastien.determe@intl.att.com>2018-10-17 17:10:50 +0200
committerDeterme, Sebastien (sd378r) <sebastien.determe@intl.att.com>2018-10-17 17:11:23 +0200
commitbc0db3d3576d9f2907a954b34e99e93eb93fabb9 (patch)
tree9f3f876f0d8427bf27c5bd8ecb7a394be9bf23c2 /deployment/heat/onap-oom/k8s_vm_entrypoint.sh
parent8d08fab40e50db58fc6ab75dfa279c058a2eb11b (diff)
Fix NFS behavior
The current mount parameters are dangerous because the system can mount a local storage instead of NFS at VM startup. New params here avoid that. A software error is returned instead to anyone + lazy loading of the folder. Issue-ID: CLAMP-174 Change-Id: Ie68827ac94046a611b54e3bf5afaed18bc12bc78 Signed-off-by: Determe, Sebastien (sd378r) <sebastien.determe@intl.att.com>
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_entrypoint.sh')
-rw-r--r--deployment/heat/onap-oom/k8s_vm_entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
index 52f120498..438529558 100644
--- a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
+++ b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
@@ -34,7 +34,7 @@ EOF
fi
mkdir -p /dockerdata-nfs
-echo "__rancher_private_ip_addr__:/dockerdata-nfs /dockerdata-nfs nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0" | tee -a /etc/fstab
+echo "__rancher_private_ip_addr__:/dockerdata-nfs /dockerdata-nfs nfs noauto,noatime,fg,retry=1,x-systemd.automount,_netdev,soft,nolock,intr,tcp,actimeo=1800 0 0" | tee -a /etc/fstab
# Fix virtual memory allocation for onap-log:elasticsearch:
echo "vm.max_map_count=262144" >> /etc/sysctl.conf