[Bug 1770706] Re: openvswitch with ifupdown after reboot
Launchpad Bug Tracker
1770706 at bugs.launchpad.net
Wed Jan 30 16:01:59 UTC 2019
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: systemd (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1770706
Title:
openvswitch with ifupdown after reboot
Status in systemd package in Ubuntu:
Confirmed
Bug description:
Recently I needed to install OVS on fresh ubuntu 18.04.
1). # lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04
2). # apt-cache policy openvswitch-switch
openvswitch-switch:
Installed: 2.9.0-0ubuntu1
Candidate: 2.9.0-0ubuntu1
Version table:
*** 2.9.0-0ubuntu1 500
500 http://ru.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
3). OVS configured after reboot.
4). OVS was not configured after reboot.
After this actions:
- remove netplan.io
- install ifupdown
- install openvswitch-switch
- add verified ovs related statements to /etc/network/interfaces
- reboot
I got this in journal:
мая 11 16:26:49 host2.lab.atlantis.ru ovs-vsctl[1328]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
мая 11 16:26:49 host2.lab.atlantis.ru ovs-vsctl[1368]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
мая 11 16:26:49 host2.lab.atlantis.ru ovs-vsctl[1392]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
мая 11 16:26:49 host2.lab.atlantis.ru ovs-vsctl[1424]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
мая 11 16:26:49 host2.lab.atlantis.ru systemd[1]: networking.service: Failed with result 'exit-code'.
мая 11 16:26:49 host2.lab.atlantis.ru systemd[1]: Failed to start Raise network interfaces.
мая 11 16:28:42 host2.lab.atlantis.ru ovs-vsctl[2041]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:28:43 host2.lab.atlantis.ru ovs-vsctl[2091]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:28:43 host2.lab.atlantis.ru ovs-vsctl[2137]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:28:43 host2.lab.atlantis.ru systemd[1]: networking.service: Failed with result 'exit-code'.
мая 11 16:28:43 host2.lab.atlantis.ru systemd[1]: Failed to start Raise network interfaces.
мая 11 16:30:05 host2.lab.atlantis.ru ovs-vsctl[2243]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:30:06 host2.lab.atlantis.ru ovs-vsctl[2293]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:30:07 host2.lab.atlantis.ru ovs-vsctl[2339]: ovs|00002|db_ctl_base|ERR|no bridge named br0
мая 11 16:30:07 host2.lab.atlantis.ru systemd[1]: networking.service: Failed with result 'exit-code'.
мая 11 16:30:07 host2.lab.atlantis.ru systemd[1]: Failed to start Raise network interfaces.
Problem was fixed after the following changes to unit files:
# diff /lib/systemd/system/ovsdb-server.service /etc/systemd/system/ovsdb-server.service
4c4
< Before=network.target network.service
---
> Before=network.target networking.service
# diff /lib/systemd/system/ovs-vswitchd.service /etc/systemd/system/ovs-vswitchd.service
4c4
< Before=network.target network.service
---
> Before=network.target networking.service
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1770706/+subscriptions
More information about the foundations-bugs
mailing list