From 2829b0c1c044543031ff334c0162f9cf56696967 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 11 Apr 2023 13:29:15 +0200 Subject: [PATCH] ceph-volume/tests: fix an issue with rpm 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 (cherry picked from commit 05aa334b96ed8a8c8497047bc26da64ee3a3d1fa) --- .../ceph_volume/tests/functional/playbooks/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml b/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml index e45a41d22eeee..0ac200c6bc0d5 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml +++ b/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml @@ -87,6 +87,12 @@ 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 -- 2.39.5