Fixes mount issues with NFS 17/65717/1
authorTim Rozet <trozet@redhat.com>
Mon, 10 Dec 2018 16:31:33 +0000 (11:31 -0500)
committerTim Rozet <trozet@redhat.com>
Mon, 10 Dec 2018 22:22:17 +0000 (17:22 -0500)
There were issues related to moving to NFS for CSIT that included random
failures when mounting the NFS. Big thanks to radez for figuring out
that the issue was because the mounts were sharing the same root dir,
and thus the same context. Using nosharecache fixes the problem.

JIRA: APEX-654

Change-Id: Ic52d91a4abfe3db6289ce6a880c1f85ce5af7d0e
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit 0e0a291295998e77820e4b55f380d845fb509842)

build/csit-environment.yaml
build/csit-queens-environment.yaml

index 74e0c1f..9572504 100644 (file)
@@ -20,10 +20,11 @@ parameter_defaults:
         dport: 2049
   GlanceNfsEnabled: true
   GlanceNfsShare: overcloud-controller-0.opnfvlf.org:/root/nfs/glance
-  GlanceNfsOptions: 'rw,sync,context=system_u:object_r:glance_var_lib_t:s0'
+  GlanceNfsOptions:
+    'rw,sync,nosharecache,context=system_u:object_r:glance_var_lib_t:s0'
   NovaNfsEnabled: true
   NovaNfsShare: overcloud-controller-0.opnfvlf.org:/root/nfs/nova
-  NovaNfsOptions: 'rw,sync,context=system_u:object_r:nfs_t:s0'
+  NovaNfsOptions: 'rw,sync,nosharecache,context=system_u:object_r:nfs_t:s0'
   DockerPuppetProcessCount: 10
   NeutronNetworkVLANRanges: 'datacentre:500:525'
   SshServerOptions:
index 2ecb1fc..2cf3f02 100644 (file)
@@ -20,10 +20,11 @@ parameter_defaults:
         dport: 2049
   GlanceNfsEnabled: true
   GlanceNfsShare: overcloud-controller-0.opnfvlf.org:/root/nfs/glance
-  GlanceNfsOptions: 'rw,sync,context=system_u:object_r:glance_var_lib_t:s0'
+  GlanceNfsOptions:
+    'rw,sync,nosharecache,context=system_u:object_r:glance_var_lib_t:s0'
   NovaNfsEnabled: true
   NovaNfsShare: overcloud-controller-0.opnfvlf.org:/root/nfs/nova
-  NovaNfsOptions: 'rw,sync,context=system_u:object_r:nfs_t:s0'
+  NovaNfsOptions: 'rw,sync,nosharecache,context=system_u:object_r:nfs_t:s0'
   DockerPuppetProcessCount: 10
   NeutronNetworkVLANRanges: 'datacentre:500:525'
   SshServerOptions: