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
Gateway not able to parse ipv6 addresses #5951
Comments
I can confirm this - we assume in some parts that we will use ipv4 addresses. This is an implicit assumption, where we expect addresses to be defined as |
Thanks for the prompt replies here and on the slack channel. @npepinpe |
Prioritized as low as our current focus is increasing stability for Camunda Cloud, which doesn't use ipv6 - however we'd be happy to accept a PR here, and I hope we eventually support ipv6. |
@npepinpe Hi! I would like to take this one :) |
Go for it! I only had a brief look, and the problem seems mostly that we sometimes parse addresses by doing |
Hey @npepinpe! I have a question about this: since this is a bug should I backport this to previous versions? I will create a backport PRs to be sure. |
6792: fix(gateway, broker, clients/java): allow to use IPv6 addresses in a cluster r=npepinpe a=aivinog1 ## Description This is the backported #6484 to 0.26 ## Related issues <!-- Which issues are closed by this PR or are related --> closes #5951 <!-- Cut-off marker _All lines under and including the cut-off marker will be removed from the merge commit message_ ## Definition of Ready Please check the items that apply, before requesting a review. You can find more details about these items in our wiki page about [Pull Requests and Code Reviews](https://github.com/camunda-cloud/zeebe/wiki/Pull-Requests-and-Code-Reviews). * [ ] I've reviewed my own code * [ ] I've written a clear changelist description * [ ] I've narrowly scoped my changes * [ ] I've separated structural from behavioural changes --> ## Definition of Done <!-- Please check the items that apply, before merging or (if possible) before requesting a review. --> _Not all items need to be done depending on the issue and the pull request._ Code changes: * [X] The changes are backwards compatibility with previous versions * [X] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually. Testing: * [X] There are unit/integration tests that verify all acceptance criterias of the issue * [X] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [X] The change has been verified by a QA run * [ ] The impact of the changes is verified by a benchmark Documentation: * [X] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com>
6792: fix(gateway, broker, clients/java): allow to use IPv6 addresses in a cluster r=npepinpe a=aivinog1 ## Description This is the backported #6484 to 0.26 ## Related issues <!-- Which issues are closed by this PR or are related --> closes #5951 <!-- Cut-off marker _All lines under and including the cut-off marker will be removed from the merge commit message_ ## Definition of Ready Please check the items that apply, before requesting a review. You can find more details about these items in our wiki page about [Pull Requests and Code Reviews](https://github.com/camunda-cloud/zeebe/wiki/Pull-Requests-and-Code-Reviews). * [ ] I've reviewed my own code * [ ] I've written a clear changelist description * [ ] I've narrowly scoped my changes * [ ] I've separated structural from behavioural changes --> ## Definition of Done <!-- Please check the items that apply, before merging or (if possible) before requesting a review. --> _Not all items need to be done depending on the issue and the pull request._ Code changes: * [X] The changes are backwards compatibility with previous versions * [X] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually. Testing: * [X] There are unit/integration tests that verify all acceptance criterias of the issue * [X] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [X] The change has been verified by a QA run * [ ] The impact of the changes is verified by a benchmark Documentation: * [X] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com>
6791: fix(gateway, broker, clients/java): allow to use IPv6 addresses in a cluster r=npepinpe a=aivinog1 ## Description This is the backported #6484 to 0.25 ## Related issues <!-- Which issues are closed by this PR or are related --> closes #5951 <!-- Cut-off marker _All lines under and including the cut-off marker will be removed from the merge commit message_ ## Definition of Ready Please check the items that apply, before requesting a review. You can find more details about these items in our wiki page about [Pull Requests and Code Reviews](https://github.com/camunda-cloud/zeebe/wiki/Pull-Requests-and-Code-Reviews). * [ ] I've reviewed my own code * [ ] I've written a clear changelist description * [ ] I've narrowly scoped my changes * [ ] I've separated structural from behavioural changes --> ## Definition of Done <!-- Please check the items that apply, before merging or (if possible) before requesting a review. --> _Not all items need to be done depending on the issue and the pull request._ Code changes: * [X] The changes are backwards compatibility with previous versions * [X] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually. Testing: * [X] There are unit/integration tests that verify all acceptance criterias of the issue * [X] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [X] The change has been verified by a QA run * [ ] The impact of the changes is verified by a benchmark Documentation: * [X] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com> Co-authored-by: Nicolas Pépin-Perreault <nicolas.pepin-perreault@camunda.com>
6792: fix(gateway, broker, clients/java): allow to use IPv6 addresses in a cluster r=npepinpe a=aivinog1 ## Description This is the backported #6484 to 0.26 ## Related issues <!-- Which issues are closed by this PR or are related --> closes #5951 <!-- Cut-off marker _All lines under and including the cut-off marker will be removed from the merge commit message_ ## Definition of Ready Please check the items that apply, before requesting a review. You can find more details about these items in our wiki page about [Pull Requests and Code Reviews](https://github.com/camunda-cloud/zeebe/wiki/Pull-Requests-and-Code-Reviews). * [ ] I've reviewed my own code * [ ] I've written a clear changelist description * [ ] I've narrowly scoped my changes * [ ] I've separated structural from behavioural changes --> ## Definition of Done <!-- Please check the items that apply, before merging or (if possible) before requesting a review. --> _Not all items need to be done depending on the issue and the pull request._ Code changes: * [X] The changes are backwards compatibility with previous versions * [X] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually. Testing: * [X] There are unit/integration tests that verify all acceptance criterias of the issue * [X] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [X] The change has been verified by a QA run * [ ] The impact of the changes is verified by a benchmark Documentation: * [X] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com>
Describe the bug
I am trying to get a 1 gateway & 3 broker setup done on an env with ipv6.
I am getting this in each broker, so I know they are starting correctly.
however when I try to exec inside the broker and try "zbctl status" or "zbctl status --insecure" I keep getting this error
If I try to specify the pod address...
My guess is that the brokers are not able to differentiate between a ipv4 and ipv6 address.
To Reproduce
1 gateway with 3 clusters with the below settings -
for broker - > image version is 0.25.1
env vars are ->
ZEEBE_BROKER_CLUSTER_NODEID: '1' #different 0,1,2 for each of the three brokers.
ZEEBE_BROKER_CLUSTER_PARTITIONSCOUNT: '3'
ZEEBE_BROKER_CLUSTER_REPLICATIONFACTOR: '3'
ZEEBE_BROKER_CLUSTER_CLUSTERSIZE: '3'
ZEEBE_BROKER_CLUSTER_INITIALCONTACTPOINTS: '{{APP_NAME}}-broker1-cl-0:26502,{{APP_NAME}}-broker2-cl-0:26502,{{APP_NAME}}-broker3-cl-0:26502'
ZEEBE_BROKER_CLUSTER_CLUSTERNAME: 'zeebe-cluster'
ZEEBE_BROKER_NETWORK_COMMANDAPI_PORT: '26501'
ZEEBE_BROKER_NETWORK_INTERNALAPI_PORT: '26502'
ZEEBE_BROKER_NETWORK_MONITOIRNGAPI_PORT: '9600'
for gateway -> image version is 0.25.1
env vars are ->
ZEEBE_STANDALONE_GATEWAY: 'true'
ZEEBE_GATEWAY_NETWORK_HOST: '0.0.0.0'
ZEEBE_GATEWAY_NETWORK_PORT: '26500'
ZEEBE_GATEWAY_CLUSTER_CONTACTPOINT: '{{APP_NAME}}-broker1-cl-0:26502'
ZEEBE_GATEWAY_CLUSTER_CLUSTERNAME: 'zeebe-cluster'
ZEEBE_GATEWAY_CLUSTER_MEMBERID: '3'
ZEEBE_GATEWAY_CLUSTER_HOST: '0.0.0.0'
ZEEBE_GATEWAY_CLUSTER_PORT: '26502'
Expected behavior
Gateway should be able to connect to the brokers and I should be able to use zbctl status to see the brokers,replications,partitions.
Log/Stacktrace
This error comes up inside the gateway
My pods are
Environment:
The text was updated successfully, but these errors were encountered: