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>
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