[Bug 1770706] Re: openvswitch with ifupdown after reboot

John Torquato 1770706 at bugs.launchpad.net
Thu Aug 6 21:08:19 UTC 2020


Would it be feasible to compile the source code for 2.11.0 or above in
Bionic 18.04 environment?

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

Title:
  openvswitch with ifupdown after reboot

Status in openvswitch 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/openvswitch/+bug/1770706/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list