Bug 1308639

Summary: neutron-openvswitch-agent service should automatically start openvswitch service
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-neutronAssignee: Jakub Libosvar <jlibosva>
Status: CLOSED ERRATA QA Contact: Toni Freger <tfreger>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: amuller, chrisw, gcheresh, jlibosva, nyechiel, oblaut, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-7.0.4-5.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1341468 1341469 1341470 1341471 (view as bug list) Environment:
Last Closed: 2016-06-29 13:59:20 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:    
Bug Blocks: 1341468, 1341469, 1341470    

Description Attila Fazekas 2016-02-15 16:34:23 UTC
Description of problem:
Running neutron-openvswitch-agent without locally running openvswitch
does not makes too much sense.

Version-Release number of selected component (if applicable):
openstack-neutron-openvswitch-8.0.0.0b3-dev235


2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib [-] Timed out retrieving ofport on port br-int.
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib Traceback (most recent call last):
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/site-packages/neutron/agent/common/ovs_lib.py", line 275, in get_port_ofport
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib     ofport = self._get_port_ofport(port_name)
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/site-packages/neutron/agent/common/ovs_lib.py", line 89, in wrapped
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib     return new_fn(*args, **kwargs)
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib     return Retrying(*dargs, **dkw).call(f, *args, **kw)
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/site-packages/retrying.py", line 231, in call
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib     raise RetryError(attempt)
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib RetryError: RetryError[Attempts: 16, Value: None]
2016-02-15 16:26:14.770 9141 ERROR neutron.agent.common.ovs_lib 
2016-02-15 16:26:14.774 9141 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', 'set-fail-mode', 'br-int', 'secure']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)

Comment 2 Assaf Muller 2016-06-01 00:57:04 UTC
Thoughts?

Comment 3 Jakub Libosvar 2016-06-01 07:11:53 UTC
(In reply to Assaf Muller from comment #2)
> Thoughts?

This guy knows what he's talking about. I pushed https://review.rdoproject.org/r/#/c/1253/

We miss it in all versions, I'll clone this BZ.

Comment 7 GenadiC 2016-06-15 06:05:07 UTC
Verified on RHEL7.2 Icehouse, openstack-neutron-2014.1.5-14.el7ost.noarch

Comment 8 GenadiC 2016-06-15 06:56:47 UTC
Updated incorrect bug with verify, at this stage checked only on Icehouse

Comment 9 Toni Freger 2016-06-27 10:44:20 UTC
Verified according to reproduction steps.
openstack-neutron-7.0.4-7.el7ost.noarch

Comment 11 errata-xmlrpc 2016-06-29 13:59:20 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/RHBA-2016:1353