You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ipi-install-additional-install-config-parameters.adoc
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,4 +206,9 @@ The `hosts` parameter is a list of separate bare metal assets used to build the
206
206
|
207
207
| The MAC address of the NIC that the host uses for the `provisioning` network. Ironic retrieves the IP address using the `bootMACAddress` configuration setting. Then, it binds to the host.
208
208
209
+
210
+
| `networkConfig`
211
+
|
212
+
| Set this optional parameter to configure the network interface of a host. See "(Optional) Configuring host network interfaces in the `install-config.yaml` file" for additional details.
= (Optional) Configuring host network interfaces in the `install-config.yaml` file
7
+
8
+
During installation, you can set the `networkConfig` configuration setting in the `install-config.yaml` file to configure host network interfaces using NMState. To use the `networkConfig` configuration setting, you must provide an NMState YAML configuration. See link:https://nmstate.io/examples.html#interfaces-ethernet[NMState] for additional examples of the NMState syntax.
<1> Add NMState YAML syntax to configure host interfaces.
46
+
47
+
[TIP]
48
+
====
49
+
Consider saving the `networkConfig` YAML syntax to a file and testing it using the NMState command line interface before including it in the `install-config.yaml` file, because the installer will not check the NMState YAML syntax. Execute `nmstatectl gc <yaml-config>` to test the syntax. Errors in the YAML syntax might result in a failure to apply the network configuration. Additionally, maintaining the validated YAML syntax is useful when applying changes using Kubernetes NMState after deployment or when expanding the cluster.
50
+
====
51
+
52
+
The most common use case for this functionality is to specify a static IP address on the `baremetal` network, but you can also configure other networks such as a storage network. This functionality will also support other NMState features such as VLAN, VXLAN, bridges, bonds, routes, MTU, and DNS resolver settings.
53
+
54
+
[IMPORTANT]
55
+
====
56
+
Once deployed, you cannot modify the `networkConfig` configuration setting of `install-config.yaml` file to make changes to the host network interface. Use the Kubernetes NMState Operator to make changes to the host network interface after deployment.
Copy file name to clipboardExpand all lines: modules/ipi-install-network-requirements.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ For the `baremetal` network, a network administrator must reserve a number of IP
104
104
[IMPORTANT]
105
105
.Reserving IP addresses so they become static IP addresses
106
106
====
107
-
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To use static IP addresses in the {product-title} cluster, reserve the IP addresses with an infinite lease. During deployment, the installer will reconfigure the NICs from DHCP assigned addresses to static IP addresses. NICs with DHCP leases that are not infinite will remain configured to use DHCP.
107
+
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To configure static IP addresses with NMState, see "(Optional) Configuring host network interfaces in the `install-config.yaml` file" in the "Setting up the environment for an OpenShift installation" section.
Expanding the cluster requires a DHCP server. Each node must have a DHCP reservation.
11
10
12
-
ifeval::[{product-version}>4.6]
13
11
[IMPORTANT]
14
12
.Reserving IP addresses so they become static IP addresses
15
13
====
16
-
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To use static IP addresses in the {product-title} cluster, *reserve the IP addresses in the DHCP server with an infinite lease*. After the installer provisions the node successfully, the dispatcher script will check the node's network configuration. If the dispatcher script finds that the network configuration contains a DHCP infinite lease, it will recreate the connection as a static IP connection using the IP address from the DHCP infinite lease. NICs without DHCP infinite leases will remain unmodified.
14
+
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To configure static IP addresses with NMState, see "(Optional) Configuring host network interfaces in the `install-config.yaml` file" in the "Setting up the environment for an OpenShift installation" section for additional details.
17
15
====
18
-
endif::[]
16
+
19
17
20
18
Preparing the bare metal node requires executing the following procedure from the provisioner node.
21
19
22
20
.Procedure
23
21
24
22
. Get the `oc` binary, if needed. It should already exist on the provisioner node.
25
23
+
26
-
[source,bash]
24
+
[source,terminal]
27
25
----
28
26
[kni@provisioner ~]$ curl -s https://mirror.openshift.com/pub/openshift-v4/clients/ocp/$VERSION/openshift-client-linux-$VERSION.tar.gz | tar zxvf - oc
29
27
----
30
28
+
31
-
[source,bash]
29
+
[source,terminal]
32
30
----
33
31
[kni@provisioner ~]$ sudo cp oc /usr/local/bin
34
32
----
35
33
36
-
. Power off the bare metal node via the baseboard management controller and ensure it is off.
34
+
. Power off the bare metal node through the baseboard management controller and ensure it is off.
37
35
38
-
. Retrieve the user name and password of the bare metal node's baseboard management controller. Then, create `base64` strings from the user name and password. In the following example, the user name is `root` and the password is `calvin`.
36
+
. Retrieve the user name and password of the bare metal node's baseboard management controller. Then, create `base64` strings from the user name and password. In the following example, the user name is `root` and the password is `password`.
39
37
+
40
-
[source,bash]
38
+
[source,terminal]
41
39
----
42
40
[kni@provisioner ~]$ echo -ne "root" | base64
43
41
----
44
42
+
45
-
[source,bash]
43
+
[source,terminal]
46
44
----
47
-
[kni@provisioner ~]$ echo -ne "calvin" | base64
45
+
[kni@provisioner ~]$ echo -ne "password" | base64
48
46
----
49
47
50
48
. Create a configuration file for the bare metal node.
51
49
+
52
-
[source,bash]
50
+
[source,terminal]
53
51
----
54
52
[kni@provisioner ~]$ vim bmh.yaml
55
53
----
@@ -60,42 +58,63 @@ Preparing the bare metal node requires executing the following procedure from th
Replace `<num>` for the worker number of the bare metal node in the two `name` fields and the `credentialsName` field. Replace `<base64-of-uid>` with the `base64` string of the user name. Replace `<base64-of-pwd>` with the `base64` string of the password. Replace `<NIC1-mac-address>` with the MAC address of the bare metal node's first NIC.
82
-
+
83
-
See the BMC addressing section for additional BMC configuration options. Replace `<protocol>` with the BMC protocol, such as IPMI, RedFish, or others.
84
-
Replace `<bmc-ip>` with the IP address of the bare metal node's baseboard management controller.
<1> Replace `<num>` for the worker number of the bare metal node in the two `name` fields and the `credentialsName` field.
98
+
<2> Replace `<base64-of-uid>` with the `base64` string of the user name.
99
+
<3> Replace `<base64-of-pwd>` with the `base64` string of the password.
100
+
<4> Replace `<NIC1-mac-address>` with the MAC address of the bare metal node's first NIC. See the BMC addressing section for additional BMC configuration options. Replace `<protocol>` with the BMC protocol, such as IPMI, RedFish, or others.
101
+
<5> Replace `<bmc-ip>` with the IP address of the bare metal node's baseboard management controller.
102
+
<6> Optional. You can set the `networkConfig` configuration option to configure host network interfaces. See "(Optional) Configuring host network interfaces in the `install-config.yaml` file" in the "Setting up the environment for an OpenShift installation" section for configuration details.
85
103
+
86
104
[NOTE]
87
105
====
88
-
If the MAC address of an existing bare metal node matches the MAC address of a bare metal host that you are attempting to provision, then the Ironic installation will fail. If the host enrollment, inspection, cleaning, or other Ironic steps fail, the Bare Metal Operator retries the installation continuously. See xref:modules/ipi-install-diagnosing-duplicate-mac-address.adoc#ipi-install-diagnosing-duplicate-mac-address_{context}[Diagnosing a host duplicate MAC address] for more information.
106
+
If the MAC address of an existing bare metal node matches the MAC address of a bare metal host that you are attempting to provision, then the Ironic installation will fail. If the host enrollment, inspection, cleaning, or other Ironic steps fail, the Bare Metal Operator retries the installation continuously. See "Diagnosing a host duplicate MAC address" for more information.
0 commit comments