While adding a vif to the ovs bridge(br-int), Nova(os-vif) invokes the
ovs-vsctl command. This works fine when OVS DB server is listening for
connections over a UNIX file socket. OVS DB server can listen for connections
over a TCP socket too [0]. If the OVS DB server is listening over a TCP socket,
then the ovs-vsctl commands should include the optional argument
'--db=tcp:ip:port', else vif addition to OVS bridge would fail.
eg: ovs-vsctl --db=tcp:169.254.1.1:6640 add-port br-int eth0
This patch adds a new config parameter: 'ovsdb_connection'. By default,
if ovsdb_connection is set to 'None', communication with OVSDB server would
happen over the UNIX file socket. If it is set to tcp:IP:Port, ovs-vsctl commands
would use the '--db=tcp:IP:Port' parameter for communicating over a TCP socket.
Reviewed: https:/ /review. openstack. org/587378 /git.openstack. org/cgit/ openstack/ os-vif/ commit/ ?id=12cea89b91c 2548ea544f4e1ad f0d346528b6b2e
Committed: https:/
Submitter: Zuul
Branch: master
commit 12cea89b91c2548 ea544f4e1adf0d3 46528b6b2e
Author: pranabjb <email address hidden>
Date: Tue Jul 31 15:58:10 2018 +0530
Support for OVS DB TCP socket communication.
While adding a vif to the ovs bridge(br-int), Nova(os-vif) invokes the db=tcp: ip:port' , else vif addition to OVS bridge would fail. 169.254. 1.1:6640 add-port br-int eth0
ovs-vsctl command. This works fine when OVS DB server is listening for
connections over a UNIX file socket. OVS DB server can listen for connections
over a TCP socket too [0]. If the OVS DB server is listening over a TCP socket,
then the ovs-vsctl commands should include the optional argument
'--
eg: ovs-vsctl --db=tcp:
This patch adds a new config parameter: 'ovsdb_connection'. By default,
if ovsdb_connection is set to 'None', communication with OVSDB server would
happen over the UNIX file socket. If it is set to tcp:IP:Port, ovs-vsctl commands
would use the '--db=tcp:IP:Port' parameter for communicating over a TCP socket.
Neutron already supports this feature. The ovsdb_connection parameter is agent.ini file. [1] www.openvswitch .org/support/ dist-docs/ ovsdb-server. 1.html /docs.openstack .org/neutron/ pike/configurat ion/openvswitch -agent. html
configured in openvswitch_
[0] http://
[1] https:/
Change-Id: I3b0cadd48fd882 3ab2dbec81b2c49 dc4d33031ce
Closes-Bug: 1778724