neutron-dhcp-agent can not be started when end user only use linuxbridge as l2 agent

Bug #1271449 reported by Yang Yu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Prasoon Telang

Bug Description

When we only install neutron-linuxbridge-agent package on RHEL6.5, the dhcp agent can not be started successfully. That is because there is hard code to use openvswitch.common plugin in nuetron.agent.linux.ovs_lib.py.

[root@osee15-control01 neutron]# /usr/bin/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini
Traceback (most recent call last):
  File "/usr/bin/neutron-dhcp-agent", line 6, in <module>
    from neutron.agent.dhcp_agent import main
  File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 27, in <module>
    from neutron.agent.linux import interface
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/interface.py", line 26, in <module>
    from neutron.agent.linux import ovs_lib
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ovs_lib.py", line 31, in <module>
    from neutron.plugins.openvswitch.common import constants
ImportError: No module named openvswitch.common

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/68344

tags: added: l3-ipam-dhcp ovs
Changed in neutron:
importance: Undecided → Medium
status: New → Confirmed
Changed in neutron:
assignee: nobody → Prasoon Telang (prasoontelang)
Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/115162

Kyle Mestery (mestery)
Changed in neutron:
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/115162
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=65dde5624bbe1a1f896fe437fef0ad9bbe168153
Submitter: Jenkins
Branch: master

commit 65dde5624bbe1a1f896fe437fef0ad9bbe168153
Author: Prasoon Telang <email address hidden>
Date: Fri Aug 29 19:25:35 2014 +0530

    remove explicit include of the ovs plugin

    On installing only neutron-linuxbridge-agent package, the
    dhcp cannot start successfully because of the imports from
    ovs plugin. This change removes the explicit include of the
    ovs plugin from ovs_lib.py. INVALID_OFPORT has been moved to
    ovs_lib.py while VXLAN_UDP_PORT has moved to
    plugins/common/constants.py. The imports for these 2 constants
    in files which uses it has been corrected to new location.

    Closes-Bug: #1271449
    Change-Id: I6559cb43d1b10b4f926c453a103b12017b59f259

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.