while retreving the information from port details which belongs to specific host,
we are checking whether ovs agent is running on that host or not. if not,
exception is raised saying ovs agent not found in the host.
Closes-Bug:1515877
Change-Id: I23fccd8751ce791e1c6fd6920a0510c943714126
Commit 87a79256c494c36f2d9597313f430b24c0110161 added neutron_lib
for shared constants. This patch moves us to make use of the
aforementioned library.
Change-Id: I9f8c04d710bff2323d8259634097ea1738c50cdf
ovsdb_identifier parameter is missing while calling
delete_logical_switch and insert_ucast_macs_remote
function when enable_manager flag is set to False.
Closes-Bug:1546132
Change-Id: I93869f240a9000c7e0298e7ce7a8ec343b6d0982
Since l2gateway binds vxlan(virtual side) to vlan(physical side) segment.
We are extracting only vxlan segment from the virtual network.
Since multi segment network can have multiple segmentation id's belonging
to different network types(vlan, gre, vxlan, etc), we are extracting the
vxlan segment from it.
We are checking for multiple vxlan segments in the network since ovsdb
does not allow multiple vxlan segmentation id's to associate for same
vlan (physical side) while creating l2_gateway_connection.
For Ex: say multi segment network has two vxlan segment id's 1000 and 2000.
If we create a l2_gateway_connection for this network by providing physical
side vlan segment as 500, the bindings should be 1000:500 and 2000:500,
this is not allowed in ovsdb hardware vtep schema.
Closes-Bug:1511639
Change-Id: I5f704eaf40763686aa30320dff7a99a16b6c1772
../networking_l2gw/services/l2gateway/common/l2gw_validators.py:101:
DeprecationWarning: Using function/method 'instance.ugettext()' is
deprecated: Builtin _ translation function is deprecated in OpenStack;
use the function from _i18n module for your project.
msg = _("Segmentation id must be a valid integer")
TrivialFix
Change-Id: Id713e48c48b1815795112baa4a9a862ccca62b08
After creating a gateway and connection, then trying to delete the
connection, we hit the problem at the last call to
delete_ucast_macs_remote in delete_vif_from_gateway. The call requires
4 parameters, but only 3 are given.
Change-Id: I39337261d17b5031f17def0d1d2dfa43f1920bb3
Closes-bug: 1541155
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.
This basically renames
networking-l2gw/locale/networking-l2gw.pot to
networking_l2gw/locale/networking_l2gw.pot. For this we need to update
setup.cfg.
Update also domain name in _i18n.py.
Let's remove the po and pot files in the outdated paths.
The updated scripts work without them. So, we can just
delete the files and once the infra script runs,
an updated pot file together with translations
will be imported automatically.
Change-Id: I5e2db2ff767c25db9bb62aac8b826ba557393a5f
The patch set provides a framework to support
service drivers so that the south bound implementation
need not be tied to only the L2gw agent communicating
over the RabbitMQ message bus. This will help to support
other types of south bound implementations like OpenDaylight.
Change-Id: I403c7c0f110d4ad95d803640508b78c1539d181f
Closes-Bug: 1478812
Author: Maruti <maruti.kamat@hp.com>
Co-Authored-By: Manjunath Patil <mpatil@hp.com>
call add_port_mac in l2gw_callback for port update event
as a normal call rather than in thread.
Change-Id: I95ebef23dc5d2bfc3d406c0ac0acd7318485973d
Closes-bug:1511651
The patch set fixes a problem introduced by [1] where
the l2-gateway-connection-create reports a Python error.
1. https://review.openstack.org/#/c/222841
Closes-Bug: 1518856
Change-Id: Ie37a135db6a5d3cd2c097602fc15aac3025243cf
ovsdb server initiates the connection to l2gw agent with the entries in
manager table in ovsdb hardware vtep schema and with flag 'enable_manager'
set to True in l2gateway_agent.ini.
multiple ovsdb can connect to same l2gatway agent with the l2gw agent ip in
respective manager table.
This patchset addresses the handling of connections from multiple
ovsdb servers.
Change-Id: Iffe6a9e8599ffaed55c3f8b749c4d6f7d0e52c79
Closes-Bug:1495005
ovsdb server initiates the connection to l2gw agent with the entries in
manager table in ovsdb hardware vtep schema.
A configurable option 'enable_manager' in .ini file is provided so that
the connection can be initiated by the ovsdb server or not based on boolean
value.
By default 'enable_manager' value is False, turn on the variable to True
to initiate the connection from ovsdb server to l2gw agent.
Closes-Bug:1466302
Change-Id: Ib668ecda381367ea9f2f3cfa45e63d0e91e48f33
Validating entries in the ovsdb after creating l2gateway connection
Logical Switch for network and tunnel key
UCast MAC Remote for MAC address and VTEP mapping
Physical Port Validating vni binding
Physical Locator for hosts
Test l2gateway connection
Create a network
Create a subnet
Create a server
Create an l2gateway
Create an l2gateway connection
Validate resources in ovsdb
Test l2gateway multiple connections
Create a network
Create a subnet
Create a server
Create an l2gateway
Create an l2gateway connection
Validate resources in ovsdb
Repeat for one more connection
Test boot VM after connection create
Create a network
Create a subnet
Create an l2gateway
Create an l2gateway connection
Create a server
Validate resources in ovsdb
Test create connection after deleting old
Create a network
Create a subnet
Create a server
Create an l2gateway
Create an l2gateway connection
Validate resources in ovsdb
Delete the l2gateway connection
Create a new l2gateway connection
Validate resources in ovsdb
Change-Id: Ia634336d3162cb91661ed2c6d21cb507f02a3d11
This contains l2gateway cli using neutronclient extension.
CLIs to create/update/delete/show/list l2-gateway and
create/delete/list/show l2-gateway-connection are
implemented.
Change-Id: I46f655ef1d7b645c0e582397c22c3b8c4e01d0f0
This patchset implements the UcastMacRemote deletion after
the corresponding switch is deleted or disconnected from the
OVSDB.
Change-Id: I383412b523d7c96b85735e18202450edf71fc6f1
Closes-Bug:1453736
The logical switch table has to be deleted when the
last switch from the ovsdb is deleted. This patch
implements the same.
Change-Id: I256d12437e73f213c9e33fdfd1d2482a625f8607
Closes-Bug:1453097
This allows neutron-db-manage to find the alembic migrations
automatically if this project is installed.
The config file alembic.ini is not needed in this project since it's
tables are in neutron's DB and so it depends on neutron's config.
Remove the l2gw-db-manage script since we will use
neutron-db-manage.
Update the alembic env to know about all neutron core tables when
generating diffs for --autogenerate.
Partial-Bug: #1470625
Depends-On: I9a06de64ce35675af28adf819de6f22dc832390d
Change-Id: I581932d333e378d91d5b581760018ec274330681
This fixes the unit tests.
To get jenkins to pass we also need to comment out the migration
check for pep8 temporarily. This check will be re-enabled with
https://review.openstack.org/205866
Change-Id: If8484812e7cd026727b920fa70182db23154df58
This method was removed from all extensions
per I3c406910991c33cf959c5345d76153eabe3ace2d
Change-Id: Idc357dedfac1d5a9376dee5629893f7db608bdac
Closes-bug: 1477794
There were calls to non-existent assert's that were silently passing;
there a number of tests that were poorly mocked and have been fixed.
Other tests were clearly just change detector and were removed altogether.
Change-Id: I66ca5140a2dfcb57bf074a7f6d33b97d34cd968b
In order to register this plugin and its extensions, it suffices
adding the extension path to the list of the ones to be loaded.
Change-Id: Ic087b36f5b7a889455d8f1b785cfb6a35fa196ae