]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume/tests: fix an issue with rpm 51008/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 11 Apr 2023 11:29:15 +0000 (13:29 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 11 Apr 2023 11:29:15 +0000 (13:29 +0200)
Typical error seen in the CI:

```
error: /var/cache/dnf/baseos-00fe51d07def85f0/packages/kernel-core-4.18.0-483.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(459772) out of range
```

Upgrading `rpm` fixes this issue.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml

index e45a41d22eeee31454bb6dfdf136b4c3a050e13e..0ac200c6bc0d50475c82fa9d5e791b26f2de62b4 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