12362 Commits

Author SHA1 Message Date
Adit Sarfaty
ff9d30f938 Fix OSC client extension initialization
Commit I57c49e67f9cb285a5f5bc19ec53a42d10de9f0da changed the openstack
client extensions initializion code, making the netwrok service init
breaking out pep8. As it was redundent, this patch removes it.

Change-Id: Ic3c496c85600a39aebcbffac8e0ff1bbf2f349f8
2018-11-04 09:59:10 +02:00
Zuul
2f0bc19f36 Merge "TVD verify loadbalancer project match the LB object project" 2018-11-01 12:08:28 +00:00
Zuul
486c64c25e Merge "NSX|V3: Do not fail on router rollback" 2018-11-01 11:45:35 +00:00
Zuul
e21cebb78c Merge "TVD: Do not crash in case the project is not found" 2018-11-01 09:05:10 +00:00
Zuul
fc8f5d667b Merge "NSX|V3: Fix member fip error message" 2018-11-01 09:05:09 +00:00
Adit Sarfaty
38f92769d6 TVD verify loadbalancer project match the LB object project
In case the project plugin of the loadbalancer does not match the one
of the new object fail the creation

Change-Id: If7a43d46223ccc966665ce2f6bbc6c9fec9cc5f1
2018-10-31 11:23:39 +00:00
Adit Sarfaty
f6241f4ef8 TVD: Do not crash in case the project is not found
When the different service plugins filter the list results by the
project id of the current requestor, the code should not raise an
error if one of the objects project was not found.
Instead that object will be skipped, and a message will be logged.

Change-Id: Ia78f059e1334a23cd9cda07a8981d1f74ae2c430
2018-10-31 11:22:49 +00:00
Adit Sarfaty
18040f5aaf NSX|V3: Fix FW(v2) status when deleting an illegal port
When adding an illegal port to the FW, the status of the fw will be
set to ERROR.
When deleting it, the status should be back to normal. For that to happen
the driver cannot ignore this port, but need to return it as a dummy one.

Change-Id: Ieecdc2a37f92276b5a7c0257c1ef46e772b57a49
2018-10-29 12:26:13 +00:00
Adit Sarfaty
1257d3e7f0 NSX|V3: Fix member fip error message
Change-Id: I86f92baec2ba1c29d6cec0c18fbd4c4fc958c1f6
2018-10-29 12:26:01 +00:00
Adit Sarfaty
af3dbf97b3 NSX|P: Add devstack cleanup for basic NSX resources
Change-Id: I57739712641e6e5ae1c0076069693f6bb7c11c9d
2018-10-29 12:25:40 +00:00
Adit Sarfaty
6421fc3756 NSX|P: Add OS + project tags to all NSX objects
Objects the plugin creates on the NSX policy manager should have tags
indicating that those are OS objects, with the current version, and
project name.
This helps the customer understand which object belongs to an openstack
project, and also helps with the devstack cleanup

Change-Id: I3abd1abb7830a36dac2b5e171bad7390c76cf16c
2018-10-29 06:48:07 +00:00
Zuul
d8b0ef4faa Merge "TVD: Add LBaaS get_operating_status support" 2018-10-28 10:14:49 +00:00
Zuul
4dd035c85b Merge "NSX|V3 Add NO-NAT rules only for routers with enabled SNAT" 2018-10-27 00:30:27 +00:00
Zuul
2fe2eb40e7 Merge "use context manager from neutron-lib" 2018-10-25 16:49:11 +00:00
Adit Sarfaty
4363e74d3e TVD: Add LBaaS get_operating_status support
Change-Id: I9676be9d31764ea63d0bd61fc914e3f81eee5611
2018-10-25 15:33:32 +03:00
Zuul
a3bc1e4f98 Merge "Policy plugin: fix port creation parameters" 2018-10-25 05:58:15 +00:00
Zuul
6442b84b88 Merge "Policy plugin: Add Network & ports basic unit tests" 2018-10-25 05:56:22 +00:00
Zuul
60cfe1cb70 Merge "Fix octavia listener unit tests" 2018-10-25 05:45:00 +00:00
Boden R
d29a0baa80 use context manager from neutron-lib
Access to neutron.db.api's context manager is already in neutron-lib
and in fact neutron is already using it as a shim. This patch switches
over context manager access to use neutron-lib's accessors.
Also see https://review.openstack.org/#/c/613122

Change-Id: I13eb3a25a5bd83bb00dfa4a7430324551fea0f2e
2018-10-24 11:52:05 -06:00
Adit Sarfaty
22d5109c48 Fix octavia listener unit tests
Commit 47b24d7669a5ea755cd099bba6af088ef1f4c572 broke the octavia
listener test due to changes of the octavia config initialization.
This patch uses mock to skip the problem, since octavia & neutron
configurations should not be loaded togather.

Change-Id: I9ae6a860d060181a647f891cf46be2ed2ffb9423
2018-10-24 20:10:31 +03:00
Adit Sarfaty
811edf1dd1 NSX|V Fill VIF data for upgraded ports
Ports from older neutron versions will not have a DB entry for port bondings.
This patch will manually fill the data Nova need.

Change-Id: I7d27844b2f642403c6a16d59879aebbac36aaf1e
2018-10-24 12:08:43 +00:00
Adit Sarfaty
684bbdd956 NSX|V3: Do not fail on router rollback
When rotuer interface creation fails, the plugin rolls it back.
If the rollback also fails it should only log it, and keep the
original exceprion of hte creation failure

Change-Id: Ic2bc51ed7172ddb71b274164a16fda2218ed6d8a
2018-10-24 10:57:29 +00:00
Zuul
f17bc33284 Merge "Devstack plugin: fetch Neutron only when needed" 2018-10-24 07:47:46 +00:00
Zuul
25bbc9d2fa Merge "NSX|P: fix typo in nsxp cleanup script" 2018-10-23 20:34:25 +00:00
Zuul
00708913cb Merge "NSX|P: Fix security group rule validation" 2018-10-23 10:43:50 +00:00
Zuul
c01016bcbf Merge "NSX|P Fix devstack cleanup call" 2018-10-23 08:33:24 +00:00
Michal Kelner Mishali
b27e9802c4 NSX|P: fix typo in nsxp cleanup script
replace mgr-ip with policy-ip

Change-Id: Iea677df68c8b3fd5a43330b52911799d8cd7348f
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
2018-10-23 11:19:12 +03:00
Zuul
c5c425a549 Merge "Policy plugin: Move missing method from v3 to common" 2018-10-23 07:19:24 +00:00
Adit Sarfaty
df21f67a97 NSX|P: Fix security group rule validation
Duplicate rule validation failed since _check_local_ip_prefix should
be called before adding the rules to the DB

Change-Id: I931ad9e42ff76dd5fd7582ddad0ffbb3f4e8fc45
2018-10-23 06:19:23 +00:00
Adit Sarfaty
630e1bea47 NSX|P Fix devstack cleanup call
Change-Id: I2b704f5e4cdb07c1e915f2dab2f94227c685d260
2018-10-23 08:59:29 +03:00
Zuul
dedad59758 Merge "NSX|P: fix bug in cleanup script" 2018-10-22 13:53:10 +00:00
Zuul
dfef2774ca Merge "Policy plugin: integrate with create_or_overwrite output change" 2018-10-22 13:53:09 +00:00
Kobi Samoray
3a652e52b3 Devstack plugin: fetch Neutron only when needed
When Neutron is already fetched by devstack, it is not required to fetch
it in the devstack plugin. Doing so causes problems when devstack fetches
a specifig branch of Neutron.

Change-Id: Iaf2bc9bd76f78d32c7565ccd6288f96cbf6610d7
2018-10-22 14:43:13 +03:00
Michal Kelner Mishali
2144748f3e NSX|P: fix bug in cleanup script
Change-Id: I19a338b630c07429a94f97f119f983782ada57cf
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
2018-10-22 11:30:13 +00:00
Michal Kelner Mishali
a87a2f9305 NSX|P: Start adding tempest tests
Change-Id: I2582085b1527875664171d997e73cbfe3d4b5a30
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
2018-10-22 11:32:52 +03:00
Adit Sarfaty
586181bb74 Policy plugin: fix port creation parameters
Change-Id: Iffc0b543ab4045925a1e7adf3b6bc622680b9090
2018-10-22 09:47:05 +03:00
Adit Sarfaty
45645f5c6b NSX|V3 Add NO-NAT rules only for routers with enabled SNAT
SNAT disabled routers do not need the NO_DNAT rules

Change-Id: I90876b0764c387edb8e5317d6fc5891ed7fc87e2
2018-10-22 06:21:48 +00:00
Adit Sarfaty
75221cf43b Policy plugin: Add Network & ports basic unit tests
The subnets tests will be added with the DHCP support

Change-Id: I24bd029a70d83b0026a6e8398350ee3e23b23876
2018-10-21 15:35:35 +03:00
Adit Sarfaty
f05ea6cc3c Policy plugin: Move missing method from v3 to common
Change-Id: Ib48a313b68781ceea1792a3edbd7f086e2056736
2018-10-21 15:35:35 +03:00
Adit Sarfaty
b2e4570d54 Policy plugin: integrate with create_or_overwrite output change
Commit I5c63fdc331c396f762054e1ced2059773b1df74d changed the output of
policy apis create_or_overwrite which will now only return the object id.
This patch updated the policy plugin code accordingly

Change-Id: Ie6be577a28c450bc5d15abffcb347adfdcff03c8
Depends-on: I5c63fdc331c396f762054e1ced2059773b1df74d
2018-10-21 15:09:57 +03:00
Zuul
60d4f6c46a Merge "NSX|V fix LBaaS operation status function params" 2018-10-21 08:50:28 +00:00
Zuul
73d0f071f6 Merge "NSX|V3 remove lbaas import to allow the plugin to work without lbaas" 2018-10-21 08:39:59 +00:00
Zuul
220ad9375d Merge "NSXv: Metadata should complete init" 2018-10-21 07:53:17 +00:00
Zuul
7e1c28ce4a Merge "NSX|V3: Add LB status calls validations" 2018-10-19 09:04:55 +00:00
Zuul
f9797c42b7 Merge "Fix admin utils doc formatting" 2018-10-18 08:22:57 +00:00
Kobi Samoray
55a2f90362 NSXv: Metadata should complete init
Metadata initialization should not fail because misconigured edge appliances.

Change-Id: Ib63dc88550f1e7cfd1cf7a9f893052e2f3ed24b9
2018-10-17 18:07:10 +03:00
Zuul
603bd33efd Merge "NSX|V admin utils: Fix rpc method override" 2018-10-17 06:32:22 +00:00
Zuul
22463e2d79 Merge "NSX|V: Improve SG rule service creation" 2018-10-17 05:54:34 +00:00
Zuul
b09ba5dfef Merge "NSX-Policy: Support NSX policy in devstack" 2018-10-17 04:36:54 +00:00
Zuul
9a9437ba7b Merge "NSX|P: remove sys usage from plugin" 2018-10-17 04:36:24 +00:00