New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external: enable the use of only v2 mon port #13856
Conversation
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: rook#13827 Signed-off-by: parth-gr <partharora1010@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure v2 port doesnt' require v1 port but is there any doc or something to confirm this?
@subhamkrai I am not sure if this is what you're looking for but this section suggests that it should be possible. With encryption or compression enabled, it is actually a requirement for external clusters to work with v2 only. |
@subhamkrai but i think thats a nice point, and i can update that with a new flag if someone wants to use the encryption and can also document that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to remove this requirement, no need for the v1 port to be enabled.
external: enable the use of only v2 mon port (backport #13856)
The script isn't failing anymore, however, I am still getting an error/warning:
After a lot of digging, it seems to me like this check does not make sense, because it assumes that a MON with only a single entry in the |
But it make sense if we have both the entries |
True! I correct myself: The mentioned check doesn't make sense in case there is only a v2 port. However, that is one of the possible cases that need to be handeled here. The assumption behind this conditional (if I understand the code correctly) is "if there is only one port, then it's v1" but that is not always true. |
Agreed, the v2 port could be the only one specified. @parth-gr Could you fix that check so that it doesn't require two endpoints in the list? The v2 port might be the only port. |
Sure it make sense added a PR #13982 |
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
Checklist: