Commit Graph

19 Commits

Author SHA1 Message Date
asarfaty 50afa71853 Fix broken Victoria branch
1.Upgrade pylint to 2.4.4, add exclusions to the tests, and
  fix some lint errors in the code

2. Fix user creation with GRANT in MySQL 8.0(Ubuntu Focal)
In Ubuntu Bionic (18.04) mysql 5.7 version used to create
the user implicitly when using using the GRANT.
Ubuntu Focal (20.04) has mysql 8.0 and with mysql 8.0 there
is no implicit user creation with GRANT. We need to
create the user first before using GRANT command.
See also commit I97b0dcbb88c6ef7c22e3c55970211bed792bbd0d

3. Remove fwaas from the zuul.yaml
4. Remove DB migration test which is failing ue to FWaaS migration
with py38
5. Fix cover tests python version in .tox
6. fix requirememnts

Change-Id: I22654a5d5ccaad3185ae3365a90afba1ce870695
2020-09-21 15:31:18 +02:00
Adit Sarfaty e4ef701471 NSX|V: Shorten the L2 bridge edge name
The NSX backend support max length of 40 characters, and the name of the
edge is not used anywhere other than when it is created, so this patch
shorten the name prefix

Change-Id: Iab67c2f7df6dc213beb932e4633e9ff04f7daf66
2018-08-12 07:55:07 +00:00
Gary Kotton 15a279dbc6 L2GW: support missing methods
Adds missing methods. Something changed witht he way in which
the callbacks were invoked which showed that we did not support
the correct methods.

Change-Id: I253ceee343d829923b874057603a32ccd8c662f6
2018-03-13 08:50:54 +00:00
Adit Sarfaty 0a779b4389 TVD: l2gw support
Creating a wrapper driver for l2gw for hte TVD plugin
This driver choose the actual driver based on the project id.

Change-Id: I2edda8c780b7e14b36e3033108186ad63dd0449e
2017-12-24 13:38:20 +02:00
Zhenmei 053459bc54 [NSXV]Fix l2gateway creation failure
Change-Id: I870939312d9986083c2c7f645736e0ede4747184
2017-06-19 04:02:45 -07:00
Gary Kotton 6f7438e992 NSXV/L2GW: validate that portgroup is used only once
The NSX only allows one DLR to connect to a port group. Trying
with more than one throws an exception.

So we prevent this from happening when a L2 GW is created.

Change-Id: I9c085a9244738c09942ca6e2c7606539ab83c8b4
2017-06-14 05:03:33 -07:00
Gary Kotton 6228a06399 Drop log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I9d37ae28a3fecbe910e60dc7f22e229a7b65940c
2017-03-26 05:09:02 -07:00
Adit Sarfaty eb4e43d9a0 Generalize the availability-zones code
Create a common availability-zones code, and use it for nsxv,
as a first step for adding availability zones for nsx-v3 too.

Change-Id: I33bdfd3efc66ab8b39b9cde9636b1d31c1865559
2017-03-08 15:12:32 +02:00
Adit Sarfaty 3009f37757 Integration with neutron-lib plugin directory
Co-authored-by: Armando Migliaccio <armamig@gmail.com>
Change-Id: I7c7efbaa7a53f8d244f1b19ea3a7c8a8900602be
Depends-on: I7331e914234c5f0b7abe836604fdd7e4067551cf
Depends-on: Ia91dfbf9d93e19b43c0dd0b58b95fc0080b0ad7c
Depends-on: I48cd9257f419ad949ba0cecc9aca98a624ca4dcc
2016-11-23 20:18:17 +00:00
Adit Sarfaty 2f2d770b9b NSX|V add edge_ha per availability zone
Support different edge_ha flag per availability zone

Change-Id: Iff1b9d76a62d23d600b57ad83d868c4de2b04ee9
2016-07-20 10:58:49 +03:00
Adit Sarfaty 7a260dd549 NSX|v Add default availability zone to l2 gateway router creation
L2 gateway router creation needs to get the default availability zone
Also added missing tests for this router creation

Change-Id: I27e519f016d6f0da513d6baedaaff441a99ca7dc
2016-07-19 15:20:42 +03:00
Abhishek Raut ecbed5d940 [NSX|V|V3]: Refactor NSX-V L2 Gateway driver
Commit Ib56ee8bfd182c031e468c503acb0cd75daea8c40 refactored code
in L2 gateway base plugin. This patch removes unused NSX plugin
code and makes appropriate changes to NSX-V driver.

This patch also adds a couple of update_l2_gateway methods to
both NSX|V and NSX|V3 L2GW drivers. These methods are added
since the base plugin expects the driver to define them.

Change-Id: Ifda5401ec5134268b8a9c3276ed7abf4cf8874aa
Partial-Bug: #1591413
2016-05-13 07:15:50 -07:00
Abhishek Raut 8c61877187 NSX: make use of neutron_lib exceptions
Commit 87a79256c494c36f2d9597313f430b24c0110161 added neutron_lib
for shared exceptions. This patch moves us to make use of the
aforementioned library.

Change-Id: I9fe014c5da85faca87bf88a80c4ee19f7f123123
2016-02-21 22:30:41 -08:00
Gary Kotton a67d0ad9bd Use the correct _ from vmware_nsx._i18n file
Ensure that the correct _ method is used.

Change-Id: I7ff4cb24bbde47e480dc6dd410b122693bd63ad3
2015-12-06 07:04:17 -08:00
Gary Kotton 4afa13c3c4 Switch to internal _i18n pattern, as per oslo_i18n guidelines
- Guidelines referenced from:
  http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: I938919958525b2db0c8a517b951a23f974a7762e
2015-12-02 06:59:23 -08:00
Zhenmei 791cb44ddf Check if l2gw has been used before creating l2gw-connection
Only single vlan is supported for one l2 gateway edge, so only one bridge can be created
in one edge. If user tried to connect multiple network to one l2gw
, the exception will be raised.

Change-Id: Ib17174b9735ca536b3701fdba4212123d51a0b23
2015-11-24 21:44:48 -05:00
Zhenmei 6fc16531c5 Support L2 gateway edge HA according to the edge_ha setting
Change-Id: I0fb481f8107cd19b2daf641b1976c429907c23b3
2015-11-10 16:49:07 +08:00
Zhenmei 76f64c70d0 Enable HA on the edge which works as L2 gateway
Change-Id: I93023bbe508d22d1095a1682402f0ab1d99ed05d
2015-09-25 06:51:02 +08:00
Zhenmei 0fc47eabf5 NSXv driver for Layer 2 gateway
This patch adds the backend driver to support Layer 2 gateway
API calls for NSXv.

Partial-bug: #1481087

Change-Id: Iea8b5390300dfd653b275c4389bc0d12bc4cc59f
2015-09-18 01:06:29 +08:00