From 1efd78968b8c7db92de1522f9793bf3ffaaa3f53 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Mon, 4 Mar 2024 17:08:41 +0530 Subject: [PATCH] external: enable the use of only v2 mon port currently the script requires to have both v2 and v1 port to enable v2 port, but that is not the necessary condition, so removing the chek, and enabling it only v2 is present to successfully configure with v2 only part-of: https://github.com/rook/rook/issues/13827 Signed-off-by: parth-gr (cherry picked from commit 117bc76f20c6e2a7610bf57572bca367a81639b6) --- deploy/examples/create-external-cluster-resources.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 5ffef28d3183..61039c9eb1bd 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -699,14 +699,6 @@ def get_ceph_external_mon_data(self): q_leader_details = q_leader_matching_list[0] # get the address vector of the quorum-leader q_leader_addrvec = q_leader_details.get("public_addrs", {}).get("addrvec", []) - # if the quorum-leader has only one address in the address-vector - # and it is of type 'v2' (ie; with :3300), - # raise an exception to make user aware that - # they have to enable 'v1' (ie; with :6789) type as well - if len(q_leader_addrvec) == 1 and q_leader_addrvec[0]["type"] == "v2": - raise ExecutionFailureException( - "Only 'v2' address type is enabled, user should also enable 'v1' type as well" - ) ip_addr = str(q_leader_details["public_addr"].split("/")[0]) if self._arg_parser.v2_port_enable: