No access to ovsdb local address

Bug #1567248 reported by Li Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
New
Low
Omer Anson

Bug Description

2016-04-07 15:17:31.708 ERROR dragonflow.db.drivers.ovsdb_vswitch_impl [-] could not connect to local ovsdb, [Errno 13] EACCES
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl Traceback (most recent call last):
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl File "/opt/stack/dragonflow/dragonflow/db/drivers/ovsdb_vswitch_impl.py", line 328, in connect_ovsdb
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl self.sock.connect(cfg.CONF.df.ovsdb_local_address)
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl while not socket_connect(fd, address):
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl raise socket.error(err, errno.errorcode[err])
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl error: [Errno 13] EACCES
2016-04-07 15:17:31.708 TRACE dragonflow.db.drivers.ovsdb_vswitch_impl

Environment: ubuntu 14.04

When I run df_local_controller under root privilege, it is working.
I have to change to 'sudo python df_local_controller.py ...' after stack.sh.

Li Ma (nick-ma-z)
Changed in dragonflow:
importance: Undecided → High
Revision history for this message
Li Ma (nick-ma-z) wrote :

[df]
ovsdb_local_address = /var/run/openvswitch/db.sock

The ovsdb local address is not default value in my machine, so I set it in the neutron.conf manually.

Yuli (stremovsky)
Changed in dragonflow:
assignee: nobody → Omer Anson (omer-anson)
Revision history for this message
Omer Anson (omer-anson) wrote :

Currently connection to the OVSDB is done via IP address.
It should be changed to be via unix socket.
Default unix socket should be taken from configuration/environment, in the same manner as ovsdb-client (reported in ovsdb-client --help).
Unix socket permissions need to be verified to allow user 'stack' access.

Changed in dragonflow:
importance: High → Low
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.