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
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
This patch adds positive tests for the L2Gateway.
-test_create_l2gw_conn_with_segid_when_l2gw_created_without_segid
-test_create_update_l2gw_with_multiple_devices
Change-Id: Ifdb932156cb07dc8671194d1bf0e92cbe0fe2ed1
checking mac and logical switch while creating l2-gateway-connection,
if there is entry in ucast_mac_remote for second l2-gateway-connection for
same logical switch.
taken care of deleting ucast_mac_remote and vlan_bindings
while deleting l2-gateway-connection.
Closes-Bug:1447910
Co-Authored-By: Phani Pawan <ppawan@hp.com>
Co-Authored-By: MANJUNATH PATIL <mpatil@hp.com>
Change-Id: Id9205c902210d94d7168eb95fbd6c3520fbb6239
internal server error occurs if empty l2gateway is passed in
_check_port_fault_status_and_switch_fault_status.so checking the the same.
Closes-Bug: 1454670
Change-Id: I5faba8d5e097b5ca8aeec44b7fde0a61d98486e4
This patchset fixes the bug which causes wrong
ovsdb identifier to be updated in mysql
Change-Id: Iba87f86ca73a0a467b673dc78a2df954c76654b0
Closes-bug: 1456074
The patch set handles recreation of tunnels
when openvswitch is restarted and it also proposes
the fix for exception thrown while adding vm port
after l2gateway connection to ovsdb
Closes-Bug:1452192
Closes-Bug:1452149
Change-Id: I3ccdd64272adc2d008da69fdd2652b029368fb44
Co-Authored-By: Phani Pawan <ppawan@hp.com>
This fix for supporting the '0' segmentation id during l2gateway connection create.
This is applied for the use case where some bare metal server can not handle tagged packets(connected to access ports)
Closes-Bug:1444188
Change-Id: Ia92432f0296152116e998ad8418c35ef014f898e
The patch set fixes the problem described in a launchpad
bug, where any failures in inserting/updating/delete MACs
into the OVSDB server do not get retried in a later
point in time. The failure may occur when the L2 gateway
agent is down or the OVSDB server is down.
Change-Id: I79956f498c3279e1c78be812563a32c2c41e77ca
Closes-Bug: 1446805
Closes-Bug: 1451765
This patchset addresses the changes where deactivating
switch/ovsdb should delete l2-gateway-connections.
Change-Id: I8be62153e24696c4b265b7634ab172fbd4a2bda5
Closes-bug: 1447453
Creating l2-gateway-connection gives internal
server error if invalid device or invalid interface
is specified.
Change-Id: I5a738b085400b3937dd4f03076233853d05133d0
Closes-bug: 1447467
The patch set fixes the problem described in the launchpad
bug 1447571, where the L2 gateway agent does not populate
OVSDB related tables in the neutron DB, when the data is large.
Change-Id: Ifdd9dacc2419ce427e9526d4e2e4298291a531cc
Closes-Bug: 1447571
This patch fixes the physical locator dict which was
being passed to the agent during the second
l2gateway connection
Change-Id: I0670ff18c855e5ea045e0047227c2dbe044d91ce
Closes-Bug:1446604
The patch set fixes the problem described in the launchpad
bug 1446218 where l2-gateway-connection-create and
l2-gateway-connection-delete report internal server error
instead of correct error that will hint the user to
the right problem area.
Change-Id: I329a4b36ea26482bf69a4afe2a1e0b1271f752ec
Closes-Bug: 1446218
The patch set fixes the problem described in launchpad
bug 1445770 where l2-gateway-connection-delete reports
an error when there are VMs on the network associated
with the connection.
Closes-Bug: 1445770
Change-Id: I76278bda7bfbd3cc997166ca13f985878e06a5cd
The patch set handles VM migration usecase for
L2GW. Basically, it updates Ucast_Macs_Remote
table record for the port associated with the
VM being migrated and inserts new entry in
Physical_Locators table if that locator does not
exist.
Closes-Bug:1438637
Co-Authored-By: Koteswara Rao Kelam <koteswara.kelam@hp.com>
Change-Id: Icf1a973cd3e3ac5e889c7a63405471062f1f9a0d
entries
The patch set fixes the problem described in the launchpad
bug 1445323 where all the OVSDB tables in MYSQL DB should
be populated correctly.
Change-Id: I753b665de93d3e924bf23cbe8fb736410cb4bc73
Closes-Bug: 1445323
This patch adds a number of positive and negative tests for
the L2Gateway functionality implemented by networking stackforge
Change-Id: I0b5e76da2c66cc2caf3d041ccde974a184f4c4e3
The patch set fixes the problem described in the launchpad
bug 1445153, where the L2 gateway service plugin was getting
an error while inserting VM MAC address into the OVSDB server
when a new VM is booted on a network for which l2-gateway
connection exists.
Change-Id: I7e84a91f6e37c4bf557f8536b95b91f4a08f427c
Closes-Bug: 1445153
L2Gateway creation for multiple segmentation ids for an interface input and output for rest api is not aligned.
This defect found only in case of user passes multiple segmentation id .
Change-Id: Ie615afbe71dc0bd746fe475a932ee0143ccebfe0
Closes-Bug: #1439035
are not in Sync
The patch set fixes the problem described in the launchpad
bug 1444833 where the agent sends physical_switch_id is sent as None
to plugin as a part of update_ovsdb_changes rpc
Change-Id: I1a5f087eac4df8d39326ae344afe2fd4b159fc70
Closes-Bug: 1444833
Closes-Bug:1440659
High priority Exception like L2GatewayNotFound, L2GatewayConnectionExists, NetworkNotFound etc are
moved ahead of segmentation id related exceptions
Change-Id: I583031616c2074c2c18a3917abffae9b55c30b84
The patch set fixes the problem described in the launchpad
bug 1443387 where the L2 gateway service plugin was not
checking whether the segmentation ID specified in the
l2-gateway-connection-create operation is already present in the
interface's VXLAN-to-VLAN binding.
Closes-Bug: 1443387
Change-Id: I42a170c479600ce0f45ba3620e665562b6af9b98
The patch set fixes
1. a problem described in the
bug 1440301 where the L2gateway agent throws
a syntax error as the logical switch is passed
as a list inside a list.
2. a problem where the database model
cannot store the value of the string
"unspecified-fault" in 16 character column width
for the port fault status and switch fault status.
3. a problem where the L2gateway agent and the plugin
do not handle empty port and switch fault status
which makes validation of the logical gateway fail
when an l2-gateway-connection is created.
Closes-Bug:1440301
Change-Id: Id4530b26407f2a6d57de7254476d77a36bb70a27
The patch set fixes the problem described
in the launchpad bug 1440649 where deletion
of an existing l2gw connection fails.
The code logic in the service plugin (inside
the method delete_port_mac) handled
the case where the incoming argument was a dict.
It, however, did not handle the case where
the incoming argument was a list.
Closes-Bug: 1440649
Change-Id: Id315416b12b6af581aa768c1378fae6496c342f5
The patch set fixes the problem described in
the launchpad bug 1440691 where the plugin
was not able to delete entries from
ucast_macs_remotes and physical_locators
tables when l2-gateway-connection-delete deletes
the entries from the corresponding OVSDB
server tables, and the OVSDB server sends
delete notifications to the plugin via
the L2gw agent.
Closes-Bug: 1440691
Change-Id: Ib5e18f7a278f2e8d13d5fc271826599c49b141e7
port_fault_status and switch_fault_status implementation.
reflect the same status in neutron db from ovsdb.
raises appropriate error message while creating l2gateway connection
if switch_fault_status and port_fault_status is not UP.
Change-Id: Icc77392afeb62bd2b0b0b816a63f8f02b442b0d8
and l2gateway Agent
This patchset addresses the changes related
to L2gateway Plugin RPC arguments which
should be in par with the L2gateway agent
Closes-Bug:1437161
Change-Id: I478b008a6ec7045c0d9a38d43f12a7ab3913447b
Co-Authored-By: Manjunath Patil <mpatil@hp.com>