Fixes mount issues with NFS 09/65709/2
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 18:44:54 +0000 (13:44 -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>
build/csit-environment.yaml
build/csit-queens-environment.yaml
build/csit-rocky-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:
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: