144 Commits

Author SHA1 Message Date
yuyangbj
2ffa65f5b9 Adding --force support for nsxadmin backup-edges resources
Change-Id: Ic4d55c734230460225091c8e002cc68dbb785efb
2018-04-10 11:03:49 +08:00
OpenStack Proposal Bot
8bb8b5a7b9 Updated from global requirements
Change-Id: I1e890f5e1e4bf5f76fb30db84327c2ca6a4f03a0
2018-03-16 03:55:37 +00:00
OpenStack Proposal Bot
59509abbb0 Updated from global requirements
Change-Id: I1c2a9f3a0413d01e8cd21a9162f5fadda157b814
2018-03-13 07:38:00 +00:00
OpenStack Proposal Bot
ae9a922faa Updated from global requirements
Change-Id: I0ea4819a924912d4c89c33b75f8e90f9a6c4e081
2018-03-10 14:00:04 +00:00
Gary Kotton
f634145a1e TVD: update port migration for V -> T instances
The patch does the following:
1. set instance vNIC to a common network interface
2. Live migrates to T cluster
3. Updates the instance vNIC to opaque network

Example:
nsxadmin -r ports -o nsx-migrate-v-v3 \
    --property project-id=01dd52ff4c7047f79f6259f916c83790 \
    --property host-moref=host-11 --property respool-moref=resgroup-9 \
    --property datastore-moref=datastore-22 \
     --plugin nsxv3

There is also an option to use net-name. The default here is 'VM Network'

Change-Id: I24d9df3f7a3dbd11dffb86427367b809e2b49409
2018-03-06 06:06:24 +00:00
Adit Sarfaty
2825e30777 AdminUtils: Improve NSXv security admin utils
1. Better explain the security groups / nsx security groups / firewall sections
admiun utilities.
2. Also remove the unrelated firewall sections reorder form the fix-mismatch utility
3. fix some warnings that appeared when runnin g the utilities
4. Add new utilities to list/clean unused NSX sections:
- List NSX firewall sections that does not have a matching neutron security group::

    nsxadmin -r firewall-section -o list-unused

- Delete NSX firewall sections that does not have a matching neutron security group::

    nsxadmin -r firewall-section -o nsx-clean

Change-Id: Ie9868d1fb196964ce479bca2c42d4a6eea7ef427
2018-03-01 14:11:38 +00:00
Zuul
f9e3bf72a2 Merge "TVD IPAM support" 2018-02-22 13:08:00 +00:00
Zuul
36bb519b93 Merge "TVD: Admin utility for migrating a project" 2018-02-21 11:31:49 +00:00
Adit Sarfaty
db005d3221 TVD IPAM support
Adding an IPAM driver for the TVD plugin which will redirect the
requests to the V/T driver.

Change-Id: Iea48c7de053b0e7545fdae2a8e38c7b489d61409
2018-02-21 12:38:56 +02:00
Adit Sarfaty
863daeafef TVD: Admin utility for migrating a project
Initial version for an admin utility for migration of a project
from V to T
This code will first dump all the objects to a file, so the data
will not be lost.
Then it will delete each object using the V plugin,
move the project to the T plugin and recreate each object.

Usage:
nsxadmin -r projects -o nsx-migrate-v-v3 --property project-id=<V project to be migrated>
--property external-net=<T external network to be used>

Change-Id: I816b63f40ada945d321db4566224f8a964a39a8f
2018-02-21 10:58:14 +02:00
Zuul
d62cacf2d7 Merge "TVD: Add service plugins to separate list results" 2018-02-21 08:29:54 +00:00
Adit Sarfaty
db7ec67010 NSX-V Admin Utils: List BGP GW edges
Usage:
nsxadmin -r bgp-gw-edge -o list

Change-Id: Icc82895e6c981ec35b2dbb31c32ceaa05d9e9f11
2018-02-20 14:26:03 +02:00
Adit Sarfaty
c6c155c1aa TVD: Add service plugins to separate list results
Adding service plugins for QoS, VPNaaS and L2Gateway
and updating the BGP plugin
to prevent users from getting objects belonging to a different
plugin

Change-Id: I3545c3acefaf50ca6937a0b7a65c131c569317cd
2018-02-20 10:34:18 +02:00
Gary Kotton
5ffb1de1e6 admin utility enabled nsx-update for security groups (V and T)
Provide ability to update security groups on NSX

Change-Id: Ia16dfcd5618a3584bc9d0acfbf8a0de155997e58
2018-02-12 08:18:55 -08:00
Adit Sarfaty
d6fbcb9134 Fix admin utils doc
The config resource belongs to the V3 plugin + make the plugins headers
more noticable

Change-Id: If35fb4d7d01810de81bda813838ab37d0ba837c7
2018-02-12 09:51:11 +02:00
Zuul
a7f1b3513f Merge "Use the new PTI for document build" 2018-02-06 22:25:40 +00:00
Sean McGinnis
7dd27bfc7c Use the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I9cf0bac7edc5f4d45af2729428f92d8a6fd7860d
2018-02-02 07:58:29 +01:00
Adit Sarfaty
93268da5c2 AdminUtil NSX-v3: recreate dhcp server for a network
Usage:
nsxadmin -r dhcp-binding -o nsx-recreate --property net-id=<neutron-net-id>

Change-Id: Ib6e6e8285db95636c912d772b0d3ee543ebba8b6
2018-01-31 09:50:20 +02:00
Adit Sarfaty
4530377c60 TVD: FWaaS plugins
Adding FWaaS v1/v2 plugins to be used with the TVD core plugin.
The plugins will make sure to separate the v/t returned lists
using the same solution that was introduced for the LBass, now as a
general class decorator.

Change-Id: I5f01b8cf093d5ef3b340dce2d12fc41031dd12e9
2018-01-23 10:18:21 +02:00
Zuul
ea075df213 Merge "TVD|AdminUtils: Add all nsxv/v3 utils to tvd" 2018-01-18 08:24:31 +00:00
Adit Sarfaty
09151b77e9 TVD|AdminUtils: Add all nsxv/v3 utils to tvd
The user of the TVD plugin can use the admin utilities of the nsxv/nsxv3 plugins
by calling:
nsxadmin --plugin nsxv -r <> -o <>
or:
nsxadmin --plugin nsxv3 -r <> -o <>

A separate patch will make sure that only the relevant neutron objects are being
retrived when using those utilities.

Change-Id: I813f69bf2e08f3845f0135fdb00666746f5d20c6
2018-01-17 09:51:59 +02:00
Adit Sarfaty
0edcfacc69 AdminUtils: NSX-V3: Show and update the NSX rate limit
Usage:
nsxadmin -r rate-limit -o show
nsxadmin -r rate-limit -o nsx-update --property rate_limit=45

Change-Id: I0b08cd42be61158a1358479d8f0cae271e26541f
Depends-on: I35a05f9810832e9a22ec9db43f167f13df0744a4
2018-01-17 07:08:48 +00:00
Zuul
8bc1f62699 Merge "TV: doc creation of admin for a specific plugin" 2018-01-12 11:48:30 +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
Adit Sarfaty
e9b4d3484a TVD: Add VPNaaS wrapper driver
Change-Id: I39746cf7dc251ad8a6cc632e2c2627c80a41564a
2018-01-10 13:11:49 +02: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
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
Adit Sarfaty
5517d697c1 TVD: Update devstack doc with different services
Change-Id: Iaf6fb4227df7c919d6bd757a8b47d1c96b289758
2017-12-24 13:12:22 +00:00
Zuul
30885efb36 Merge "Plugin housekeeper" 2017-12-21 16:41:30 +00: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
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
84d8217f60 Fix devstask doc for service plugins
Using Q_SERVICE_PLUGIN_CLASSES insead of the neutron service_plugin
allows using multiple plugins at once

Change-Id: Idd9a0a05eb4dab0ed6c5612335e4a28ac80808e3
2017-11-08 09:01:29 +02:00
Adit Sarfaty
5d934b23fd NSX|V Do not share edges between tenants
Adding a configuration option to prevent DHCP/Router edges sharing between
different tenants.
Also adding admin utilities for upgrade - redistribute the dhcp edges and
router edges if the configuration changed:
nsxadmin -r dhcp-binding -o nsx-redistribute
nsxadmin -r routers -o nsx-redistribute

Change-Id: I0d669c60413172a94ea5fc0beba0035df72c62ac
2017-10-17 00:09:47 +03:00
Adit Sarfaty
afdb9ea7ac NSX|V3 refactor fwaas to support plugin rules
For DHCP relay support, and possibly other features, there is a need to
add specific allow rules to the router firewall between the FWaas v1/v2
rules, and the default drop rule.
This patch set the structure to do that, without actually adding new rules.
In case of FWaaS v2 the additional rules are per router interface.

Change-Id: I63d754495f56ec9081d84dcea6fb688ee1c41dbd
2017-10-04 18:19:17 +00:00
Adit Sarfaty
32e95f47b5 NSX|v3: FWaaS v2 support
FWaaS V2 support in NSX-v3.
Support different firewall group per router interface port for
igress/egress.
limitation: cannot support egress rules with source ip, or ingress
rules with destination ips.

Depends-on: I2a37be5518bfc8124ffca2ab05f684d8c1c3d673
Change-Id: I3ed70fa48d078bed15f30e855b73bdfb11d11c6e
2017-09-18 07:42:30 +00:00
Jenkins
13fb4d1c93 Merge "NSX|v3: DHCP Relay support" 2017-09-12 15:50:18 +00:00
Adit Sarfaty
5dac3f4a4c NSX|v3: DHCP Relay support
Support DHCP relay by configuring the relay service per
network availability zone, or globally.
When a router interface port is created, the relay service
will be added to it.
DHCP traffic on the subnet will go through the DHCP server
configured in the dhcp relay service on the NSX, if it is
connected to the router.

Also add admin utility to update exsiting router ports when the
dhcp relay configuration changes.

A future patch will take care of firewall rules allowint the dhcp traffic.

Change-Id: I626b3377e71c269600a47b3bd805eed9d58bad82
2017-09-12 11:49:26 +03:00
Adit Sarfaty
2a4ff322eb NSX|V AdminUtil handle orphaned router vnics
If deleting a router interface in the backend fails, the neutron port is
deleted, but the NSX backend interface and the vnic DB entry are not
deleted.
This new admin utility will list and clean those.

Change-Id: I002cac9c04f844c798097cf79d31dcefdea976ed
2017-09-11 16:14:13 +03:00
Adit Sarfaty
586bd4df40 NSX|V3: AdminUtil updating server ip of md-proxy
New Admin utility to be used during upgrade if it is necessary
to change the ip of the Nova server in the metadata proxy server.

Usage:
nsxadmin -r metadata-proxy -o nsx-update-ip --property server-ip=<server-ip>

you can optionally add the availability zone:
--property availability-zone=<name>

Depends-on: I702398f254a1329299ec2cb82e214caf0ae59a9c
Change-Id: I3b9b3cf3de7c0a5009da11abb69155b1d9c63eb7
2017-09-07 08:40:28 +03:00
Adit Sarfaty
ea782b9066 NSX|v: Admin Util remove router binding orphaned entries
New utilities to list/delete orphaned router binding entries,
meaning entries that the object behind them (router, loadbalancer
or network) does not exist on neutron.

Change-Id: I8a239b9d33a4900e2e90035111899015d68d30bb
2017-08-29 12:24:14 +03:00
Tong Liu
1401b25294 Add NSXv3 LBaaS driver config for devstack
Change-Id: Iba8e52a6b7e789c93f8af2618b492bc00cac4a6e
2017-08-25 11:05:47 -07:00
Adit Sarfaty
1b6d00ac66 AdminUtils:NSX|V3: Add orphaned routers list & clean
Add admin utilities to list and clean backend logical routers that does
not exist in neutron.

Usage:
    nsxadmin -r orphaned-routers -o list
    nsxadmin -r orphaned-routers -o nsx-clean --property nsx-id=<id>

Change-Id: I69dcb2abcf798c3c35f7ddde1c8a10a16a44cc3e
2017-08-22 11:39:47 +00:00
Tong Liu
1daab3a424 NSXv3: Add admin utils for LBaaS resource
This initial version adds some basic admin utilities for Neutron
LBaaS resources.
  - LB Services
  - Virtual Servers
  - Pools
  - Monitors

Change-Id: I549dbdf47f92ffbcc1ad87e8734dc09dee4228fe
2017-08-01 14:00:03 -07:00
Gary Kotton
966b00653f Admin util: add not for DHCP and metadata native support
Update utility for DHCP and metadata are only for migrating from
upstream DHCP and metadata to native support.

Change-Id: I150b5e7451bf114a5f965505d92515906f37df07
2017-07-23 05:16:11 -07:00
YuYang
e8671887c1 NSX|nsxadmin install update
update the nsxadmin install,and add some nsxadmin example.

Change-Id: Ic65d7d279e032b5877b17d8f2cdbfdd9477528ee
2017-07-19 18:41:02 +08:00
YuYang
78cd86be0b VMware-NSX:add install doc command
add the install doc with command for vmware-nsx.
and change the oslo.vmware to vmware-nsx

Change-Id: I68c6584acabe57e8deab279241cce31e569d3ce0
2017-07-17 16:32:24 +08:00
Zhenmei
53d1bd0e2f NSXv: Support ipsec VPNaaS on nsxv driver
Change-Id: Id3fd4da7e4dd4cac4eb2e32024c0d8242b85a0bb
Co-Authored-By: Roey Chen <roeyc@vmware.com>
2017-07-11 06:03:19 -07:00
Adit Sarfaty
b178cda402 AdminUtils NSX|v: recreate router by Id
New option to recreate a single router by it's id
This can be useful if for some reason the current router was not attached
to an edge because of an error, so recreate by edge id is useless.

Change-Id: I1d6bf6ef96c19b80f32e9ac5227b52aa099afe01
2017-07-03 11:29:02 +03:00
Jenkins
3f34e78153 Merge "NSXv: use regular DHCP edges for VDR metadata" 2017-06-28 11:42:16 +00:00
Kobi Samoray
df8f34c66d NSXv: use regular DHCP edges for VDR metadata
VDR-connected networks were using designated DHCP Edge appliances
to provide metadata.
That was necessary before we introduced option 121 - which can be
used for route injection, which directs metadata traffic towards the
DHCP Edge.
This change removes some redundant code which is supporting metadata
in the old manner.
The patch deprecates supports of older versions of NSX which do not
support insertion of host routes which is required for the change.
Therefore dhcp_force_metadata config parameter has been deprecated.

Change-Id: I6b5e2acf09ce61c87d8ae97471955599cddf320b
2017-06-28 07:03:25 +00:00