Skip to content

Commit 3baf0b1

Browse files
committed
OSDOCS-16201-RE: Documented migrating a br-ex interface to NMState
1 parent 99537cb commit 3baf0b1

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed

installing/installing_bare_metal/bare-metal-postinstallation-configuration.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ include::modules/creating-manifest-file-customized-br-ex-bridge.adoc[leveloffset
3636
// Making disruptive changes to a customized br-ex bridge
3737
include::modules/making-disruptive-changes-br-ex-bridge.adoc[leveloffset=+1]
3838

39+
// Migrating a configured br-ex bridge to NMState
40+
include::modules/migrating-br-ex-bridge-nmstate.adoc[leveloffset=+1]
41+
42+
[role="_additional-resources"]
43+
.Additional resources
44+
45+
* xref:../installing_bare_metal/ipi/ipi-install-installation-workflow.adoc#creating-manifest-file-customized-br-ex-bridge_ipi-install-installation-workflow[Installer-provisioned infrastructure: Creating a manifest object that includes a customized `br-ex` bridge]
46+
47+
* xref:../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#creating-manifest-file-customized-br-ex-bridge_installing-bare-metal[User-provisioned infrastructure: Creating a manifest object that includes a customized `br-ex` bridge]
48+
3949
// Services for a user-managed load balancer
4050
include::modules/nw-osp-services-external-load-balancer.adoc[leveloffset=+1]
4151

modules/creating-manifest-file-customized-br-ex-bridge.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ endif::postinstall-bare-metal[]
8181
.Procedure
8282

8383
ifndef::postinstall-bare-metal[]
84-
. Create a NMState configuration file that has decoded base64 information for your customized `br-ex` bridge network:
84+
. Create an NMState configuration file that has decoded base64 information for your customized `br-ex` bridge network:
8585
+
8686
.Example of an NMState configuration for a customized `br-ex` bridge network
8787
[source,yaml]
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_bare_metal/bare-metal-postinstallation-configuration.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="migrating-br-ex-bridge-nmstate_{context}"]
7+
= Migrating a configured br-ex bridge to NMState
8+
9+
If you used the `configure-ovs.sh` shell script to set a `br-ex` bridge during cluster installation, you can migrate the `br-ex` bridge to NMState as a postinstallation task. NMState provides a declarative and idempotent way to handle configuring the `br-ex` bridge.
10+
11+
[NOTE]
12+
====
13+
The initial steps in the procedure do not show example configurations. For detailed example configurations that would represent objects to create during cluster installation, see the "Creating a manifest object that includes a customized br-ex bridge" link in the _Additional resources_ section.
14+
====
15+
16+
After you migrate your configured `br-ex` bridge to NMState, you cannot reverse the operation. This means that you cannot migrate back to the shell script version of the `br-ex` bridge.
17+
18+
[IMPORTANT]
19+
====
20+
Misconfiguring any files that form part of the migration operation can cause disruptive changes to your cluster. Reverting these changes might not always be possible.
21+
====
22+
23+
.Prerequisties
24+
25+
* You used the `configure-ovs.sh` shell script to set a `br-ex` bridge for your cluster.
26+
27+
.Procedure
28+
29+
. Create an NMState configuration file that has decoded base64 information for your customized `br-ex` bridge network.
30+
31+
. Create a `MachineConfig` manifest file that has decoded base64 information and define a customized `br-ex` bridge network configuration in the file.
32+
33+
. Use the `cat` command to base64-encode the contents of the `MachineConfig` manifest file:
34+
+
35+
[source,terminal]
36+
----
37+
$ cat <machine_config>.yaml | base64 <1>
38+
----
39+
<1> Replace `<machine_config>` with the name of your NMState resource YAML file.
40+
41+
. Apply the updates from the MachineConfig object to your cluster by entering the following command:
42+
+
43+
[source,terminal]
44+
----
45+
$ oc apply -f <machine_config>.yml
46+
----
47+
48+
. Create a bare `MachineConfig` object but do not make any configuration changes to the file.
49+
50+
. Start a reboot operation by applying the bare `MachineConfig` object configuration to your cluster by entering the following command:
51+
+
52+
[source,terminal]
53+
----
54+
$ oc apply -f <bare_machine_config>.yml
55+
----
56+
57+
. Delete the bare `MachineConfig` object by entering the following command:
58+
+
59+
[source,terminal]
60+
----
61+
$ oc delete machineconfig <machine_config_name>
62+
----
63+
64+
.Verification
65+
66+
* Use the `nmstatectl` tool to check the configuration for the `br-ex` bridge interface by running the following command. The tool checks a node that runs the `br-ex` bridge interface and not the location where you deployed the `MachineConfig` objects.
67+
+
68+
[source,terminal]
69+
----
70+
$ sudo nmstatectl show br-ex
71+
----

0 commit comments

Comments
 (0)