From 7a863b752819b30adffd73c0aec572e6f9ae78be Mon Sep 17 00:00:00 2001 From: Ronan Hennessy Date: Tue, 6 Jun 2023 17:34:48 +0100 Subject: [PATCH] OCPBUGS-9194: Workaround for inconsistency in network connection settings --- .../ipi-install-installation-workflow.adoc | 2 + ...l-config-for-slaac-dual-stack-network.adoc | 62 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 modules/ipi-install-modifying-install-config-for-slaac-dual-stack-network.adoc diff --git a/installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc b/installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc index 5b01c4ca4ace..2c6742a80ccf 100644 --- a/installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc +++ b/installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc @@ -48,6 +48,8 @@ include::modules/ipi-install-configuring-host-network-interfaces-in-the-install- include::modules/ipi-install-configuring-host-network-interfaces-for-subnets.adoc[leveloffset=+2] +include::modules/ipi-install-modifying-install-config-for-slaac-dual-stack-network.adoc[leveloffset=+2] + include::modules/ipi-install-configuring-host-dual-network-interfaces-in-the-install-config.yaml-file.adoc[leveloffset=+2] [role="_additional-resources"] diff --git a/modules/ipi-install-modifying-install-config-for-slaac-dual-stack-network.adoc b/modules/ipi-install-modifying-install-config-for-slaac-dual-stack-network.adoc new file mode 100644 index 000000000000..a6949276de67 --- /dev/null +++ b/modules/ipi-install-modifying-install-config-for-slaac-dual-stack-network.adoc @@ -0,0 +1,62 @@ +// This is included in the following assemblies: +// +// ipi-install-configuration-files.adoc + +:_content-type: PROCEDURE +[id='ipi-install-modifying-install-config-for-slaac-dual-stack-network_{context}'] += Optional: Configuring address generation modes for SLAAC in dual-stack networks + +For dual-stack clusters that use Stateless Address AutoConfiguration (SLAAC), you must specify a global value for the `ipv6.addr-gen-mode` network setting. You can set this value using NMState to configure the ramdisk and the cluster configuration files. If you don't configure a consistent `ipv6.addr-gen-mode` in these locations, IPv6 address mismatches can occur between CSR resources and `BareMetalHost` resources in the cluster. + +.Prerequisites + +* Install the NMState CLI (`nmstate`). + +.Procedure + +. Optional: Consider testing the NMState YAML syntax with the `nmstatectl gc` command before including it in the `install-config.yaml` file because the installation program will not check the NMState YAML syntax. + +.. Create an NMState YAML file: ++ +[source,yaml] +---- +interfaces: +- name: eth0 + ipv6: + addr-gen-mode: <1> +---- +<1> Replace `` with the type of address generation mode required for IPv6 addresses in the cluster. Valid values are `eui64`, `stable-privacy`, or `random`. + +.. Test the configuration file by running the following command: ++ +[source,terminal] +---- +$ nmstatectl gc <1> +---- +<1> Replace `` with the name of the test configuration file. + +. Add the NMState configuration to the `hosts.networkConfig` section within the install-config.yaml file: ++ +[source,yaml] +---- + hosts: + - name: openshift-master-0 + role: master + bmc: + address: redfish+http:///redfish/v1/Systems/ + username: + password: + disableCertificateVerification: null + bootMACAddress: + bootMode: UEFI + rootDeviceHints: + deviceName: "/dev/sda" + networkConfig: + interfaces: + - name: eth0 + ipv6: + addr-gen-mode: <1> +... + +---- +<1> Replace `` with the type of address generation mode required for IPv6 addresses in the cluster. Valid values are `eui64`, `stable-privacy`, or `random`.