-
Notifications
You must be signed in to change notification settings - Fork 202
Changes to enable testing with an IPv6 controlplane #902
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
Conversation
russellb
left a comment
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.
lgtm
So we can access it via ipv6
Instead of a regex which only accepts ipv4 addresses
Since the oc adm mirror command appears to reject target registries and pullspecs that contain ipv6 addresses[1] we can work around this by using a name instead [1] openshift/oc#239
This is required to access the local registry by name (and for the related SSL certs)
Default to the values from the installer for ipv4, but we can override like this for ipv6: export CLUSTER_SUBNET="fd01::/48" export CLUSTER_HOST_PREFIX="64" export SERVICE_SUBNET="fd02::/112" Co-Authored-By: Russell Bryant <[email protected]>
| # IPv6 network config validation | ||
| if [[ "${EXTERNAL_SUBNET}" =~ .*:.* ]]; then | ||
| if [[ "${NETWORK_TYPE}" != "OVNKubernetes" ]]; then | ||
| echo "NETWORK_TYPE must be OVNKubernetes when using IPv6" |
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.
Could we just set this to OVNKubernetes if we detect IPv6?
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 guess we could - @russellb do you think anyone is likely to test anything other than OVNKubernetes here?
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.
They shouldn't. I'm OK with just setting it instead of telling them to set it ...
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.
let's do this in a follow-up
|
Otherwise LGTM |
|
Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/1456/ |
Some fixes to allow testing with ipv6 enabled controlplane, the related config looks like:
Note this also requires a special release image and some image customizations atm while related OCP/RHCOS fixes land