]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
docker-compose: Allow different custom config
authorZack Cerza <zack@redhat.com>
Fri, 25 Mar 2022 21:41:33 +0000 (15:41 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 28 Mar 2022 21:31:40 +0000 (15:31 -0600)
When using "real" testnodes, we should not use the custom config we've
been using for containerized nodes. When using "real" testnodes, default
 to not using one, but allow specifying a path in $CUSTOM_CONF.

Signed-off-by: Zack Cerza <zack@redhat.com>
docs/docker-compose/containerized_node.yaml [new file with mode: 0644]
docs/docker-compose/custom_conf.yaml [deleted file]
docs/docker-compose/start.sh
docs/docker-compose/teuthology.sh

diff --git a/docs/docker-compose/containerized_node.yaml b/docs/docker-compose/containerized_node.yaml
new file mode 100644 (file)
index 0000000..0230488
--- /dev/null
@@ -0,0 +1,8 @@
+overrides:
+  ansible.cephlab:
+    skip_tags: "timezone,nagios,monitoring-scripts,ssh,hostname,pubkeys,zap,sudoers,kerberos,selinux,lvm,ntp-client,resolvconf,packages,cpan,nfs"
+    vars:
+      containerized_node: true
+      ansible_user: root
+      cm_user: root
+      start_rpcbind: false
diff --git a/docs/docker-compose/custom_conf.yaml b/docs/docker-compose/custom_conf.yaml
deleted file mode 100644 (file)
index 0230488..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-overrides:
-  ansible.cephlab:
-    skip_tags: "timezone,nagios,monitoring-scripts,ssh,hostname,pubkeys,zap,sudoers,kerberos,selinux,lvm,ntp-client,resolvconf,packages,cpan,nfs"
-    vars:
-      containerized_node: true
-      ansible_user: root
-      cm_user: root
-      start_rpcbind: false
index 7917e00250d8ebf41bb733aff48c6750fc1d66cd..3d812c6a90d42513677aacc8ff72952a7d3c3b03 100755 (executable)
@@ -29,7 +29,10 @@ mkdir -p teuthology/ansible_inventory/hosts teuthology/ansible_inventory/secrets
 cp .teuthology.yaml teuthology/
 cp Dockerfile teuthology/
 cp teuthology.sh teuthology/
-cp custom_conf.yaml teuthology/
+cp containerized_node.yaml teuthology/
+if [ -n "$CUSTOM_CONF" ]; then
+    cp "$CUSTOM_CONF" teuthology/
+fi
 
 
 
index 7fdfd221f47094f7cf2800996de939f46fc1bc1c..edc377b54eb6f708406bf4056efdae8ce2661286 100755 (executable)
@@ -7,8 +7,11 @@ source /teuthology/virtualenv/bin/activate
 set -x
 if [ -n "$TESTNODES" ]; then
     for node in $(echo $TESTNODES | tr , ' '); do
-        teuthology-update-inventory $node
+        teuthology-update-inventory -m $MACHINE_TYPE $node
     done
+    CUSTOM_CONF=${CUSTOM_CONF:-}
+else
+    CUSTOM_CONF=/teuthology/containerized_node.yaml
 fi
 export MACHINE_TYPE=${MACHINE_TYPE:-testnode}
 teuthology-suite -v \
@@ -26,7 +29,7 @@ teuthology-suite -v \
     -p 75 \
     --seed 349 \
     --force-priority \
-    /teuthology/custom_conf.yaml
+    $CUSTOM_CONF
 teuthology-dispatcher -v \
     --log-dir /teuthology/log \
     --tube $MACHINE_TYPE \