Skip to content

Commit

Permalink
external: enable the use of only v2 mon port
Browse files Browse the repository at this point in the history
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: #13827

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 117bc76)
  • Loading branch information
parth-gr authored and mergify[bot] committed Mar 4, 2024
1 parent 9801721 commit 1efd789
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions deploy/examples/create-external-cluster-resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <IP>:3300),
# raise an exception to make user aware that
# they have to enable 'v1' (ie; with <IP>: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:
Expand Down

0 comments on commit 1efd789

Please sign in to comment.