Bug 1478812 - Undercloud neutron openvswitch-agent cannot start: CRITICAL neutron [-] Unhandled error: ImportError: cannot import name ofctl_string
Summary: Undercloud neutron openvswitch-agent cannot start: CRITICAL neutron [-] Unhan...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: beta
: 12.0 (Pike)
Assignee: Assaf Muller
QA Contact: Roee Agiman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-07 07:28 UTC by Marius Cornea
Modified: 2018-02-05 19:10 UTC (History)
10 users (show)

Fixed In Version: openstack-neutron-11.0.0-0.20170804190459.el7ost python-ryu-4.15-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 21:49:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 8284 0 None None None 2017-08-07 18:25:17 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Marius Cornea 2017-08-07 07:28:32 UTC
Description of problem:
OSP11 -> OSP12 upgrade: undercloud neutron openvswitch-agent cannot start post upgrade. /var/log/neutron/openvswitch-agent.log shows the following error:

CRITICAL neutron [-] Unhandled error: ImportError: cannot import name ofctl_string
ERROR neutron Traceback (most recent call last):
ERROR neutron   File "/usr/bin/neutron-openvswitch-agent", line 10, in <module>
ERROR neutron     sys.exit(main())
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/cmd/eventlet/plugins/ovs_neutron_agent.py", line 20, in main
ERROR neutron     agent_main.main()
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/main.py", line 51, in main
ERROR neutron     mod.main()
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/main.py", line 35, in main
ERROR neutron     'neutron.plugins.ml2.drivers.openvswitch.agent.'
ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/base/app_manager.py", line 363, in run_apps
ERROR neutron     app_mgr.load_apps(app_lists)
ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/base/app_manager.py", line 415, in load_apps
ERROR neutron     cls = self.load_app(app_cls_name)
ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/base/app_manager.py", line 392, in load_app
ERROR neutron     mod = utils.import_module(name)
ERROR neutron   File "/usr/lib/python2.7/site-packages/ryu/utils.py", line 100, in import_module
ERROR neutron     mod = importlib.import_module(name)
ERROR neutron   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
ERROR neutron     __import__(name)
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_ryuapp.py", line 27, in <module>
ERROR neutron     from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native \
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py", line 32, in <module>
ERROR neutron     from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native \
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py", line 26, in <module>
ERROR neutron     from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native \
ERROR neutron   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py", line 25, in <module>
ERROR neutron     from ryu.lib import ofctl_string
ERROR neutron ImportError: cannot import name ofctl_string
ERROR neutron 


Version-Release number of selected component (if applicable):
openstack-neutron-11.0.0-0.20170803053612.f17fdf1.el7ost.noarch
python-neutron-lib-1.9.1-0.20170731102145.0ef54c3.el7ost.noarch
python-neutron-11.0.0-0.20170803053612.f17fdf1.el7ost.noarch
openstack-neutron-openvswitch-11.0.0-0.20170803053612.f17fdf1.el7ost.noarch
python-neutronclient-6.5.0-0.20170731145127.355983d.el7ost.noarch
openstack-neutron-common-11.0.0-0.20170803053612.f17fdf1.el7ost.noarch
openstack-neutron-ml2-11.0.0-0.20170803053612.f17fdf1.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP11
2. Upgrade to OSP12
3. Reboot undercloud
4. Check neutron agent-list on undercloud

Actual results:
+--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host                      | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+
| 2620dd6d-c48f-4b9e-8ab8-f6db5972d4f6 | Open vSwitch agent | undercloud-0.redhat.local |                   | xxx   | True           | neutron-openvswitch-agent |
| f71edba8-f8c3-49e9-b308-54bbe73fb2e7 | DHCP agent         | undercloud-0.redhat.local | nova              | :-)   | True           | neutron-dhcp-agent        |
+--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+

Expected results:
The neutron openvswitch agent service is able to start

Additional info:
Attaching openvswitch-agent.log

Comment 2 Marius Cornea 2017-08-07 13:39:37 UTC
The same issue shows up on clean deployments so I believe this is not an issue specific to upgrades.

Comment 3 Assaf Muller 2017-08-07 18:37:50 UTC
Fix merged in RDO master.

Comment 4 Jon Schlueter 2017-08-07 18:38:44 UTC
python-ryu-4.15-1.el7ost and openstack-neutron-11.0.0-0.20170804190459.el7ost built

Comment 8 Roee Agiman 2017-11-08 08:30:14 UTC
According to Marius this is VERIFIED.

Comment 11 errata-xmlrpc 2017-12-13 21:49:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462


Note You need to log in before you can comment on or make changes to this bug.