Bug 2006291
Summary: | bootstrapProvisioningIP set incorrectly when provisioningNetworkCIDR doesn't use the 0th address | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Derek Higgins <derekh> |
Component: | Installer | Assignee: | Derek Higgins <derekh> |
Installer sub component: | OpenShift on Bare Metal IPI | QA Contact: | Lubov <lshilin> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | low | CC: | rbartal |
Version: | 4.9 | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
The default ProvisioningIP differs if host bits are set in the provisioning Network CIDR
Consequence:
The ProvisioningIP may differ from what was expected and class with other IP addresses on the provisioning network
Fix:
Added validation to ensure that the provisioningNetworkCIDR doesn't have host bits set
Result:
If the provisioningNetworkCIDR is provided with host bits set the installer will now stop and report and error
e.g. 172.2.3.4/24 would raise a validation error, 172.2.3.0/24 is ok
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:12:09 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
Derek Higgins
2021-09-21 12:11:23 UTC
(In reply to Derek Higgins from comment #0) > This is because of a bug in apparentlymart/go-cidr , is it calculates the IP > address with a bitwise OR without masking. The bitwise OR works in go-cidr as it expects the net.IPNet passed into it to be from ParseCIDR, we use MustParseCIDR which returns a HostIP/MaskLen A change in this behaviour has already been submitted upstream https://github.com/apparentlymart/go-cidr/pull/15 (see ip = ip.Mask(mask) ) This hasn't been reviewed in some time, so in the meantime I've submitted a PR to validate the CIDR verified on 4.10.0-0.nightly-2021-10-31-210828 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.10.3 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:0056 |