-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.14.0, 4.15.0
-
No
-
Hypershift Sprint 242, Hypershift Sprint 243, Hypershift Sprint 244, Hypershift Sprint 245, Hypershift Sprint 246, Hypershift Sprint 247
-
6
-
False
-
-
-
Bug Fix
-
Done
Description of problem:
When deploying a dual stack HostedCluster the user can define networks like this: networking: clusterNetwork: - cidr: fd01::/48 hostPrefix: 64 - cidr: 10.132.0.0/14 hostPrefix: 23 networkType: OVNKubernetes serviceNetwork: - cidr: fd02::/112 - cidr: 172.31.0.0/16 This will led to missconfiguration on the hosted cluster where services will have its ClusterIP set to IPv6 family (pod network will still default to IPv4 no matter what the order was). When deployin a dualstack cluster with the openshift-install binary there is a validation in place that will prevent users from configuring default IPv6 networks when deploying dual-stack clusters: ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: [networking.serviceNetwork: Invalid value: "fd02::/112, 172.30.0.0/16": IPv4 addresses must be listed before IPv6 addresses, networking.clusterNetwork: Invalid value: "fd01::/48, 10.132.0.0/14": IPv4 addresses must be listed before IPv6 addresses] ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: networking.clusterNetwork: Invalid value: "fd01::/48, 10.132.0.0/14": IPv4 addresses must be listed before IPv6 addresses HyperShift should detect this and either block the cluster creation or swap the order so the cluster gets created with default IPv4 networks.
Version-Release number of selected component (if applicable):
latest
How reproducible:
Always
Steps to Reproduce:
1. Deploy a HC with the networking settings specified and using the image with dual stack patches included quay.io/jparrill/hypershift:OCPBUGS-15331-mix-413v12
Actual results:
Cluster gets deployed with default IPv6 family for services network.
Expected results:
Cluster creation gets blocked OR cluster gets deployed with default IPv4 family for services network.
Additional info:
- blocks
-
OCPBUGS-20180 Dual-Stack Hosted Cluster: IPv6 should not be the default pod/service network IPFamily
- Closed
- is blocked by
-
ACM-13249 Ironic agent inspection fails
- Closed
- is cloned by
-
OCPBUGS-20180 Dual-Stack Hosted Cluster: IPv6 should not be the default pod/service network IPFamily
- Closed
- links to
-
RHEA-2023:7198 rpm
- mentioned on
(1 links to, 1 mentioned on)