With nautilus and newer OSDs listen on v1 ports and v2 ports. Assume
that if mimic (or luminous) occur in the branch name, the OSDs are
running msgrv1 only.
Fixes: https://tracker.ceph.com/issues/42791
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit
b8754919df61b118200e210e0bfc8d6df0261dfd)
ceph_dev_branch = os.environ.get("CEPH_DEV_BRANCH", "master")
group_names = ansible_vars["group_names"]
num_osd_ports = 4
- if ceph_dev_branch in ['luminous', 'mimic']:
+ if 'mimic' in ceph_dev_branch or 'luminous' in ceph_dev_branch:
num_osd_ports = 2
# capture the initial/default state