]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: assume msgrV1 for all branches containing mimic 32796/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 13 Nov 2019 09:13:01 +0000 (10:13 +0100)
committerJan Fajerski <jfajerski@suse.com>
Thu, 23 Jan 2020 07:19:23 +0000 (08:19 +0100)
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)

src/ceph-volume/ceph_volume/tests/functional/tests/conftest.py

index 05c9aa521bc1baa96a086019ee2a7061ab93abf2..17cc996edb9f38fe3d04514af0504741960dfb01 100644 (file)
@@ -19,7 +19,7 @@ def node(host, request):
     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