[Bug 1770706] [NEW] openvswitch with ifupdown after reboot

Launchpad Bug Tracker 1770706 at bugs.launchpad.net
Sat Feb 2 01:59:50 UTC 2019


You have been subscribed to a public bug:

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

** Affects: openvswitch (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
openvswitch with ifupdown after reboot
https://bugs.launchpad.net/bugs/1770706
You received this bug notification because you are a member of Ubuntu OpenStack, which is subscribed to openvswitch in Ubuntu.



More information about the Ubuntu-openstack-bugs mailing list