Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Obtain and use details about network interfaces¶
To simplify operations with L2 templates, before you start creating them, inspect the general workflow of a network interface name gathering and processing.
Network interface naming workflow:
- The operator creates a - BareMetalHostInventoryobject.- Note - Before update of the management cluster to 2.29.0 (Cluster release 16.4.0), instead of - BareMetalHostInventory, use the- BareMetalHostobject. For details, see BareMetalHost resource.- Caution - While the Cluster release of the management cluster is 16.4.0, - BareMetalHostInventoryoperations are allowed to- m:kaas@management-adminonly. This limitation is lifted once the management cluster is updated to the Cluster release 16.4.1 or later.
- The - BareMetalHostInventoryobject executes the- introspectionstage and becomes- ready.
- The operator collects information about NIC count, naming, and so on for further changes in the mapping logic. - At this stage, the NICs order in the object may randomly change during each introspection, but the NICs names are always the same. For more details, see Predictable Network Interface Names. - For example: - # Example commands: # kubectl -n mosk-ns get bmh baremetalhost1 -o custom-columns='NAME:.metadata.name,STATUS:.status.provisioning.state' # NAME STATE # baremetalhost1 ready # kubectl -n mosk-ns get bmh baremetalhost1 -o yaml # Example output: apiVersion: metal3.io/v1alpha1 kind: BareMetalHost ... status: ... nics: - ip: fe80::ec4:7aff:fe6a:fb1f%eno2 mac: 0c:c4:7a:6a:fb:1f model: 0x8086 0x1521 name: eno2 pxe: false - ip: fe80::ec4:7aff:fe1e:a2fc%ens1f0 mac: 0c:c4:7a:1e:a2:fc model: 0x8086 0x10fb name: ens1f0 pxe: false - ip: fe80::ec4:7aff:fe1e:a2fd%ens1f1 mac: 0c:c4:7a:1e:a2:fd model: 0x8086 0x10fb name: ens1f1 pxe: false - ip: 192.168.1.151 # Temp. PXE network adress mac: 0c:c4:7a:6a:fb:1e model: 0x8086 0x1521 name: eno1 pxe: true ... 
- The operator selects from the following options: - Create an - L2Templateobject with the- ifMappingconfiguration. For details, see Create L2 templates.
- Create a - Machineobject, with the- l2TemplateIfMappingOverrideconfiguration. For details, see Override network interfaces naming and order.
 
- The operator creates a - Machineor- Subnetobject.
- The - baremetal-providerservice links the- Machineobject to the- BareMetalHostInventoryobject.
- The - kaas-ipamand- baremetal-providerservices collect hardware information from the- BareMetalHostInventoryobject and use it to configure host networking and services.
- The - kaas-ipamservice:- Spawns the - IpamHostobject.
- Renders the - L2Templateobject.
- Spawns the - ipaddrobject.
- Updates the - IpamHostobject status with all rendered and linked information.
 
- The - baremetal-providerservice collects the rendered networking information from the- IpamHostobject
- The - baremetal-providerservice proceeds with the- IpamHostobject provisioning.
Now proceed to Create subnets.