Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1070113

Summary: neutron-dhcp-agent fails to start when using linuxbridge without openstack-neutron-openvswitch installed
Product: Red Hat OpenStack Reporter: Ofer Blaut <oblaut>
Component: openstack-neutronAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: chrisw, hiroshi01.itani, lars, lpeer, nyechiel, oblaut, parsonsa, yeylon
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 4.0   
Hardware: All   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1019487 Environment:
Last Closed: 2014-03-10 13:16:02 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:
Embargoed:
Bug Depends On: 1019487    
Bug Blocks:    

Description Ofer Blaut 2014-02-26 09:19:03 UTC
+++ This bug was initially created as a clone of Bug #1019487 +++

Description of problem:
neutron-dhcp-agent always tries to import openvswitch.common, but it may not be installed if you opted to not use openvswitch in your packstack answer file.

Version-Release number of selected component (if applicable):
openstack-neutron-2013.2-0.12.rc1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. install openstack via packstack without openvswitch support
2. service neutron-dhcp-agent start

Actual results:
neutron-dhcp-agent fails to start

Expected results:
neutron-dhcp-agent starts

Additional info:
-bash-4.1$ rpm -qa | grep neutron | sort
openstack-neutron-2013.2-0.12.rc1.el6.noarch
openstack-neutron-bigswitch-2013.2-0.12.rc1.el6.noarch
openstack-neutron-brocade-2013.2-0.12.rc1.el6.noarch
openstack-neutron-cisco-2013.2-0.12.rc1.el6.noarch
openstack-neutron-hyperv-2013.2-0.12.rc1.el6.noarch
openstack-neutron-linuxbridge-2013.2-0.12.rc1.el6.noarch
openstack-neutron-mellanox-2013.2-0.12.rc1.el6.noarch
openstack-neutron-metaplugin-2013.2-0.12.rc1.el6.noarch
openstack-neutron-midonet-2013.2-0.12.rc1.el6.noarch
openstack-neutron-ml2-2013.2-0.12.rc1.el6.noarch
openstack-neutron-nec-2013.2-0.12.rc1.el6.noarch
openstack-neutron-nicira-2013.2-0.12.rc1.el6.noarch
openstack-neutron-plumgrid-2013.2-0.12.rc1.el6.noarch
openstack-neutron-ryu-2013.2-0.12.rc1.el6.noarch
openstack-neutron-vpn-agent-2013.2-0.12.rc1.el6.noarch
python-neutron-2013.2-0.12.rc1.el6.noarch
python-neutronclient-2.3.1-1.el6.noarch

-bash-4.1$ neutron-dhcp-agent -h
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 25, in <module>
    from neutron.agent.linux import ovs_lib
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ovs_lib.py", line 27, in <module>
    from neutron.plugins.openvswitch.common import constants
ImportError: No module named openvswitch.common

-bash-4.1$ sudo yum -q -y install openstack-neutron-openvswitch
[sudo] password for parsonsa: 

-bash-4.1$ neutron-dhcp-agent -h
usage: neutron-dhcp-agent [-h] [--config-dir DIR] [--config-file PATH]
                          [--debug] [--log-config PATH]
                          [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR]
...

--- Additional comment from Lars Kellogg-Stedman on 2014-01-15 11:05:25 EST ---

Can you confirm that this is still an issue with the updated packages currently in RDO?

--- Additional comment from Aron Parsons on 2014-01-16 16:11:43 EST ---

Yes, the Requires: is still not there in openstack-neutron-2013.2.1-1.el6.noarch.rpm

--- Additional comment from Lars Kellogg-Stedman on 2014-01-16 17:27:19 EST ---

Behavior is as described, and is caused by the following in neutron/agent/linux_ovs_lib.py:

  #  TODO(JLH) Should we remove the explicit include of the ovs plugin here
  from neutron.plugins.openvswitch.common import constants

This import still exists in neutron master, so for now we can just unilaterally include the openstack-neutron-openvswitch package unilaterally and add an appropriate Requires: to openstack-neutron.



I have encounter it on Havana A2 as well

Comment 2 Lon Hohberger 2014-02-26 13:35:52 UTC
This can be resolved by a simple package dependency in the short term.

Comment 3 lpeer 2014-03-10 13:16:02 UTC
currently LB is low priority, given that this bug did not came from customer and a workaround is available we won't invest resources in fixing it ATM.