Do not use bindmounts for nfs tests 54/89254/1
authorMichal Zegan <m.zegan@samsung.com>
Tue, 4 Jun 2019 13:28:08 +0000 (15:28 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Tue, 4 Jun 2019 13:34:02 +0000 (15:34 +0200)
This commit removes bindmounting
of host directories to containers in play-resources tests.
It seems that it is unneeded, and it is enough to just create anonymous volumes
instead of cluttering host filesystem.
This is one part of a preparation for removing the cleanup-directories
role that won't be needed anymore.
Note: similar changes were made to the nfs
role tests, for the same reasons, but
cleanup-directories is not used there

Change-Id: Ib33543427d72b4bc7ede532e5eb9a5023931f1fe
Issue-ID: OOM-1902
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/roles/nfs/molecule/default/molecule.yml
ansible/test/play-resources/molecule/nfs/molecule.yml

index 7bacf3c..a8ca6a3 100644 (file)
@@ -19,7 +19,7 @@ platforms:
       - name: nfs-net
     volumes:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
-      - ${HOME}/data:/dockerdata-nfs:rw
+      - /dockerdata-nfs
 
   - name: kubernetes-node-2
     image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
index ffaabb0..9cff6b8 100644 (file)
@@ -13,7 +13,7 @@ platforms:
     override_command: false
     volumes:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
-      - ${HOME}/data:/data:rw  # mount fs from host to get nfs exportfs task working
+      - /data
     groups:
       - resources
     networks: