]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: upgrade/install ceph-test RPM first v3.0.30
authorKen Dreyer <kdreyer@redhat.com>
Thu, 5 Apr 2018 19:40:15 +0000 (13:40 -0600)
committerSébastien Han <seb@redhat.com>
Mon, 9 Apr 2018 18:20:23 +0000 (20:20 +0200)
Prior to this change, if a user had ceph-test-12.2.1 installed, and
upgraded to ceph v12.2.3 or newer, the RPM upgrade process would
fail.

The problem is that the ceph-test RPM did not depend on an exact version
of ceph-common until v12.2.3.

In Ceph v12.2.3, ceph-{osdomap,kvstore,monstore}-tool binaries moved
from ceph-test into ceph-base. When ceph-test is not yet up-to-date, Yum
encounters package conflicts between the older ceph-test and newer
ceph-base.

When all users have upgraded beyond Ceph < 12.2.3, this is no longer
relevant.

(cherry picked from commit 3752cc6f38dbf476845e975e6448225c0e103ad6)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/install_redhat_packages.yml

index beafd0d0a6d6217004ddd29a3660658cf3c3ae3d..7d0edb67c996839c0a11d3b91efbf33251d7526c 100644 (file)
   when:
     - ansible_distribution == 'CentOS'
 
+- name: install redhat ceph-test package
+  package:
+    name: ceph-test
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  when:
+    - ceph_test
+
 - name: install redhat ceph-common
   package:
     name: "ceph-common"
   when:
     - client_group_name in group_names
 
-- name: install redhat ceph-test package
-  package:
-    name: ceph-test
-    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-  when:
-    - ceph_test
-
 - name: install redhat ceph-radosgw package
   package:
     name: ceph-radosgw