Bug 2103144
Summary: | [IPv6] apiVIP and ingressVIP non-equality validation doesn't account for synonyms | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Pierre Prinetti <pprinett> |
Component: | Installer | Assignee: | Pierre Prinetti <pprinett> |
Installer sub component: | OpenShift on OpenStack | QA Contact: | Itay Matza <imatza> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | bscott, pprinett |
Version: | 4.11 | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | 4.12.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
* Previously, the installation program would incorrectly allow the `apiVIP` and `ingressVIP` parameters to use the same IPv6 address if they represented the address differently, such as listing the address in an abbreviated format. In this update, the installer validates these two parameters correctly regardless of their formatting, requiring separate IP addresses for each parameter. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2103144[*BZ#2103144*])
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-01-17 19:51:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pierre Prinetti
2022-07-01 14:22:05 UTC
Verified with openshift-install 4.12.0-0.nightly-2022-08-10-034842 - 1. Set equivalent representations of the same ipv6 address, and the validation raises an appropriate error: 1.1. ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb0::fc0:0:0:abc" $ cp install-config.yaml install-config.yaml.bck $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: platform.openstack.ingressVIP: Invalid value: "2001:cb0::fc0:0:0:abc": ingressVIP can not be the same as apiVIP ``` 1.2. ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb0:0:0:fc0::abc" $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: platform.openstack.ingressVIP: Invalid value: "2001:cb0:0:0:fc0::abc": ingressVIP can not be the same as apiVIP ``` 1.3. ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb0:0:0:0fc0::abc" $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: platform.openstack.ingressVIP: Invalid value: "2001:cb0:0:0:0fc0::abc": ingressVIP can not be the same as apiVIP ``` 1.4. ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:cb0::fc0:0:0:abc" ingressVIP: "2001:cb0:0:0:0fc0::abc" $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: platform.openstack.ingressVIP: Invalid value: "2001:cb0:0:0:0fc0::abc": ingressVIP can not be the same as apiVIP ``` 2. Set an invalid IPv6 address, and a validation raises an appropriate error: ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb0::fc0::abc" $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: platform.openstack.ingressVIP: Invalid value: "2001:cb0::fc0::abc": "2001:cb0::fc0::abc" is not a valid IP ``` 3. Set an IP that is not in the machineNetwork, and a validation raises an appropriate error: ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb::fc:0:0:abc" $ openshift-install create manifests ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: platform.openstack.ingressVIP: Invalid value: "2001:cb::fc:0:0:abc": IP is not in the machineNetwork ``` 4. Set different VIPs and the Manifests created: ``` $ grep -A 1 "machineNetwork" install-config.yaml && grep "VIP" install-config.yaml machineNetwork: - cidr: "2001:cb0::/64" apiVIP: "2001:0cb0:0000:0000:0fc0:0000:0000:0abc" ingressVIP: "2001:cb0::fc:0:0:abc" $ openshift-install create manifests INFO Credentials loaded from file "/home/stack/clouds.yaml" INFO Consuming Install Config from target directory INFO Manifests created in: manifests and openshift ``` Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:7399 |