Configuring additional NICs on the nodes
After the discovery_provision.yml playbook has been executed and the nodes have booted up, additional NICs can be configured on the cluster nodes using the server_spec_update.yml playbook.
Prerequisites
All target nodes are provisioned and booted. Click here to know how to verify the status of the nodes.
Ensure that
input/network_spec.ymlfile has been updated with all network information in addition toadmin_networkandbmc_networkinformation. Below are all applicable properties of an additional network:nic_name: The name of the NIC on which the administrative network is accessible to the control plane.netmask_bits: The 32-bit “mask” used to divide an IP address into subnets and specify the network’s available hosts.static_range: The static range of IPs to be provisioned on target nodes. This indicates that only a certain static range is available to Omnia.
In addition to the above mentioned properties, the following properties are applicable for configuring additional NICs
CIDR: Classless or Classless Inter-Domain Routing (CIDR) addresses use variable length subnet masking (VLSM) to alter the ratio between the network and host address bits in an IP address.Note
You can either use
CIDRorstatic_range. Simultaneous use of both parameters will result in an error message being displayed.MTU: Maximum transmission unit (MTU) is a measurement in bytes of the largest data packets that an Internet-connected device can accept. Default value ofMTUis 1500. You can enter your desired value.VLAN: A 12-bit field that identifies a virtual LAN (VLAN) and specifies the VLAN that an ethernet frame belongs to. This property is not supported on clusters running Ubuntu.
Note
If a
static_rangevalue is provided ininput/network_spec.yml, additional networks are not correlated.If a
CIDRvalue is provided ininput/network_spec.yml, the complete subnet is used for Omnia to assign IPs and where possible, the IPs will be correlated with the assignment on the admin network. Omnia performs correlation for additional networks if the subnet prefix for the admin network is a superset, and the additional network is a subset. For example, if the subnet prefix for the admin network is /16 and for the additional network it’s /24, Omnia attempts to correlate the IPs if the value for thecorrelate_to_adminfield is set to true ininput/network_spec.yml.If a VLAN is required, ensure that a VLAN ID is provided in the
vlanfield ininput/server_spec.ymland ensure that it’s provided in theNIC.vlan_idformat. For example, consider “eth1.101” whereeth1is the NIC name configured with a VLAN is and101is thevlan_id. This field is not supported on admin or bmc networks.While new networks can be added to the
network_spec.ymlfile on subsequent runs of theserver_spec_update.ymlplaybook, existing networks cannot be edited or deleted. If the user modifies or removes existing networks frominput/network_spec.yml, the playbook execution might fail. In that case, the user needs to reprovision the node.
Below is a sample of additional NIC information in a input/network_spec.yml file:
- thor_network1:
netmask_bits: "24"
CIDR: "10.23.1.0"
network_gateway: ""
MTU: "1500"
VLAN: ""
- thor_network2:
netmask_bits: "24"
static_range: "10.23.2.1-10.23.2.254"
network_gateway: ""
MTU: "1500"
VLAN: "1"
The
input/server_spec.ymlfile has been updated with all NIC information of the target nodes.All NICs listed in the
server_spec.ymlfile are grouped into categories (groups for servers). The string “Categories:” should not be edited out of theinput/server_spec.ymlfile.The name of the NIC specified in the file (in this sample,
ensp0,ensp0.5, andeno1) is the unique identifier of NICs in the file.The property
nictypeindicates what kind of NIC is in use (ethernet, infiniband, or vlan). If thenictypeis set tovlan, ensure to specify a primary NIC for the VLAN using the propertynicdevices.While new groups can be added to the
server_spec.ymlfile on subsequent runs of theserver_spec_update.ymlplaybook, existing groups cannot be edited or deleted. If the user modifies or removes existing groups frominput/server_spec.yml, the playbook execution might fail. In that case, the user needs to reprovision the node.
Note
The nicnetwork property should match any of the networks specified in input/network_spec.yml.
Below is a sample input/server_spec.yml file:
---
Categories:
- group-1:
- network:
- ensp0:
nicnetwork: "thor_network1"
nictypes: "ethernet"
- ensp0.5:
nicnetwork: "thor_network2"
nictypes: "vlan"
nicdevices: "ensp0"
- group-2:
- network:
- eno1:
nicnetwork: "thor_network1"
nictypes: "ethernet"
A sample inventory format is present in examples/server_spec_inv.
Use the below commands to assign IPs to the NICs:
cd server_spec_update
ansible-playbook server_spec_update.yml -i inventory
Where the inventory file passed includes user-defined groups, servers associated with them, and a mapping from the groups specified and the categories in input/server_spec.yml under [<group name>:vars]. Below is a sample:
[node-group1]
10.5.0.3
[node-group1:vars]
Categories=group-1
[node-group2]
10.5.0.4
10.5.0.5
[node-group2:vars]
Categories=group-2
Note
In Omnia v1.6, while executing server_spec_update.yml, the user needs to ensure that only admin IP addresses are used in the inventory file, not service tags or node names.
Based on the provided sample files, server 10.5.0.3 has been mapped to node-group1 which corresponds to group-1. Therefore, the NICs ensp0 and ensp0.5 will be configured in an ethernet VLAN group with ens0 as the primary device.
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.