Skip to content

Commit 0b89eb0

Browse files
committed
pkg/types/valication: explain overlapping internal subnets better
Let users know what to do when they get an overlapping subnet error. https://issues.redhat.com/browse/OCPBUGS-61167
1 parent d7dc751 commit 0b89eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/types/validation/installconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func validateNetworkNotOverlapDefaultOVNSubnets(n *types.Networking, network *ne
589589
subnetsCheck := func(joinSubnet, transitSubnet, masqueradeSubnet *net.IPNet) {
590590
// Join subnet
591591
if ovnsubnet, configured := getOVNSubnet(joinSubnet); !configured && validate.DoCIDRsOverlap(network, ovnsubnet) {
592-
allErrs = append(allErrs, field.Invalid(fldPath, network.String(), fmt.Sprintf("must not overlap with OVNKubernetes default internal subnet %s", ovnsubnet.String())))
592+
allErrs = append(allErrs, field.Invalid(fldPath, network.String(), fmt.Sprintf("must not overlap with OVNKubernetes default internal subnet %s: please run 'openshift-install explain installconfig.networking.ovnKubernetesConfig.ipv4' for further documentation", ovnsubnet.String())))
593593
}
594594

595595
// Transit subnet

0 commit comments

Comments
 (0)