11858 Commits

Author SHA1 Message Date
Boden R
87e9998921 use api attributes from neutron-lib
This patch moves the code over to neutron-lib's version of the
RESOURCE_ATTRIBUTE_MAP in prep for neutron commit
Iaacee584d499c4d33d6d2dd9609c7ac0f2cfc386

Change-Id: I09ad5d3a079ffe4494a5f609443be632f1cc9a21
2018-01-11 15:43:17 -07:00
Zuul
45ccd1eaa3 Merge "TVD: Add VPNaaS wrapper driver" 2018-01-11 19:18:48 +00:00
Zuul
3a4dc9ee51 Merge "Remove leftover debug logs" 2018-01-11 19:18:47 +00:00
Gary Kotton
fd4661284e TV: doc creation of admin for a specific plugin
Change-Id: Id2afafb084fba19a407060f7d895855e3d52f63f
2018-01-11 18:24:47 +00:00
Gary Kotton
26edbe79a3 TVD: improve default plugin failure at boot time
Ensure that a better error message is raised when the default
plugin fails to start.

Change-Id: I7ed4fd95495dc89606b4c693c51ae39388ce4a03
2018-01-10 04:58:15 -08:00
Gary Kotton
8a752f3a31 NSX_V3: make sure that member creation is serialized
The serailizes the threads.

This also removes unnecessary check the number of
member in a pool before adding the member to the pool.

Co-Authored-By: Tong Liu <tongl@vmware.com>

Change-Id: Ief2c655fcc7652f16ae1fc2c0b3ed0697f15ef27
2018-01-10 12:51:51 +00:00
Adit Sarfaty
5e15477020 NSX-v3: Use logical switch id in FWaaS V2 rules
When adding the FWaaS V2 rules to the NSX router, logical router ports
should not be used as source or destination.
Instead the logical swith id sghould be used.

Change-Id: I819127363f58a1fa9e63306ee4dbc7ca0819394f
2018-01-10 13:46:35 +02:00
Adit Sarfaty
e2002c8270 Remove leftover debug logs
Change-Id: I0b02f3533e2d1c3cd8119ce9d4aedeab0b49c87c
2018-01-10 13:12:29 +02:00
Adit Sarfaty
e9b4d3484a TVD: Add VPNaaS wrapper driver
Change-Id: I39746cf7dc251ad8a6cc632e2c2627c80a41564a
2018-01-10 13:11:49 +02:00
Zuul
d18e17af8f Merge "NSX_V3: ensure that the correct router attributes are read" 2018-01-09 14:58:42 +00:00
Adit Sarfaty
13232a5145 TVD project plugin mappings validations
Only admin user will be able to create a mapping, and the project id should
have the uuid format

Change-Id: Ia87b8fd024d0b9c6fe2d3317134f54526b328b11
2018-01-09 12:23:40 +00:00
Gary Kotton
eac3c51d16 NSX|V: ensure port security is enabled for address pair support
Change-Id: I7057cd2e6e4723f347c7c5fa854f641ea2b6302f
2018-01-09 03:15:35 -08:00
Gary Kotton
ddb2a7cf9a NSX_V3: ensure that the correct router attributes are read
Make sure that the correct router attributes are read. If not
a StaleData exception is raised.

Change-Id: I58e90a7a361dc7dca1267d62545e838153fe7bec
2018-01-09 09:47:33 +00:00
Michal Kelner Mishali
1c0b3c2b8a BUG_FIX: policy.d copy over for devstack
For devstack: Content of policy.d should be copied over and
not the entire folder, or it creates dup of policy.d
and breaks things.

Change-Id: I8666d88d04c7a320922edcd4f7b03f588becdbc1
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
2018-01-09 11:27:41 +02:00
Zuul
bad6dc68a9 Merge "NSX|V3: VPNaaS support" 2018-01-08 12:19:59 +00:00
Zuul
f5d7511d5c Merge "TVD: use warning if plugin is not supported" 2018-01-08 11:40:59 +00:00
Gary Kotton
5524137dba TVD: use warning if plugin is not supported
Log a warning if the plugin is not supported, that is, if there is
an invalid configuration for the specific plaugin.

Change-Id: I3637337162bd31347be8bd40b3605ea4c4cb44f2
2018-01-07 21:49:11 -08:00
Gary Kotton
64fe03c77a TVD: improve get subnets
1. ensure that only the as_provider supported plugins are used for
   metadata requests
2. make sure that we filter subnets according to the relevant project
   type

Change-Id: I51a0a4453ee1f0e356c9b27bf4da3d81c865a39c
2018-01-07 06:30:15 +00:00
Zuul
b9b099af92 Merge "use service aliases from plugin constants" 2018-01-06 15:43:25 +00:00
Zuul
e68255b743 Merge "TVD: create subnet bulk support" 2018-01-06 15:29:48 +00:00
Gary Kotton
f5d5f94a7a TVD: get_address_scopes and get_subnet_pools support
Ensure that each return the specific project type

Change-Id: I2f0ec6e512b63fc6832844bbbeb74af4f529a2b2
2018-01-06 07:49:28 +00:00
Boden R
e2989db7dc use service aliases from plugin constants
Today neutron-lib defines the CORE and L3 service plugin aliases in
neutron_lib.constants as well as neutron_lib.plugins.constants. The
later is preferred and the former will be removed.

This patch switches the code to use the plugin constants from
neutron-lib.

Change-Id: Ic41b180cb0e084f271d715d7433e22e1688c6498
2018-01-05 14:45:44 -07:00
Adit Sarfaty
b993b7f4c0 NSX|V3: VPNaaS support
New support for VPNaaS on NSX-V3 2.2
Creating a vpn service per neutron service,
and ike/ipsec/dpd policies + endpoints + connection per neutron connection

Change-Id: Iad3778c1d826ae67f1b602625f5be0fe2f4c8fe3
2018-01-04 14:38:20 +00:00
Adit Sarfaty
8b98d869f9 TVD: create subnet bulk support
Change-Id: I7870f414b9ece4ccd51ea627ddc53a11a7504bcf
2018-01-04 13:05:51 +02:00
Boden R
fdb1b6c915 use callback payloads for _SPAWN events
This patch switches callbacks over to the payload object style events
[1] for BEFORE_SPAWN and AFTER_SPAWN based notifications. As no event
data is passed for SPAWN notifications, an actual payload object is
not needed and thus this change uses publish() rather than notify()
and updates and callback receivers to accept the payload parameter.

Depends-On: Ifad4781d82aa07f213f4e075b0c9455aa95e94bb

[1] https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html#event-payloads

Change-Id: Icca5213d7372ea28204db50108d5f77e1acf400d
2018-01-03 13:47:09 -07:00
Zuul
6ddff8c110 Merge "AdminUtils NSX-V3 fix for FWaaS callbacks" 2018-01-03 15:43:29 +00:00
Zuul
17186e8daf Merge "NSX|v+v3: Prevent adding 0.0.0.0 route to router" 2018-01-03 15:43:28 +00:00
Zuul
59062c7d8d Merge "NSX|V3: prevent DHCP port deletion with native support" 2018-01-03 11:19:48 +00:00
Zuul
c6b123e409 Merge "TVD: add support for get_*s" 2018-01-03 10:27:07 +00:00
Zuul
dcb75b97ec Merge "TVD: support housekeeper for TVD" 2018-01-03 10:27:06 +00:00
Zuul
7335793c05 Merge "TVD: fix logging configuration at boot" 2018-01-03 10:27:05 +00:00
Zuul
c0cdc749be Merge "NSX|V3: fix load balancer admin util list" 2018-01-03 10:25:34 +00:00
Zuul
b6938c3875 Merge "NSX|TVD: ensure that port update is under transaction" 2018-01-03 10:12:02 +00:00
Adit Sarfaty
259fe21895 NSX|v+v3: Prevent adding 0.0.0.0 route to router
Both NSX backend does not support adding a static route with destination
0.0.0.0/#.
Commit Ibb4f81a484de48f7ea65cb2bb6968e55eae087ad failed the request for
destination 0.0.0.0/0, but it should be failed for any prefix size.

Change-Id: Id1c299ad49ef8f34aede9b876f23fdb7ac7203e4
2018-01-03 10:01:06 +00:00
Adit Sarfaty
c5ea303520 AdminUtils NSX-V3 fix for FWaaS callbacks
When using the fwaas callbacks via the admin utils, we need to make
sure the init_complete method of the core plugin will not be called,
as it was override by the wrapper plugin used by the admin utils.

Change-Id: I79387d4d1757d89f31951a9ba60ef1322c4f59a7
2018-01-03 08:53:32 +02:00
Zuul
00acf10266 Merge "Housekeeper: Per-job readonly option" 2018-01-02 13:18:15 +00:00
Gary Kotton
2ec8ce6b80 TVD: fix logging configuration at boot
If there are V and T security groups we should not thrown an
exception at boot time.

In addition to this the patch does not raise if an exception
occurs, it logs and continues. This will ensure that all configured
security groups will be treated correctly.

Change-Id: I39c36e6f72186ca41426a37b9091f2f08ece0c7d
2018-01-01 06:30:04 -08:00
Kobi Samoray
ecfe878c1a Housekeeper: Per-job readonly option
Add readonly mode support per each job

Change-Id: I803cbdcae71f5dbf2d025016171e08c05e633393
2018-01-01 14:18:08 +00:00
Zuul
57fb87598e Merge "Fix DVS devstack configuration" 2018-01-01 12:26:53 +00:00
Zuul
d0346c2568 Merge "TVD: Add NSX-v CI exclusions" 2018-01-01 11:57:07 +00:00
Gary Kotton
f6799e0855 NSX|TVD: ensure that port update is under transaction
Change-Id: I24a2730d0a8caf2603754b8aea9cd36f0d6e7c9b
2018-01-01 02:33:06 -08:00
Gary Kotton
faf86a5b01 NSX|V3: fix load balancer admin util list
Change-Id: Ieb9ea7041f583b0d6784d43240c24eca27401dd7
2018-01-01 01:35:38 -08:00
Zuul
6c26c0124a Merge "NSX-V+V3: Fix network availability zones extend func" 2017-12-31 17:28:09 +00:00
Adit Sarfaty
442f3dcdf9 TVD: Add NSX-v CI exclusions
+ some fixing needed for the TVD-V CI to pass

Change-Id: Ie482643b69e07f37fbac27f8db29a04b812d36c7
2017-12-31 13:42:12 +02:00
Zuul
b0fb3032b2 Merge "Housekeeper: trigger execution" 2017-12-31 11:26:33 +00:00
Adit Sarfaty
a0456d9990 NSX-V+V3: Fix network availability zones extend func
In order for network availability zone field to have the right value
in the |TVD plugin, we need to separate the az-hints code from the az code.
the az hints is the same for v&v3 plugins and updated using a registered
extend method.
the az field logic is different in each plugin and updated direction by
get_network_availability_zones

Change-Id: Ife423b92d8861d8cde9a7ae265f86382505d2541
2017-12-31 06:39:55 +00:00
Kobi Samoray
9d1ec521de Housekeeper: trigger execution
A sample shell script which triggers the execution of the housekeeper jobs

Change-Id: If5dee83e79221cd36ef416d20a5e69ae0f07aa7c
2017-12-28 16:17:27 +00:00
Kobi Samoray
84da10cf22 NSXv HK: recover broken backup edge appliances
When there is a failure during the recycling of an edge appliace to the
backup pool, the edge at the backend may still be attached to networks
and use IP addresses which are free for reuse by Neutron.
Housekeeping job should address such cases.

Change-Id: I3a8ba622f742064bdc8906ba745da0a54a4576ac
2017-12-28 14:42:02 +00:00
Zuul
b2d3abc66a Merge "TVD: fix plugin apis to allow CI job to succeed" 2017-12-28 12:30:12 +00:00
Zuul
0003f80a0f Merge "NSX-v: Fix VPNaaS driver" 2017-12-28 12:19:51 +00:00