Bug 2082671
| Summary: | [IPI baremetal] expanding cluster docs networkConfig BareMetalHost syntax is wrong | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Nikos Stamatelopoulos <nstamate> |
| Component: | Documentation | Assignee: | avbhatt |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Adina Wolff <awolff> |
| Severity: | high | Docs Contact: | Tomas 'Sheldon' Radej <tradej> |
| Priority: | unspecified | ||
| Version: | 4.10 | CC: | achernet, aos-bugs, eglottma, shardy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-14 15:24:37 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
Nikos Stamatelopoulos
2022-05-06 17:56:45 UTC
Hello again,
After internal communication I should add in this bug that the networkData is not the correct way to do this either.
The administrator should add the spec.preprovisioningNetworkDataName object and reference a secret that includes the network configuration in nmstate format like below:
~~~
apiVersion: v1
kind: Secret
metadata:
name: new-worker-network-config
type: Opaque
stringData:
nmstate: |
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.123.1
next-hop-interface: enp0s4
dns-resolver:
config:
server:
- 192.168.123.1
interfaces:
- name: enp0s4
state: up
ipv4:
address:
- ip: 192.168.123.11
prefix-length: 24
enabled: true
dhcp: false
---
apiVersion: v1
kind: Secret
metadata:
name: openshift-worker-bmc-secret
namespace: openshift-machine-api
type: Opaque
data:
username: <base64-formated-username>
password: <base64-formated-password>
---
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
name: new-openshift-worker
namespace: openshift-machine-api
spec:
online: true
bootMACAddress: <MAC-address>
rootDeviceHints:
deviceName: "/dev/sda"
bmc:
address: <bmc_address>
credentialsName: openshift-worker-bmc-secret
preprovisioningNetworkDataName:
new-worker-network-config
~~~
All this information is included in this KCS article i have created https://access.redhat.com/solutions/6957587 until the documentation is fixed.
Regarding the networkData object im still not sure what is the difference and in what cases it must be used instead. So if you have any insight on this please share.
Thank you.
Also note preprovisioningNetworkDataName is optional - in the default DHCP case no configuraiton is needed, which is not clear in the current docs where the BMH contains the (incorrect) networkConfig field Moving this back to 'assigned' since the PR hasn't been merged yet. Moving this back to ON_QA since the fix is implemented in the docs PR and it can't be merged without QE ack/approval/lgtm Moving this to POST after discussing it with @awolff Moving this to ON_QA based on the OpenShift Doc guidelines (https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#verification-of-your-content) Procedure tested successfully on 4.10 |