ifupdown hook is missing in upstart script
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | openvswitch (Ubuntu) |
High
|
Unassigned | ||
| | Trusty |
Medium
|
Unassigned | ||
Bug Description
[Impact]
The documentation included in both upstream Open vSwitch (ovs) 2.0.2 and the version distributed by Ubuntu states that it supports configuring ovs using /etc/network/
The result of this issue is a user can properly configure their network in /etc/network/
The fix in this thread basically adds support for using the normal config files (/etc/network/
[Test Case]
After running `apt-get install -y openvswitch-
allow-ovs br0
iface br0 inet static
ovs_type OVSBridge
address 172.16.0.1
network 255.255.255.0
Try `ifup br0` and `ifdown br0` and notice how the interface is correctly controlled. Try `/etc/init.
[Regression Potential]
This problem is recognized by the user community (see http://
The other unlikely issue is that users have interfaces correctly configured in /etc/network/
[Other Info]
This patch aligns the boot behavior both with what's expected and what the documentation states.
Related branches
| Changed in openvswitch (Ubuntu): | |
| importance: | Undecided → Medium |
| status: | Confirmed → Triaged |
| Brian Turek (brian-turek) wrote : | #2 |
I can confirm this is still present in a fully patched 14.04.2 install and the proposed fix does work.
| Brian Turek (brian-turek) wrote : | #3 |
Following up on my previous comment, the propose fix actually causes the upstart script to fail to start if there are no OVS interfaces present (the ifup errors which I believe causes the pre-start script section to "error" which then causes upstart to kill the process). I submitted a bit longer fix at https:/
| Serge Hallyn (serge-hallyn) wrote : | #4 |
While vivid and wily are using systemd by default, upstart is still an option there. So this bug should first be fixed for wily before we can SRU to trusty.
I'm going to test the attached trivially ported debdiff and intend to push it if it doesn't seem to break anything. An extra set of eyes would be appreciated.
| Serge Hallyn (serge-hallyn) wrote : | #5 |
It looks fine, but is there a particular reason why you run awk over /etc/network/
| Brian Turek (brian-turek) wrote : | #6 |
I realize it's a poor reason but I mimicked the network_interfaces function /etc/init.
| Brian Turek (brian-turek) wrote : | #7 |
Went ahead and created a new (and simpler) patch that uses ifquery. See attached
The attachment "amended-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package openvswitch - 2.4.0-0ubuntu3
---------------
openvswitch (2.4.0-0ubuntu3) wily; urgency=medium
[ Brian Turek ]
* Add ifupdown hooks for upstart script. (LP: #1314887)
-- Chris J Arges <email address hidden> Wed, 14 Oct 2015 13:51:13 -0500
| Changed in openvswitch (Ubuntu): | |
| status: | Triaged → Fix Released |
| Arata Notsu (arata776) wrote : | #10 |
If $BRIDGES is empty,
[ $BRIDGES ] && ifup --allow ovs $BRIDGES
will result in rc=1 and it causes openvswitch-switch to fail to start.
| Emilien Macchi (emilienm) wrote : | #11 |
I confirm Arata's comment, OVS fails to start:
2.4.0-0ubuntu3 looks like a broken release to us.
| Launchpad Janitor (janitor) wrote : | #12 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in openvswitch (Ubuntu Trusty): | |
| status: | New → Confirmed |
| Arata Notsu (arata776) wrote : | #13 |
This is a patch works for me
| Chris J Arges (arges) wrote : | #14 |
Uploaded this latest regression fix. Should be in 2.4.0-0ubuntu4.
| Changed in openvswitch (Ubuntu): | |
| status: | Fix Released → In Progress |
| importance: | Medium → High |
| Changed in openvswitch (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package openvswitch - 2.4.0-0ubuntu4
---------------
openvswitch (2.4.0-0ubuntu4) wily; urgency=medium
[ Arata Notsu ]
* Fix ifupdown hooks in cases where BRIDGE is not defined. (LP: #1314887)
-- Chris J Arges <email address hidden> Thu, 15 Oct 2015 15:03:34 -0500
| Changed in openvswitch (Ubuntu): | |
| status: | In Progress → Fix Released |
| tags: | added: trusty |
| Mathew Hodson (mathew-hodson) wrote : | #16 |
In order for this to be SRUed, it needs to be made compliant with https:/
| Brian Turek (brian-turek) wrote : | #17 |
[Impact]
The documentation included in both upstream Open vSwitch (ovs) 2.0.2 and the version distributed by Ubuntu states that it supports configuring ovs using /etc/network/
The result of this issue is a user can properly configure their network in /etc/network/
The fix in this thread basically adds support for using the normal config files (/etc/network/
[Test Case]
After running `apt-get install -y openvswitch-
allow-ovs br0
iface br0 inet static
ovs_type OVSBridge
address 172.16.0.1
network 255.255.255.0
Try `ifup br0` and `ifdown br0` and notice how the interface is correctly controlled. Try `/etc/init.
[Regression Potential]
This problem is recognized by the user community (see http://
The other unlikely issue is that users have interfaces correctly configured in /etc/network/
[Other Info]
This patch aligns the boot behavior both with what's expected and what the documentation states.
| Iain Lane (laney) wrote : | #18 |
I merged the two wily uploads for this bug into the trusty package and uploaded them.
Thanks!
| Changed in openvswitch (Ubuntu Trusty): | |
| status: | Confirmed → In Progress |
Hello Hiroaki, or anyone else affected,
Accepted openvswitch into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in openvswitch (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| description: | updated |
| Brian Turek (brian-turek) wrote : | #20 |
I can confirm that openvswitch-switch 2.0.2-ubuntu0.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #21 |
This bug was fixed in the package openvswitch - 2.0.2-0ubuntu0.
---------------
openvswitch (2.0.2-
[ Brian Turek ]
* Add ifupdown hooks for upstart script. (LP: #1314887)
[ Arata Notsu ]
* Fix ifupdown hooks in cases where BRIDGE is not defined. (LP: #1314887)
-- Iain Lane <email address hidden> Mon, 07 Dec 2015 11:41:51 +0000
| Changed in openvswitch (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Chris J Arges (arges) wrote : Update Released | #22 |
The verification of the Stable Release Update for openvswitch has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.


Status changed to 'Confirmed' because the bug affects multiple users.