Bug 1027440

Summary: DHCP not working on OVSIntPort
Product: [Fedora] Fedora Reporter: IanB <bugzilla.blk>
Component: openvswitchAssignee: Flavio Leitner <fleitner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: bugzilla.blk, chrisw, fleitner, markmc, tgraf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch-2.0.0-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1053904 1053913 (view as bug list) Environment:
Last Closed: 2014-01-25 02:21:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
ifup-ovs with dhcp support for Internal Ports
none
Patch enabling DHCP support for internal ports none

Description IanB 2013-11-06 20:25:40 UTC
Description of problem:

Setting a port of TYPE=OVSIntPort to use DHCP is ignored i.e. dhclient is not run for that interface

ifup-ovs script appears to only handle DHCP on TYPE=OVSBridge . Why?


How reproducible:

100%


Steps to Reproduce:

physical interface is 'p1p1' with config:

DEVICE="p1p1"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSPort"
OVS_BRIDGE="ovsbr0"
BOOTPROTO="none"
HOTPLUG="no"

bridge interface is 'ovsbr0' with config:

DEVICE="ovsbr0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSBridge"
BOOTPROTO="none"
HOTPLUG="no"

Internet ovs port is 'mgmt0' with config:

DEVICE="mgmt0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSIntPort"
OVSBOOTPROTO="dhcp"
OVSDHCPINTERFACES="p1p1"
OVS_BRIDGE="ovsbr0"
HOTPLUG="no"


Actual results:

I run 'systemctl start network.service' which completes without error, but interface mgmt0 never receives an IP address. Process listing shows no 'dhclient' process running.

Expected results:

dhclient should be started and 'mgmt0' should receive an IP

Additional info:

If I run 'dhclient mgmt0' manually, then 'mgmt0' receives an IP address.

Comment 1 Flavio Leitner 2013-11-26 16:44:02 UTC
Created attachment 829364 [details]
ifup-ovs with dhcp support for Internal Ports

It's bug. I don't see a reason to not support it.
Could you backup the original file at
/etc/sysconfig/network-scripts/ifup-ovs

and replace with the attached one for testing purposes?

Thanks!

Comment 2 IanB 2013-11-26 18:53:00 UTC
I've tested the attached ifup-ovs script and it works for me. Thanks!

Comment 3 Flavio Leitner 2014-01-13 20:46:47 UTC
Created attachment 849626 [details]
Patch enabling DHCP support for internal ports

I've found some issues while reviewing again the previous file.

I came up another better patch which I will post upstream in a few minutes.

Comment 4 Flavio Leitner 2014-01-13 23:59:17 UTC
Upstream post: http://openvswitch.org/pipermail/dev/2014-January/035928.html

Comment 5 Flavio Leitner 2014-01-15 14:14:59 UTC
Patch accepted upstream.

Comment 6 Fedora Update System 2014-01-15 21:11:46 UTC
openvswitch-2.0.0-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/openvswitch-2.0.0-4.fc20

Comment 7 Fedora Update System 2014-01-15 22:27:29 UTC
openvswitch-2.0.0-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/openvswitch-2.0.0-4.fc19

Comment 8 Fedora Update System 2014-01-17 05:52:27 UTC
Package openvswitch-2.0.0-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openvswitch-2.0.0-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1014/openvswitch-2.0.0-4.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-01-25 02:21:10 UTC
openvswitch-2.0.0-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-01-25 02:22:17 UTC
openvswitch-2.0.0-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.