network won't come up when using ovs for core network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvswitch (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The Open vSwitch readme (/usr/share/
-----
* Ideally, an admin should not add openvswitch bridges in the 'auto'
section of the 'interfaces' file. This is because, when ifupdown starts
working on bridges listed in 'auto', openvswitch has not yet started.
But, if the admin wants to go down this route and adds openvswitch bridges
in the 'auto' section, openvswitch-switch will forcefully be started when
ifupdown kicks in. In a case like this, the admin needs to make sure that /usr
has already been mounted and that a remote $syslog (if used) is ready to
receive openvswitch logs.
-----
But this is exactly what we do. In this case /usr/share/
/usr/share/
-----
SERVICE_
if [ -f $SERVICE_UNIT ] && [ -x /usr/bin/systemctl ]; then
if ! systemctl --quiet is-active openvswitch-
systemctl start openvswitch-
fi
else
if service openvswitch-switch status > /dev/null 2>&1; then
service openvswitch-switch start
fi
fi
-----
The networks comes up if I altering this section to:
-----
SERVICE_
if [ -f $SERVICE_UNIT ] && [ -x /bin/systemctl ]; then
if ! systemctl --quiet is-active openvswitch-
systemctl start openvswitch-
fi
else
if service openvswitch-switch status > /dev/null 2>&1; then
service openvswitch-switch start
fi
fi
-----
Note that I fixed the paths and substituted nonetwork for switch here.
This files was fixed in the past already for an older version of ovs (see https:/
Facts about the system:
# lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04
# apt-cache policy openvswitch-switch
openvswitch-switch:
Installed: 2.9.2-0ubuntu0.
Candidate: 2.9.2-0ubuntu0.
Version table:
*** 2.9.2-0ubuntu0.
500 http://
100 /var/lib/
2.
500 ssh://freight-
2.
500 http://
500 http://
500 http://
500 http://
2.
500 ssh://freight-
2.5.0-0ubuntu1 500
500 http://
500 http://
The attachment "Patch for ovs ifupdown.sh script" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]