]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: install pyyaml on osd nodes
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 29 Jul 2020 16:23:06 +0000 (12:23 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 29 Jul 2020 16:49:15 +0000 (12:49 -0400)
Due to [1], ceph-volume has now a dependency on pyyaml but it's not
installed by default via the package dependency.
This patch only add the required package on non containerized
deployment and as temporary workaround for the CI.

[1] https://tracker.ceph.com/issues/46759

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
tests/functional/setup.yml

index 67bc40a779f7392e3dc33045fb6321fa30711d84..fd6fc6cc72c1089e2a48d88c3ad97c3c1fa15b05 100644 (file)
         size: +100%FREE
         resizefs: yes
       when: is_atomic | bool
+
+    # https://tracker.ceph.com/issues/46759
+    - name: install pyyaml for ceph-volume
+      package:
+        name: "{{ 'python3-pyyaml' if ansible_distribution_major_version | int == 8 else 'python36-PyYAML' }}"
+      register: result
+      until: result is succeeded
+      when:
+        - not is_atomic | bool
+        - ansible_distribution == 'CentOS'
+        - inventory_hostname in groups.get('osds', [])
+        - not containerized_deployment | default(false) | bool