apex assigns IP addresses to wrong interfaces of overcloud
We are trying the Apex deployment for the first time with a bare metal undercloud and the network_settings below. The overcloud VMs PXE boots fine with the 192.0.2.0/24 addresses assigned to the correct interfaces (enp2s0f1). But when they boot from disk, this address gets assigned to the wrong interface (enp1s0f0).
The /etc/sysconfig/network-scripts config file have: enp1s0f0: 192.0.2.12 enp1s0f1: 192.0.2.12 enp2s0f0: 11.0.0.25 (this should be the public network) enp2s0f1: OVS_BRIDGE=br-ex (this should be the admin network)
(result is enp1s0f0 gets enp1s0f0 and enp1s0f1 has no address)
enp1s0f1 is the wrong interface, it should be enp2s0f1.
This is /etc/os-net-config/config.json on the overcloud VM:
{"networkconfig": [{"dnsservers": ["8.8.8.8", "8.8.4.4"], "name": "nic1", "routes": [{"ipnetmask": "169.254.169.254/32", "nexthop": "192.0.2.5"}], "usedhcp": false, "type": "interface", "addresses": [{"ipnetmask": "192.0.2.12/24"}]}, {"usedhcp": false, "type": "interface", "name": "nic2", "addresses": [{"ipnetmask": "11.0.0.25/24"}]}, {"name": "br-ex", "members": [{"type": "interface", "name": "nic3", "primary": true}], "routes": [{"ipnetmask": "0.0.0.0/0", "nexthop": "XXX.YYY.ZZZ.1"}], "usedhcp": false, "type": "ovsbridge", "addresses": [{"ipnetmask": "XXX.YYY.ZZZ.10/24"}]}, {"usedhcp": false, "type": "interface", "name": "nic4", "addresses": [{"ip_netmask": "12.0.0.26/24"}]}]}
Seems like the symbolic nicN names get mapped to the wrong physical interfaces. Any suggestions about how to fix this?
enp2s0f0 and enp2s0f1 are two 1G onboard interfaces enp1s0f0 and enp1s0f1 are two 10G Mellanox ConnectX-4 NICs
admin_network:
enabled: true
network_type: bridged
bridged_interface: 'enp2s0f1'
bond_interfaces: ''
vlan: native
usable_ip_range: 192.0.2.10,192.0.2.199
gateway: 192.0.2.1
provisioner_ip: 192.0.2.5
cidr: 192.0.2.0/24
dhcp_range: 192.0.2.10,192.0.2.100
introspection_range: 192.0.2.200,192.0.2.254
private_network:
enabled: true
network_type: 'bridged'
bridged_interface: ''
cidr: 11.0.0.0/24
dhcp_range: 11.0.0.100,11.0.0.200
public_network:
enabled: true
network_type: 'bridged'
bridged_interface: 'enp2s0f0'
cidr: XXX.YYY.ZZZ.0/24
gateway: XXX.YYY.ZZZ.1
floating_ip_range: XXX.YYY.ZZZ.100,XXX.YYY.ZZZ.254
usable_ip_range: XXX.YYY.ZZZ.5,XXX.YYY.ZZZ.20
provisioner_ip: XXX.YYY.ZZZ.3
storage_network:
enabled: true
network_type: 'bridged'
bridged_interface: ''
cidr: 12.0.0.0/24
dhcp_range: 12.0.0.100,12.0.0.200
I tried this with Brahmaputra 3.0 and a daily Colorado built of 15 September.