From bc0db3d3576d9f2907a954b34e99e93eb93fabb9 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Wed, 17 Oct 2018 17:10:50 +0200 Subject: 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) --- deployment/heat/onap-oom/k8s_vm_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment') 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 -- cgit 1.2.3-korg