From: Sébastien Han Date: Tue, 5 Jun 2018 03:56:55 +0000 (+0800) Subject: test: do not always copy admin key X-Git-Tag: v3.1.0rc7~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5199300a6b69b830151b26356f521c2bc18f5f75;p=ceph-ansible.git test: do not always copy admin key The admin key must be copied on the osd nodes only when we test the shrink scenario. Shrink relies on ceph-disk commands that require the admin key on the node where it's being executed. Now we only copy the key when running on the shrink-osd scenario. Signed-off-by: Sébastien Han (cherry picked from commit 41b4632abca51b4f1ab052e8b47d0bebd2e838e8) Signed-off-by: Sébastien Han --- diff --git a/tests/functional/centos/7/cluster/group_vars/osds b/tests/functional/centos/7/cluster/group_vars/osds index 8f525f192..c3b18dbc0 100644 --- a/tests/functional/centos/7/cluster/group_vars/osds +++ b/tests/functional/centos/7/cluster/group_vars/osds @@ -1,5 +1,4 @@ --- -copy_admin_key: true os_tuning_params: - { name: fs.file-max, value: 26234859 } osd_scenario: non-collocated diff --git a/tox.ini b/tox.ini index e482cde72..3538efad6 100644 --- a/tox.ini +++ b/tox.ini @@ -145,6 +145,8 @@ setenv= shrink_mon_container: PLAYBOOK = site-docker.yml.sample shrink_mon_container: MON_TO_KILL = mon2 shrink_osd_container: PLAYBOOK = site-docker.yml.sample + shrink_osd_container: COPY_ADMIN_KEY = True + shrink_osd: COPY_ADMIN_KEY = True rhcs: CEPH_STABLE_RELEASE = luminous jewel: CEPH_STABLE_RELEASE = jewel @@ -222,6 +224,7 @@ commands= ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \ ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \ ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \ + copy_admin_key={env:COPY_ADMIN_KEY:False} \ " # wait 2 minutes for services to be ready @@ -247,7 +250,8 @@ commands= ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \ ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \ ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \ - ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} " \ + ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \ + copy_admin_key={env:COPY_ADMIN_KEY:False} " \ --extra-vars @ceph-override.json purge_cluster_non_container: {[purge]commands}