Reboot of Amphora does not work with altname in ip link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Confirmed
|
Medium
|
Unassigned |
Bug Description
In newer kernel/ip versions there are aliases for the interfaces configured.
Because of this, the interfaces for the member and listener are not moved to the correct network namespace.
Line in question:
https:/
Output from /sbin/ip link:
```
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens3: <BROADCAST,
link/ether fa:aa:bb:cc:11:21 brd ff:ff:ff:ff:ff:ff
altname enp0s3
3: ens7: <BROADCAST,
link/ether fa:aa:bb:cc:11:22 brd ff:ff:ff:ff:ff:ff
altname enp0s7
```
With this `awk '{getline n; print $0,n}'` will contatinate the wrong lines.
It can be fixed by adding `grep -e mtu -e link`, but maybe a better approach for this line is needed.
I confirm this issue, after rebooting a centos 9 stream amphora, the vip and member interfaces are in the "main" network namespace:
bash-5.1# cat /var/lib/ octavia/ plugged_ interfaces UP,LOWER_ UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 1442 qdisc fq_codel state UP group default qlen 1000 3eff:fee6: 32a8/64 scope link MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 1442 qdisc fq_codel state UP group default qlen 1000
fa:16:3e:34:0c:9e eth1
fa:16:3e:33:a4:5d eth2
bash-5.1# ip a
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,
link/ether fa:16:3e:e6:32:a8 brd ff:ff:ff:ff:ff:ff
altname enp0s3
inet 192.168.0.172/24 brd 192.168.0.255 scope global noprefixroute ens3
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
3: ens7: <BROADCAST,
link/ether fa:16:3e:34:0c:9e brd ff:ff:ff:ff:ff:ff
altname enp0s7
4: ens8: <BROADCAST,
link/ether fa:16:3e:33:a4:5d brd ff:ff:ff:ff:ff:ff
altname enp0s8
the amphora-interface application cannot configure those interfaces:
Jul 17 11:43:32 amphora- 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: 2023-07-17 11:43:32.815 475 INFO octavia. common. config [-] Logging enabled! 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: 2023-07-17 11:43:32.817 475 INFO octavia. common. config [-] /usr/local/ bin/amphora- interface version 12.1.0.dev72 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: 2023-07-17 11:43:32.822 475 INFO octavia. amphorae. backends. utils.interface [-] Setting interface eth2 up 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: 2023-07-17 11:43:32.824 475 INFO octavia. amphorae. backends. utils.interface [-] Setting interface eth1 up 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: 2023-07-17 11:43:32.825 475 INFO octavia. amphorae. backends. utils.interface [-] Setting interface lo up 5a7dab8e- fbeb-4c15- be6b-b0e698dffe 8b.novalocal ip[475]: Error: Could not configure interface: Error on action 'up' for interface eth2: list index out of range., Error on action 'up' for interface eth1: list index out of range.
Jul 17 11:43:32 amphora-
Jul 17 11:43:32 amphora-
Jul 17 11:43:32 amphora-
Jul 17 11:43:32 amphora-
Jul 17 11:43:32 amphora-