Skip to content

Commit c70bb38

Browse files
authored
Merge pull request #42690 from johnwilkins/TELCODOCS-243-QE
TELCODOCS-243: D/S Docs & RN: METAL-6 (MPHARDWARE-4/KNIDEPLOY-2108) BIOS Settings Configuration (set values)
2 parents 966fec4 + c45320d commit c70bb38

9 files changed

+94
-41
lines changed

modules/bmo-about-the-firmwareschema-resource.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
[id="about-the-firmwareschema-resource_{context}"]
77
= About the FirmwareSchema resource
88

9-
BIOS settings vary among hardware vendors and host models. A `FirmwareSchema` resource is a read-only resource that contains the types and limits for each BIOS setting on each host model. The data comes directly from the BMC through Ironic. The `FirmwareSchema` prevents you from sending invalid values to a host when specifying values in the `spec` field of the `HostFirmwareSettings` resource. The `FirmwareSchema` resource has a unique identifier derived from its settings and limits. Identical host models use the same `FirmwareSchema` identifier. It is likely that multiple instances of `HostFirmwareSettings` use the same `FirmwareSchema`.
10-
9+
BIOS settings vary among hardware vendors and host models. A `FirmwareSchema` resource is a read-only resource that contains the types and limits for each BIOS setting on each host model. The data comes directly from the BMC through Ironic. The `FirmwareSchema` enables you to identify valid values you can specify in the `spec` field of the `HostFirmwareSettings` resource. The `FirmwareSchema` resource has a unique identifier derived from its settings and limits. Identical host models use the same `FirmwareSchema` identifier. It is likely that multiple instances of `HostFirmwareSettings` use the same `FirmwareSchema`.
1110

1211
.FirmwareSchema specification
1312
[options="header"]

modules/bmo-about-the-hostfirmwaresettings-resource.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `HostFirmwareSettings` resource contains two sections:
1515

1616
== The `HostFirmwareSettings` spec
1717

18-
The `spec` section of the `HostFirmwareSettings` resource defines the desired state of the host's BIOS, and it is empty by default. Ironic uses the settings in the `spec.settings` section to update the baseboard management controller (BMC) when the host is in the `Preparing` state. The `spec.settings` section uses the `FirmwareSchema` resource schema to ensure that you do not send invalid name/value pairs to hosts. See "About the FirmwareSchema resource" for additional details.
18+
The `spec` section of the `HostFirmwareSettings` resource defines the desired state of the host's BIOS, and it is empty by default. Ironic uses the settings in the `spec.settings` section to update the baseboard management controller (BMC) when the host is in the `Preparing` state. Use the `FirmwareSchema` resource to ensure that you do not send invalid name/value pairs to hosts. See "About the FirmwareSchema resource" for additional details.
1919

2020
.Example
2121
[source,terminal]

modules/bmo-editing-the-hostfirmwaresettings-resource.adoc

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88

99
You can edit the `HostFirmwareSettings` of provisioned hosts.
1010

11+
[IMPORTANT]
12+
====
13+
You can only edit hosts in the `provisioned` state. You cannot edit values for hosts in the `externally provisioned` state. You cannot set read-only values.
14+
====
15+
1116
.Procedure
1217

13-
. Get the list of hosts:
18+
. Get the list of `HostFirmwareSettings` resources:
1419
+
1520
[source,terminal]
1621
----
@@ -21,7 +26,7 @@ $ oc get hfs -n openshift-machine-api
2126
+
2227
[source,terminal]
2328
----
24-
$ oc edit hfs -n openshift-machine-api/<host_name>
29+
$ oc edit hfs <host_name> -n openshift-machine-api
2530
----
2631
+
2732
Where `<host_name>` is the name of a provisioned host. The `HostFirmwareSettings` resource will open in the default editor for your terminal.
@@ -33,7 +38,58 @@ Where `<host_name>` is the name of a provisioned host. The `HostFirmwareSettings
3338
----
3439
spec:
3540
settings:
36-
name: value
41+
name: value <1>
3742
----
43+
<1> Use the `FirmwareSchema` resource to identify the available settings for the host. You cannot set values that are read-only.
3844

3945
. Save the changes and exit the editor.
46+
47+
. Get the host's machine name:
48+
+
49+
[source,terminal]
50+
----
51+
$ oc get bmh <host_name> -n openshift-machine name
52+
----
53+
+
54+
Where `<host_name>` is the name of the host. The machine name appears under the `CONSUMER` field.
55+
56+
. Annotate the machine to delete it from the machineset:
57+
+
58+
[source,terminal]
59+
----
60+
$ oc annotate machine <machine_name> machine.openshift.io/cluster-api-delete-machine=yes -n openshift-machine-api
61+
----
62+
+
63+
Where `<machine_name>` is the name of the machine to delete.
64+
65+
. Get a list of nodes and count the number of worker nodes:
66+
+
67+
[source,terminal]
68+
----
69+
$ oc get nodes
70+
----
71+
72+
. Get the machineset:
73+
+
74+
[source,terminal]
75+
----
76+
$ oc get machinesets -n openshift-machine-api
77+
----
78+
79+
. Scale the machineset:
80+
+
81+
[source,terminal]
82+
----
83+
$ oc scale machineset <machineset_name> -n openshift-machine-api --replicas=<n-1>
84+
----
85+
+
86+
Where `<machineset_name>` is the name of the machineset and `<n-1>` is the decremented number of worker nodes.
87+
88+
. When the host enters the `Available` state, scale up the machineset to make the `HostFirmwareSettings` resource changes take effect:
89+
+
90+
[source,terminal]
91+
----
92+
$ oc scale machineset <machineset_name> -n openshift-machine-api --replicas=<n>
93+
----
94+
+
95+
Where `<machineset_name>` is the name of the machineset and `<n>` is the number of worker nodes.

modules/bmo-getting-the-baremetalhost-resource.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `BareMetalHost` resource contains the properties of a physical host. You mus
99

1010
.Procedure
1111

12-
. Get the `BareMetalHost` resource for all hosts:
12+
. Get the list of `BareMetalHost` resources:
1313
+
1414
[source,terminal]
1515
----
@@ -28,11 +28,11 @@ You can use `baremetalhost` as the long form of `bmh` with `oc get` command.
2828
$ oc get bmh -n openshift-machine-api
2929
----
3030

31-
. Get the `BareMetalHost` resource for a specific host
31+
. Get the `BareMetalHost` resource for a specific host:
3232
+
3333
[source,terminal]
3434
----
35-
$ oc get bmh -n openshift-machine-api/<host_name> -o yaml
35+
$ oc get bmh <host_name> -n openshift-machine-api -o yaml
3636
----
3737
+
3838
Where `<host_name>` is the name of the host.

modules/bmo-getting-the-firmwareschema-resource.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ oc get firmwareschema -n openshift-machine-api
2121
+
2222
[source,terminal]
2323
----
24-
$ oc get firmwareschema -n openshift-machine-api/<instance_name> -o yaml
24+
$ oc get firmwareschema <instance_name> -n openshift-machine-api -o yaml
2525
----
2626
+
27-
Where `<instance_name>` is the name of the schema instance.
27+
Where `<instance_name>` is the name of the schema instance stated in the `HostFirmwareSettings` resource (see Table 3).

modules/bmo-getting-the-hostfirmwaresettings-resource.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `HostFirmwareSettings` resource contains the vendor-specific BIOS properties
99

1010
.Procedure
1111

12-
. Get the detailed list of the `HostFirmwareSettings` resource settings:
12+
. Get the detailed list of `HostFirmwareSettings` resources:
1313
+
1414
[source,terminal]
1515
----
@@ -21,7 +21,7 @@ $ oc get hfs -n openshift-machine-api -o yaml
2121
You can use `hostfirmwaresettings` as the long form of `hfs` with the `oc get` command.
2222
====
2323

24-
. Get the list of hosts:
24+
. Get the list of `HostFirmwareSettings` resources:
2525
+
2626
[source,terminal]
2727
----
@@ -32,7 +32,7 @@ $ oc get hfs -n openshift-machine-api
3232
+
3333
[source,terminal]
3434
----
35-
$ oc get hfs -n openshift-machine-api/<host_name> -o yaml
35+
$ oc get hfs <host_name> -n openshift-machine-api -o yaml
3636
----
3737
+
3838
Where `<host_name>` is the name of the host.

modules/bmo-verifying-the-hostfirmware-settings-resource-is-valid.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ When the user edits the `spec.settings` section to make a change to the `HostFir
1010

1111
.Procedure
1212

13-
. Get a list of hosts:
13+
. Get a list of `HostFirmwareSetting` resources:
1414
+
1515
[source,terminal]
1616
----
@@ -21,7 +21,7 @@ $ oc get hfs -n openshift-machine-api
2121
+
2222
[source,terminal]
2323
----
24-
$ oc describe hfs/<host_name> -n openshift-machine-api
24+
$ oc describe hfs <host_name> -n openshift-machine-api
2525
----
2626
+
2727
Where `<host_name>` is the name of the host.

modules/ipi-install-provisioning-the-bare-metal-node.adoc

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,44 @@ Provisioning the bare metal node requires executing the following procedure from
1212

1313
. Ensure the `STATE` is `available` before provisioning the bare metal node.
1414
+
15-
[source,bash]
15+
[source,terminal]
1616
----
1717
$ oc -n openshift-machine-api get bmh openshift-worker-<num>
1818
----
1919
+
2020
Where `<num>` is the worker node number.
2121
+
22-
[source,bash]
22+
[source,terminal]
2323
----
24-
NAME STATE CONSUMER ONLINE ERROR
25-
openshift-worker-<num> available true
24+
NAME STATE ONLINE ERROR AGE
25+
openshift-worker available true 34h
2626
----
2727

2828
. Get a count of the number of worker nodes.
29-
[source,bash]
29+
[source,terminal]
3030
+
3131
----
3232
$ oc get nodes
3333
----
3434
+
35-
[source,bash]
35+
[source,terminal]
3636
----
3737
NAME STATUS ROLES AGE VERSION
38-
provisioner.openshift.example.com Ready master 30h v1.23.0
3938
openshift-master-1.openshift.example.com Ready master 30h v1.23.0
4039
openshift-master-2.openshift.example.com Ready master 30h v1.23.0
4140
openshift-master-3.openshift.example.com Ready master 30h v1.23.0
42-
openshift-worker-0.openshift.example.com Ready master 30h v1.23.0
43-
openshift-worker-1.openshift.example.com Ready master 30h v1.23.0
41+
openshift-worker-0.openshift.example.com Ready worker 30h v1.23.0
42+
openshift-worker-1.openshift.example.com Ready worker 30h v1.23.0
4443
----
4544

4645
. Get the machine set.
4746
+
48-
[source,bash]
47+
[source,terminal]
4948
----
5049
$ oc get machinesets -n openshift-machine-api
5150
----
5251
+
53-
[source,bash]
52+
[source,terminal]
5453
----
5554
NAME DESIRED CURRENT READY AVAILABLE AGE
5655
...
@@ -60,7 +59,7 @@ openshift-worker-1.example.com 1 1 1 1 55m
6059

6160
. Increase the number of worker nodes by one.
6261
+
63-
[source,bash]
62+
[source,terminal]
6463
----
6564
$ oc scale --replicas=<num> machineset <machineset> -n openshift-machine-api
6665
----
@@ -69,54 +68,53 @@ Replace `<num>` with the new number of worker nodes. Replace `<machineset>` with
6968

7069
. Check the status of the bare metal node.
7170
+
72-
[source,bash]
71+
[source,terminal]
7372
----
7473
$ oc -n openshift-machine-api get bmh openshift-worker-<num>
7574
----
7675
+
77-
Where `<num>` is the worker node number. The `STATE` changes from `available` to `provisioning`.
76+
Where `<num>` is the worker node number. The STATE changes from `ready` to `provisioning`.
7877
+
79-
[source,bash]
78+
[source,terminal]
8079
----
8180
NAME STATE CONSUMER ONLINE ERROR
8281
openshift-worker-<num> provisioning openshift-worker-<num>-65tjz true
8382
----
8483
+
8584
The `provisioning` status remains until the {product-title} cluster provisions the node. This can take 30 minutes or more. After the node is provisioned, the state will change to `provisioned`.
8685
+
87-
[source,bash]
86+
[source,terminal]
8887
----
8988
NAME STATE CONSUMER ONLINE ERROR
90-
openshift-worker-<num> provisioning openshift-worker-<num>-65tjz true
89+
openshift-worker-<num> provisioned openshift-worker-<num>-65tjz true
9190
----
9291

9392
. After provisioning completes, ensure the bare metal node is ready.
9493
+
95-
[source,bash]
94+
[source,terminal]
9695
----
9796
$ oc get nodes
9897
----
9998
+
100-
[source,bash]
99+
[source,terminal]
101100
----
102101
NAME STATUS ROLES AGE VERSION
103-
provisioner.openshift.example.com Ready master 30h v1.23.0
104102
openshift-master-1.openshift.example.com Ready master 30h v1.23.0
105103
openshift-master-2.openshift.example.com Ready master 30h v1.23.0
106104
openshift-master-3.openshift.example.com Ready master 30h v1.23.0
107-
openshift-worker-0.openshift.example.com Ready master 30h v1.23.0
108-
openshift-worker-1.openshift.example.com Ready master 30h v1.23.0
105+
openshift-worker-0.openshift.example.com Ready worker 30h v1.23.0
106+
openshift-worker-1.openshift.example.com Ready worker 30h v1.23.0
109107
openshift-worker-<num>.openshift.example.com Ready worker 3m27s v1.23.0
110108
----
111109
+
112110
You can also check the kubelet.
113111
+
114-
[source,bash]
112+
[source,terminal]
115113
----
116114
$ ssh openshift-worker-<num>
117115
----
118116
+
119-
[source,bash]
117+
[source,terminal]
120118
----
121119
[kni@openshift-worker-<num>]$ journalctl -fu kubelet
122120
----

post_installation_configuration/bare-metal-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When deploying {product-title} on bare metal hosts, there are times when you nee
1111
* `BareMetalHost`
1212
* `HostFirmwareSettings`
1313
14-
There is also a read-only `FirmwareSchema` resource, which you can use to validate that you are sending correct values to a host when making changes to host firmware settings.
14+
There is also a read-only `FirmwareSchema` resource, which you can use to determine the valid values that you can send to a host when making changes to host firmware settings.
1515

1616
include::modules/bmo-about-the-baremetalhost-resource.adoc[leveloffset=+1]
1717
include::modules/bmo-getting-the-baremetalhost-resource.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)