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 <partharora1010@gmail.com>
This commit is contained in:
1 parent
33b603fa74
commit
117bc76f20
1 file changed
-8
@@ -699,14 +699,6 @@ class RadosJSON:
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user