]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: force rpm pkg upgrade stable-6.0-ceph-volume-tests
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 22 Mar 2023 15:29:46 +0000 (16:29 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 11 Apr 2023 11:01:48 +0000 (13:01 +0200)
Due to a bug with the rpm version present in the current stream8 vagrant image,
we have to make sure it is first upgraded to the latest version.

(cherry picked from commit b87f214a96be5f834ba166014d54815d17ff6dd7)
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
tests/functional/lvm_setup.yml
tests/functional/setup.yml

index 94149d96fac518259afde13d6614d0daf54886e6..3808ce3f3638a064c3fab87bda7629cd80e8f104 100644 (file)
@@ -5,6 +5,21 @@
   tasks:
     - import_tasks: ../../raw_install_python.yml
 
+    - name: check if it is Atomic host
+      stat: path=/run/ostree-booted
+      register: stat_ostree
+      check_mode: no
+
+    - name: set fact for using Atomic host
+      set_fact:
+        is_atomic: '{{ stat_ostree.stat.exists }}'
+
+    - name: force rpm pkg upgrade
+      package:
+        name: rpm
+        state: latest
+      when: not is_atomic | bool
+
 - hosts: osds
   gather_facts: false
   become: yes
index f8e2047d488a6561247c8aaf72a771d13233fae6..180b7fb359c55c7c983ef5a72348babdf5e3405f 100644 (file)
       set_fact:
         is_atomic: '{{ stat_ostree.stat.exists }}'
 
+    - name: force rpm pkg upgrade
+      package:
+        name: rpm
+        state: latest
+      when: not is_atomic | bool
+
     - name: update the system
       command: dnf update -y
       changed_when: false