11858 Commits

Author SHA1 Message Date
Adit Sarfaty
6fa499d2e2 TVD: fix plugin apis to allow CI job to succeed
Change-Id: I46e312f4577d34f406c138ce9d7e9f7dc0d55265
2017-12-28 10:51:34 +00:00
Zuul
c79cfdca78 Merge "NSX|v+v3: Prevent adding default route to router" 2017-12-27 17:49:23 +00:00
Gary Kotton
232f6fb06f DVS: fix get_por and get_portst
QOS and provider sec groups are not supported with DVS

Change-Id: Ica67a1372e3291093f82e70630787637ca0f2d23
2017-12-27 13:11:25 +02:00
Zuul
c670693cef Merge "TVD: enable DVS to be configured" 2017-12-26 16:58:43 +00:00
Adit Sarfaty
4574b141f4 TVD: Fix devstack cleanup
Change-Id: I4758b747f1181cc5fdd4004e0ebed42c928727dd
2017-12-26 10:49:47 +02:00
Zuul
64b80b1b3f Merge "TVD: Update devstack doc with different services" 2017-12-25 17:47:57 +00:00
Zuul
cd3aa535b9 Merge "AdminUtils NSX-v3: Add config import" 2017-12-25 17:47:56 +00:00
Adit Sarfaty
43b140625b AdminUtils NSX-v3: Add config import
Added import for l2 configuration that was missing and cause the core to
crash on unknown config.
Also added some more v3 unittests for the admin utils to help us catch
similar problems in the future

Change-Id: Ieb2fde77e0be4e32a0976cdeedb9680fda19001d
2017-12-25 11:52:55 +00:00
Adit Sarfaty
cc098fddb1 NSX-v: Fix VPNaaS driver
Commit I0095e160481f1d4572e38ad1d3bbc8e183039b84 introduced some
changes to the VPNaaS driver and validator apis.
This patch closses this gap.

Change-Id: I46d2381e3a0b05551518d41a3f9957a1b9d2b834
2017-12-25 13:51:22 +02:00
Adit Sarfaty
09784cc96b NSX|v+v3: Prevent adding default route to router
Both NSX backend does not support adding a static route with destination
0.0.0.0/0.
The prefered way to change the default gw is to change the gw-ip of the
external subnet.

Change-Id: Ibb4f81a484de48f7ea65cb2bb6968e55eae087ad
2017-12-25 11:29:13 +00:00
Zuul
97138d346a Merge "TVD: l2gw support" 2017-12-25 09:49:42 +00:00
Adit Sarfaty
5517d697c1 TVD: Update devstack doc with different services
Change-Id: Iaf6fb4227df7c919d6bd757a8b47d1c96b289758
2017-12-24 13:12:22 +00:00
Adit Sarfaty
8a4485398c TVD servives: Handle the case where plugin is disabled
Make sure the TVD plugin and services drivers will not crash in case one
of the core plugins is disabled.
Also generelize the code used by the different drivers to select their
plugin

Change-Id: I85dc35b9f516e0df9c9d5e19f90284b4942558e5
2017-12-24 13:12:16 +00:00
Adit Sarfaty
2c21c61709 TVD+BGP: adapt the nsx bgp plugin to be used in TVD
The BGP plugin and driver used for NSX-v should be used for TVD as well.
This plugin suports only NSX-V under the TVD plugin.

Change-Id: I95be40fe0f58f0ff2b06590400d708ee95294b82
2017-12-24 15:11:37 +02: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
Zuul
fcac238cb0 Merge "NSX-V3 Fix router availability zones" 2017-12-23 07:23:18 +00:00
Zuul
33845696b1 Merge "TVD: Add default plugin configuration" 2017-12-21 18:24:31 +00:00
Zuul
bf0d87aa93 Merge "NSX-TVD: Fix md proxy internal tenant" 2017-12-21 18:21:12 +00:00
Zuul
b686027fa6 Merge "Updated from global requirements" 2017-12-21 16:41:32 +00:00
Zuul
145396d32d Merge "NSXv: Allow exclusive router deletion with LBaaS" 2017-12-21 16:41:31 +00:00
Zuul
30885efb36 Merge "Plugin housekeeper" 2017-12-21 16:41:30 +00:00
Zuul
8656c614ea Merge "NSXv: update static routes in LBaaS loadbalancer" 2017-12-21 16:23:20 +00:00
Adit Sarfaty
c8f1f3859c NSX-V3 Fix router availability zones
Before getting the router availability zones in get/list actions, we
need to get the availability zone hints.
The get_router method of the plugin is no longer needed becasue it
was originally created only to avoid thios prroblem.
In addition, the availability zones list should also return the router
zones.

Change-Id: Ief40b36955bae771fb1efd72d49be0e5a0d55cc6
2017-12-21 14:50:24 +02:00
Adit Sarfaty
7f4d0ba86c TVD: Add default plugin configuration
New configuration parameter under [nsx_tvd] named default_plugin.
It can be one of 'nsx-t', 'nsx-v', 'dvs, with the default of default
'nsx-t'.

When an unknown/new project uses one of the core plugin methods, without
a project-plugin mapping in the DB, it will be automatically mapped to
the default plugin.

Change-Id: I850a4cc00ee11a9c5e0d0aac385a8bae79018958
2017-12-21 12:17:11 +02:00
OpenStack Proposal Bot
de3d616bdc Updated from global requirements
Change-Id: I3c5e99d3590c547ea2e8689fb9481af5dfdd3e52
2017-12-21 00:54:07 +00:00
Zuul
3a1a47a70b Merge "NSX-TVD basic unittests" 2017-12-20 15:30:54 +00:00
Kobi Samoray
fad3e3df8c NSXv: update static routes in LBaaS loadbalancer
LBaaS should catch subnet host routes updates and set the routes on
the LB Edge accordingly

Change-Id: Ic2a83f70dde857bcfb091588fbdf86638b815e4c
2017-12-20 16:43:05 +02:00
Kobi Samoray
707aff1e3f NSXv: Allow exclusive router deletion with LBaaS
Previously LBaaS reused exclusive router's Edge appliance so this protection
was required.
Once we removed this dependance, this check is not required anymore.

Change-Id: Ice7bc8824776a7d089513e3a145842f8289e6539
2017-12-20 16:18:02 +02:00
Kobi Samoray
33c1830734 Plugin housekeeper
Implements a generic mechanism to cleanup and fix various breakages and
issues between neutron, plugin and backend.
Also adds a housekeeping job which detects and handles broken DHCP edge
issues.

Change-Id: I5324befbe2c7740b8ed47e0a20586f8aca0726f1
2017-12-20 16:02:47 +02:00
Adit Sarfaty
a4e40114dd NSX-TVD basic unittests
Adding unitests the to NSX-TVD plugin, to make sure the correct sub plugin
is being called, all plugins are initialized, and plugins seperation
is enforced.
Also fixing some problems discovered during those tests.

Change-Id: I76392451b3542f6682dfd594992f0d1c0e550ac0
2017-12-20 11:05:03 +02:00
Tong Liu
101634738e NSXv3: Continue HM delete in case of inconsistence
If there is any inconsistence between neutron db and nsx backend,
don't raise exception and continue withg healthmonitor deletion.

Change-Id: I5929b09b62cf71ffff19ca4e35bf933906c993cf
2017-12-19 11:48:41 -08:00
Zuul
1f8492abd9 Merge "NSX-TVD migration admin util" 2017-12-19 14:22:15 +00:00
Zuul
595e0aa490 Merge "TVD: Support DVS plugin calls" 2017-12-19 13:31:42 +00:00
Zuul
55a4e6a195 Merge "TVD: ensure no empty project is added to the DB" 2017-12-19 12:57:53 +00:00
Zuul
ca7791d07c Merge "NSX-TVD: Add some logs at init and mappings" 2017-12-19 12:57:52 +00:00
Zuul
077513e953 Merge "NSX-TV fwaas drivers" 2017-12-19 12:57:51 +00:00
Zuul
4eb3ef2ec5 Merge "NSX-TVD QoS drivers support" 2017-12-19 12:52:56 +00:00
Zuul
e08dc4c13c Merge "TVD: add in DVS extenion_driver support" 2017-12-19 12:52:55 +00:00
Adit Sarfaty
bb5966e1ba TVD: Support DVS plugin calls
Change-Id: Ie8aa590bada844492541cc3df0e23c1c735882bf
2017-12-19 13:41:45 +02:00
Gary Kotton
cfb24ec003 TVD: add in DVS extenion_driver support
Ensure that we are able to support DVS extension_drivers

Change-Id: I4a5323bcd035dd3c7b074024b906c0bfa16788c4
2017-12-19 02:37:51 -08:00
Gary Kotton
a749444564 TVD: ensure no empty project is added to the DB
Do not add an empty project to the database. There may be cases
when the calling application uses a admin context - via
get_admin_context (which does not have a project/tenant id).

The general use case for this is reading all resources. Here we
will be able to get the specific project for each individual
resource.

Change-Id: Icbebc776c3431f571745fa47718e9d7e494ed352
2017-12-19 01:57:41 -08:00
Adit Sarfaty
41806e8f41 NSX-TVD QoS drivers support
Modify the QoS drivers of NSX-V and NSX-V3 to support TVD core plugin

Change-Id: I20eb61a01f6a0238871440d9d91e18f55b4bd20e
2017-12-19 11:56:06 +02:00
Adit Sarfaty
020dd65904 NSX-TVD: fix extensions list
The extensions list should include the initially defined ones as well
as those from the different plugins.

Change-Id: I96857f814668d7c39c5c9ed335ac12fc648bbd90
2017-12-19 11:29:43 +02:00
Zuul
bc888c65b9 Merge "TVD: LBaaS support" 2017-12-19 08:23:48 +00:00
Adit Sarfaty
91e7ec1823 NSX-TVD: Fix md proxy internal tenant
NSX-V md proxy creates some neutron objects with an internal tenant.
For the TCD support we need this tenant to be mapped to the nsx-v
plugin

Change-Id: Iae96ef2483b97c81dc7a8e95e83a35c2ab3d0efe
2017-12-19 08:17:28 +00:00
Zuul
2dea3134c5 Merge "Updated from global requirements" 2017-12-19 07:50:37 +00:00
Adit Sarfaty
4dea5d93b0 NSX-TVD migration admin util
Adding admin utility to map projects to a plugin.
when starting to use the TVD plugin, you should use this utility for all the old
projects/tenants.
New projects/tenants will later be added to the nsx-t plugin as default

usage:
nsxadmin -r projects -o import --property plugin=nsx-v --property project=<>

to automatically add all existing projects, run this command as an admin user:
for project in `openstack project list | grep -v Name | awk '{print $2}'`;
do nsxadmin -r projects -o import --property plugin=nsx-v --property project=$project;
done

Change-Id: I15e0cbe731628829af436ed265fbaa85f1c4d439
2017-12-19 09:22:58 +02:00
Adit Sarfaty
8b866f0f20 NSX-TVD: Add some logs at init and mappings
Change-Id: Iff293505322c30e4e3644acd466c531b31427235
2017-12-19 08:54:01 +02:00
Adit Sarfaty
189d8d6955 NSX-TV fwaas drivers
Drivers for FWaaS V1/V2 for the NSX-TV plugin
Those drivers are just wrappers calling the right driver according to
the project of the firewall object.

Change-Id: Ia073da9c91cb4d69d772b3e0d0ab6f5c3fd60795
2017-12-19 08:49:32 +02:00
OpenStack Proposal Bot
fdb706bcfa Updated from global requirements
Change-Id: Ic3922d6325bb016cfc65cad8d608ff893e348893
2017-12-19 01:52:24 +00:00