|
2 | 2 | set -xeuo pipefail
|
3 | 3 |
|
4 | 4 | # Setup configuration for a single NIC with two different ways:
|
5 |
| -# - kargs provide static network config for ens5 without coreos.force_persist_ip |
6 |
| -# - ignition provides dhcp network config for ens5 |
| 5 | +# - kargs provide static network config for eth1 without coreos.force_persist_ip |
| 6 | +# - ignition provides dhcp network config for eth1 |
7 | 7 | # Expected result:
|
8 | 8 | # - without coreos.force_persist_ip Ignition networking
|
9 |
| -# configuration wins, verify that ens5 gets ip via dhcp |
| 9 | +# configuration wins, verify that eth1 gets ip via dhcp |
10 | 10 |
|
11 | 11 | # https://bugzilla.redhat.com/show_bug.cgi?id=1958930#c29
|
12 |
| -# These tests fail on aarch64. Limit to x86_64 for now: |
13 |
| -# - https://github.com/coreos/fedora-coreos-tracker/issues/1060 |
14 |
| -# kola: { "platforms": "qemu", "additionalNics": 1, "appendKernelArgs": "ip=10.10.10.10::10.10.10.1:255.255.255.0:myhostname:ens5:none:8.8.8.8", "architectures": "x86_64"} |
| 12 | +# - We use net.ifnames=0 to disable consistent network naming here because on |
| 13 | +# different firmwares (BIOS vs UEFI) the NIC names are different. |
| 14 | +# See https://github.com/coreos/fedora-coreos-tracker/issues/1060 |
| 15 | +# kola: { "platforms": "qemu", "additionalNics": 1, "appendKernelArgs": "ip=10.10.10.10::10.10.10.1:255.255.255.0:myhostname:eth1:none:8.8.8.8 net.ifnames=0" } |
15 | 16 |
|
16 | 17 | . $KOLA_EXT_DATA/commonlib.sh
|
17 | 18 |
|
18 |
| -# Verify ens5 get ip address via dhcp |
19 |
| -nic_name="ens5" |
| 19 | +# Verify eth1 gets ip address via dhcp |
| 20 | +nic_name="eth1" |
20 | 21 | nic_ip=$(get_ipv4_for_nic ${nic_name})
|
21 | 22 | if [ ${nic_ip} != "10.0.2.31" ]; then
|
22 | 23 | fatal "Error: get ${nic_name} ip = ${nic_ip}, expected is 10.0.2.31"
|
|
0 commit comments