Some files in networking-l2gw/tests/unit
were given execute permission by mistake
in Change-Id: I29020058671348e0734906a71ac3ae0798172a23.
This proposal want to remove the error permission.
Change-Id: I7e6466f8e9a0886e293df3f229d03a49b6fc92cc
Related-Id: I29020058671348e0734906a71ac3ae0798172a23
Partial-Bug: #1259292
This two files were given execution permission
by mistake. This patch removes the error permission.
Change-Id: I15a6b9fc6af23d9fa1348d567daacca9e19fd7ee
Replace assertEqual(None, *) with assertIsNone in tests to have more
clear messages in case of failure.
Trivafix.
Change-Id: If581190485435b5163bc3db264ccd6c0bf1df843
As per [1], neutron-lib 0.3.0 provides a public add/get API for
local validator registration/access. This API is preferred over
directly accessing the validators dict module-level attribute
that's done today when adding a new validator and in fact
direct access to the validators dict is deprecated.
This patch changes all l2gw's usage of the validators dict
to use the public API.
[1] https://review.openstack.org/#/c/324090/
Related-Bug: #1584237
Change-Id: I8e3af59d09b14bf208f8b87bec91772a672b6764
In a scenario, where network is a part of multiple
l2-gateway-connections, retain ucast_macs_remote entries
in ovsdb until the last l2-gateway-connection is deleted
for that network.
Change-Id: I6d63c5ff0c3c9d208612eeec25351977a40820c0
Closes-Bug: 1607399
By removing explicit addCleanup calls.
and also change import '_' from neutronclient.i18n import _
to networking_l2gw._i18n import _.
Change-Id: I2001c0d0b00410188942c02f7b8b43d3d2fd5b22
Closes-Bug: 1608389
All occurences of ``tenant_id`` across the neutron database are
being renamed to ``project_id``.
This networking-sfc change accompanies the neutron change:
I87a8ef342ccea004731ba0192b23a8e79bc382dc
Partially-Implements: blueprint keystone-v3
Change-Id: If404c88cac07688dbbae3372219a697efc68356f
The patche does the following:
1. remove nested with calls from unit tests
2. updates tox.ini to enable us to use the \ at the end
of a line
3. All integers in python 3 are long.
4. Python 3 does not support __builtin__. Removed it from the tests.
Now the unit tests pass when running python 3.
This also adds support to tox.
Change-Id: Iacbf0c2c05248819af817109e7dd637f71c82404
Bring the sqlalchemy models in sync with the alembic migrations.
Add the neutron standard model-migration sync test. The test is added
to the unit test env since l2gw does not have a functional job
yet. This requires that l2gw uses the python-db-jobs template in the
gate.
(Also remove downgrades since they are not supported.)
Closes-Bug: #1605675
Depends-On: I3a8ea02b86846e9a8a7d7f2aee9700ca952b0248
Change-Id: Ib73f554d5f0bbfbe25a0f6ad33b23e4584800e21
The dict.keys()[0] will raise a TypeError in PY3
as dict.keys() doesn't return a list any more in PY3
but a view of list.
Change-Id: Ib58f7130352aa4c2a4bae3a830a5a83ee8a711d1
Closes-Bug: #1583419
In DVR mode no host IP is associated with the L3 Agent because
the router is configured on all the Compute Nodes and on the Network Node.
To overcome this problem we look for L3 Agent that is running on the Network Node,
resolve the hostname of the Network Node to get its IP address and use it to
configure the destination IP needed for neutron port location information.
Closes-Bug: 1463784
Change-Id: I2595c714ede896baa7726ceec793de9a7a29e6b2
Some tests used incorrect order assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed).
Co-Authored-By: yan.songming@zte.com.cn
Change-Id: I29020058671348e0734906a71ac3ae0798172a23
Partial-Bug: #1259292
The patch set fixes a problem when a logical L2 gateway
in Neutron DB comprises of multiple physical switches
(OVSDB servers), the l2-gateway-connection-create
operation updates Ucast_Macs_Remote table of only
one physical switch (OVSDB server) instead of updating
the table on all the switches involved in the logical
gateway.
Closes-Bug: 1592718
Change-Id: I6512f94119738ae02367cda9e6396e15a18654b3
The patch set fixes a problem where a valid socket
is not opened when enable_manager is set to True
and when SSL is disabled.
It also rearranges debug statements.
Change-Id: I31eed4aa50ff4958ee516a78db958fd2c627ae6a
Closes-Bug: 1602523
Change Q_PLUGIN_EXTRA_CONF_FILES to append to the bash array
rather than set (and overwrite). This will keep any values
set previously by the user and other plugins.
Change-Id: I2d4d103b7c0912082dc5f8d984f3800d77d2a690
Closes-Bug: #1600664
Signed-off-by: Michael Micucci <micucci@midokura.com>
At the momemt plugins using the L3GW code are unable to support
python 3.4 due to this issue.
Closes-bug: #1599795
Change-Id: I5894485e55c04a8ca69825128798227714550c9d
Change-Id: I06912522a1e8ccf7a93357d6ee2ab54e02daaf68
Fix unit test problem
unit test failed due to missing mock.
Change-Id: I656ed3518a763750c37ad995f5016d53b63388ac
whenever l2gateway_agnet.ini is reconfigured to the same ovsdb identifier
but different IP, then we need to clean the mysql db entries from earlier
configured ovsdb_identifier and IP.
For Ex: l2gateway_agent is connected to "ovsdb1:10.10.10.10:6632",
but when you change l2gateway_agent.ini to "ovsdb1:20.20.20.20:6632",
then the mysql entries related to "ovsdb1:10.10.10.10:6632" should be cleaned.
Change-Id: I72cd5a5e2ea27c2a6b37865c3517e614f901aecf
Closes-Bug:1588809
This patch create the starting point to a fullstack job
that is going to be added to networking-l2gw project and run
by jenkins to run end-to-end tests for the project.
Change-Id: I48885cd5be25cbf24c6ef10c7e96aaf55a9f18a9
ovsdb server will initiate SSL connection to l2gateway agent, whenever
ovsdb manager table is populated with l2gateway agent IP with SSL.
This patch set will handle the ssl connection in the l2gw agent side.
Change-Id: I63f1f0465fdcbdc9ed6be0d98fb8e5b59e882eb0
Closes-Bug: 1585901