Bug 1813422
Summary: | vague error message when machineCIDR and provisioningNetworkCIDR values are the same in install-config.yaml | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Alexander Chuzhoy <sasha> | ||||
Component: | Installer | Assignee: | Stephen Benjamin <stbenjam> | ||||
Installer sub component: | OpenShift on Bare Metal IPI | QA Contact: | Amit Ugol <augol> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | medium | ||||||
Priority: | medium | CC: | rbartal, smiron | ||||
Version: | 4.4 | Keywords: | Triaged | ||||
Target Milestone: | --- | ||||||
Target Release: | 4.5.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Cause:
No explicit check for an overlap between machineCIDR and provisioningNetworkCIDR.
Consequence:
Unclear error message when the networks overlap.
Fix:
Introduce an explicit check for an overlap.
Result:
Users now get a clear error message about what went wrong.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-07-13 17:20:05 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: | |||||||
Attachments: |
|
Description
Alexander Chuzhoy
2020-03-13 18:46:26 UTC
Indeed, we should error on the provisioningNetworkCIDR field itself. Thanks for the report. The two networks indeed can't be the same or overlap at all. PR is against master, setting TR 4.5.0 and medium/medium. Verified. The Bug tested in OCP version 4.5 with ipv4 using 2 workers. Steps: 1.edit install-config.yaml file and set up: machineCIDR: 192.168.123.0/24 .... provisioningNetworkInterface: enp4s0 provisioningNetworkCIDR: 192.168.123.0/24 2. run command: cp install-config.yaml ~/ocp 3. run command: ./openshift-baremetal-install --dir ~/ocp create manifests Result: Received a message that indicate the overlap between provisioningNetworkCIDR and machineCIDR : FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: [platform.baremetal.provisioningNetworkCIDR: Invalid value: "192.168.123.0/24": cannot overlap with machine network: 192.168.123.0/24 overlaps with 192.168.123.0/24, platform.baremetal.provisioningHostIP: Invalid value: "192.168.123.3": the IP must not be in one of the machine networks, platform.baremetal.bootstrapHostIP: Invalid value: "192.168.123.2": the IP must not be in one of the machine networks] Note: there are messages that come up as a projection to the overlap, it may be best if the error stop when the overlap happened, and will not drag other errors. (Image attached to this message) Created attachment 1680803 [details]
Overlapping message between provisioningNetworkCIDR and machineCIDR
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, 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/RHBA-2020:2409 |