main interface renamed from ens160 to eth0 after AIO VM restart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Dmitriy Rabotyagov |
Bug Description
Ubuntu release:
root@aio1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Openstack ansible release:
stable/ussuri on tag 21.0.1
HOW TO REPRODUCE:
Use official documentation from:
https:/
After script bootstrap-aio.sh will be finished, check the existing interfaces:
$ ip -4 a
1: lo: <LOOPBACK,
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,
inet x.x.x.x/24 brd 10.8.27.255 scope global dynamic ens160
valid_lft 775552sec preferred_lft 775552sec
3: lxcbr0: <BROADCAST,
inet 10.255.255.1/24 brd 10.255.255.255 scope global lxcbr0
valid_lft forever preferred_lft forever
52: br-vlan: <BROADCAST,
inet 172.29.248.1/22 brd 172.29.251.255 scope global br-vlan
valid_lft forever preferred_lft forever
inet 172.29.248.100/22 brd 172.29.251.255 scope global secondary br-vlan
valid_lft forever preferred_lft forever
53: br-storage: <BROADCAST,
inet 172.29.244.100/22 brd 172.29.247.255 scope global br-storage
valid_lft forever preferred_lft forever
54: br-vxlan: <BROADCAST,
inet 172.29.240.100/22 brd 172.29.243.255 scope global br-vxlan
valid_lft forever preferred_lft forever
55: br-mgmt: <BROADCAST,
inet 172.29.236.100/22 brd 172.29.239.255 scope global br-mgmt
valid_lft forever preferred_lft forever
66: br-lbaas: <BROADCAST,
inet 172.29.252.100/22 brd 172.29.255.255 scope global br-lbaas
valid_lft forever preferred_lft forever
67: br-dbaas: <BROADCAST,
inet 172.29.232.100/22 brd 172.29.235.255 scope global br-dbaas
valid_lft forever preferred_lft forever
ls -alh /sys/class/net/
...
ens160 -> ../../devices/
...
Than try to reboot VM. Network initialisation during boot will take much longer. Connectivity to VM via LAN will be broken. Open console to VM, check interfaces again:
ls -alh /sys/class/net/
...
lrwxrwxrwx 1 root root 0 Sep 22 12:12 eth0 -> ../../devices/
...
If we will remove configuration files created by bootstrap-aio.sh:
mv /etc/systemd/
and reboot VM, network connectivity will be restored. It looks like system network config is not compatible with installed by bootstrap-aio.sh into /etc/systemd/
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Dmitriy Rabotyagov (noonedeadpunk) |
By the way:
1. network/ 99-default. link network/ 99-default. link network/ 0-osa_testing- dummy-mgmt. link:2: Unknown lvalue 'Name' in section 'Match'
root@aio1:~# udevadm test-builtin net_setup_link /lib/systemd/
calling: test-builtin
Load module index
Parsed configuration file /lib/systemd/
/etc/systemd/
...
2. According to man 5 systemd.link there is no "Name" option in "Match" section