493 Commits

Author SHA1 Message Date
linb
0dcb113c36 Fix duplicate dhcp edge name error
When we detaching subnet from one dhcp edge and deploying a new dhcp edge
for the subnet, there is a chance that we would use a duplicate name for
the new dhcp edge and it would lead to duplicate name error at the
backend. Since the edge name is just a tag that we can easily read and
it would not be used in plugin, the patch fixed the problem by using a
randomly unique edge name.

Change-Id: Ia764ec8c7b54e78ed36f827df4e3025d6e309062
Fixes-bug: #1508633
2015-09-07 10:43:37 +08:00
linb
ad711e5c4b Fix dhcp service edge select/delete conflict
When we delete a subnet from dhcp service edge, we would delete the
edge if this is the last network on the edge. there is a chance here
another creating subnet select the edge for dhcp service. Overlap problem
may happen under this condition. The patch fixed the problem by
ensure nsx-edge-pool lock on create_dhcp_edge_service,
update_dhcp_edge_server and delete_dhcp_edge_service.
Fixes-bug: #1505087

Change-Id: I28b0c28b917a3d98daf9449193ce53e383d15aaa
2015-09-07 10:30:16 +08:00
Jenkins
34aecc4ea0 Merge "Use synchronous call when updating VDR interfaces" 2015-09-06 13:07:18 +00:00
Kobi Samoray
882903f15d Use synchronous call when updating VDR interfaces
While performing an asynchronous call here, we lose track of the results
of the operation.

Change-Id: Ic66944e661550c5e3021ac8b940264d2d7ab6df9
2015-09-06 15:48:30 +03:00
Jenkins
c875bf439b Merge "Handle VDR connected to subnet while not the DGW" 2015-09-06 12:38:42 +00:00
Jenkins
8375abffd9 Merge "Fix dirty DB entries left on deleting vdr with GW" 2015-09-06 12:09:58 +00:00
Jenkins
af18b4ed70 Merge "Fix subnet use vdr dhcp edge for dhcp service" 2015-09-06 12:09:42 +00:00
Jenkins
933bd27dcd Merge "NSXv: ensure that member update are atomic across API workers" 2015-09-06 12:09:24 +00:00
linb
58e92df85f Fix dirty DB entries left on deleting vdr with GW
Neutron allows deleting a router with gw set. For distributed router's
gw, we actually nees a plr and a internal virtualwire to support
implementation. When deleting a distributed router, we needs to verify
and clear all these components.

Change-Id: I7088a90acf1635ea0dbc20bbc6835835df24b07e
Fixes-bug: #1505008
2015-09-06 11:25:28 +00:00
linb
cacf38b3d1 Fix subnet use vdr dhcp edge for dhcp service
VDR dhcp edge is exclusivly for vdr and in concurrency environment,
there is a chance that subnet would use this edge for dhcp service
and lead to errors.
Fixes-bug: #1502401

Change-Id: I66f5e291d760543a38281b9b17783fa6c1ee974b
2015-09-06 11:13:32 +00:00
Kobi Samoray
d027291ebc Fix logging message on VIP update
Logging was broken in updata VIP operation

Change-Id: Iec45cd01c9e810956ddd7c16c1e26517da4ce77a
2015-09-06 11:45:20 +03:00
Gary Kotton
02a1e70263 NSXv: ensure that member update are atomic across API workers
The backend may have raices due to the opertaions occuring in parallel.

Change-Id: Icd52de72e7a4075586b4873ceaffc5c06f828d59
2015-09-06 01:43:06 -07:00
Kobi Samoray
4a5f3e47a1 Handle VDR connected to subnet while not the DGW
When a VDR is attached to a network, but not as a default gateway, it will not
receive metadata requests and therefore should not be attached to the VDR
dedicated DHCP server.

Change-Id: I3707b469842002c7721ecfa144062293e1d198ac
2015-09-05 09:11:56 +00:00
Abhishek Raut
06c21df475 NSX-MH: Fix test_update_subnet_gateway_for_external_net UT
Upstream bug/1317363 caused the vmware-nsx repo to fail on the
test_update_subnet_gateway_for_external_net unit test. This patch
adds a mock to nsxlib backend call for this particular UT and then
goes on to call the super test method.

Change-Id: If3faf6e82d60fedddca8e5781b85161aceb43191
2015-08-18 11:02:02 -07:00
Amey Bhide
3fec496e9e Fix a typo in comments in nsx.ini
Change-Id: Ia46201b7457305a47ec3b7310154f237871f2e9c
2015-09-02 18:56:00 +00:00
Salvatore Orlando
f8431bcf8b Fix NSX-v test and update logic for v6 subnets
This patch fixes NSX-v unit tests to deal with some recent changes
in neutron concerning tests for subnets with prefix delegation (pd).

Also, the logic for creating v6 subnets is updated in order to take
into account pd subnets, and ensuring the CIDR's IP version is
correctly verified.

Change-Id: Iaa428417a816f0436cc637797cbd220059518962
2015-09-02 09:04:56 -07:00
Jenkins
3cc33e583d Merge "Add support for dhcp extra opt to nsx v3 plugin" 2015-08-31 16:11:42 +00:00
Jenkins
fc7fcd711a Merge "Add Model-migrations-sync test" 2015-08-29 00:23:34 +00:00
Amey Bhide
2942517a7d Fix a typo in comments true -> True
Fallout of df460ec6dd221219033a5cc81607b1d07cb06b90

Change-Id: Id3caf1c944789fe055eeb7826de82d49de8732e1
2015-08-28 16:07:47 -07:00
Jenkins
be454f7f57 Merge "Add support to NSXv3 driver to verify certs" 2015-08-28 23:06:37 +00:00
Boden R
f410fe157a Add support for dhcp extra opt to nsx v3 plugin
In addition to dhcp extra opt support, this
commit also enables the dhcp extra opts
unit tests for the nsx v3 plugin.

Change-Id: If9e51fe93bd62fa27abdf6349ddd053fc6e1d325
2015-08-28 15:21:01 -06:00
Abhishek Raut
4fe873d545 Add Model-migrations-sync test
Add test which checks whether database models and alembic migration
scripts are in sync.

Change-Id: I64f2f468c7d6cf6ecb21172781b8126478003f28
Related-bug: #1470678
2015-08-28 17:31:19 +00:00
linb
9c371a965a Fix dhcp bindings missing problems
When adding interface on vdr or update subnet, we would update the
present dhcp edge's static bindings by DB query. But we lose some static
bindings since not elevate the query right to admin right.

Change-Id: Ic23262c48913c9fbda0cc1295908692590ea9ef6
Fixes-bug: #1502401
2015-08-28 16:59:53 +00:00
linb
924eecd968 Fix some routes disappeared on TLR
This happens when mixing metadata and routing. The patch fix the problem
by integrating static, routing and metadata routes whenever update TLR routes

Change-Id: I20e3edb53df6eea24fc3c5670d40a747db5cefed
Fixes-bug: #1500817
2015-08-28 16:03:02 +00:00
Jenkins
6067b28d7d Merge "Nsxv: Fix db out of sync with backend" 2015-08-28 16:01:22 +00:00
linb
427c726d3a Nsxv: Fix db out of sync with backend
When creating a router, sometimes db process succeed but edge failed
at the backend. The patch add exception handle for creating router
and delete the router db if failed at the backend.

Change-Id: I81d683b201d44abeb6049b3b91139f2f898f1777
Fixes-bug: #1497869
2015-08-28 15:18:34 +00:00
Salvatore Orlando
d57eb68630 Fix comment concerning metadata agentless mode
agentless metadata mode works only in NSX-mh 4.1 - nsx.ini
incorrectly states is supported from 4.2 onwards.

Change-Id: I315665ffdd3f36205dba9e02a3a9dfaca12d0faf
2015-08-28 15:16:19 +00:00
Gary Kotton
fe5acd6213 NSXv: validate that router is not None
Check that the value returned is not None and then check the
type

Change-Id: Ib95f18d329de8c46ce5a5547b7b4dab459d3f419
Fixes-Bug: #1500037
2015-08-28 14:01:38 +00:00
Jenkins
b9a69d335a Merge "LBaaS: allow configuration of SOURCE_IP LB method" 2015-08-28 09:14:37 +00:00
Jenkins
eb6f5bca10 Merge "Correct the version checking for rp_filters" 2015-08-28 09:14:31 +00:00
linb
6cb790c15f Fix fip problems for provider router
When tenant creates fip associated with a provider router
(exclusive/distributed), nsxv plugin would report "Router not found"
error due to not elevating context.
Fixes-bug: #1500128

Change-Id: I61b9c4344c712d16b1f4510305224ff4ca7ed7ae
2015-08-28 05:55:59 +00:00
Kobi Samoray
33763d6f06 LBaaS: allow configuration of SOURCE_IP LB method
LBaaS was not configuring the pool appropriately when specifying SOURCE_IP
as LB method.

Change-Id: I2f356cfac79945284bce7e910e722aca59ab66af
2015-08-28 05:34:05 +00:00
Kobi Samoray
b0425e634b Correct the version checking for rp_filters
rp_filter configuration differs between NSXv 6.1.x and 6.2.
As future versions' behaivor is same as 6.2, version checking should change
accordingly.

Change-Id: Id6afcc17deee4fd9741b1cd245bd24918380b73e
2015-08-28 05:33:44 +00:00
linb
67c2b82875 Remove router_type for distributed router
It makes people confused that distributed router is exclusive/shared router.
This patch disable router_type configuration when creating router and remove
router_type when displaying distributed router.
Fixes-bug: #1499248

Change-Id: Ie427dc5fae118567e45b48953e24afbceed6f754
2015-08-28 05:16:39 +00:00
Jenkins
b6c4b34bd1 Merge "LBaaS: up state update for members in ERROR state" 2015-08-28 02:18:12 +00:00
Amey Bhide
df460ec6dd Add support to NSXv3 driver to verify certs
NSXv3 driver was missing certification verification. This patch
add cert verification

DocImpact
Closes-Bug: #1488692

Change-Id: I8892103225b62ccc526e91e688f01f4150b42cc6
2015-08-27 15:11:11 -07:00
Kobi Samoray
1ff79abb02 LBaaS: up state update for members in ERROR state
Members with ERROR state should not have their status updated.

Change-Id: I0c0ef2f6706b01f07efd1c397adc69b3df7f25d6
2015-08-19 20:40:47 +03:00
Jenkins
e05d7c454c Merge "NSXv: prevent host route creation" 2015-08-19 11:17:59 +00:00
Steven Ren
124fe240cf Change the first letter of Log sentence to uppercase
Change-Id: I0a826933c99e14ad1142ce3d91693fa017e35c0e
2015-08-19 00:10:21 -07:00
Kobi Samoray
782a21ebf2 Handle concurrency with LBaaS FW section update
When the LBaaS firewall section is updated concurrently, things may break.
Therefore added a lock to protect this resource from concurrent update.

Change-Id: Ie043bf819d02aed4c4cae5bcceac59d39cecba12
2015-08-19 00:42:40 +00:00
Gary Kotton
fbdea2d3d3 NSXv: fix LBaas logging issue
This causes update_pool to fail.

Change-Id: Id08bd5be4561a325c32faad5842312b31584ae91
Closes-bug: #1486123
2015-08-18 22:22:59 +00:00
Jenkins
3225db15ab Merge "rp_filter status get not supported in NSXv 6.1.x" 2015-08-18 21:25:38 +00:00
Kobi Samoray
0dedd13a2b rp_filter status get not supported in NSXv 6.1.x
Retrieving the current rp_filter settings is required for NSXv 6.2
configuration, but is not supported in NSXv 6.1.x
We should use different configurations for these versions.

Change-Id: Ia5b46a584716655243af57565ae54fa4027d44cd
2015-08-18 23:47:58 +03:00
Abhishek Raut
865fccf9ab NSX: Move DB models as part of core vendor decomposition
As part of core vendor decomposition, this patch moves the models
from neutron repository to vmware-nsx repository.

Change-Id: I99f358af73fd80246aea0c40ecbeb8ce84f5453d
Depends-On: I5d5b0acf34417889c2a449f22b92fd105697d90d
Partial-bug: #1483453
2015-08-18 04:34:42 -07:00
Roey Chen
cdfa26e99c Adding Neutron API extensions
This patch adds plugin specific extensions which were located in
openstack/neutron.

Change-Id: I0706435fd3e7c756956d3a2af1433a8e96feb940
Depends-On: Iff4c4781dd96b10733a98f176cf2f0f4d25cb34f
2015-08-16 08:07:36 -07:00
Abhishek Raut
9054c32d83 NSX: Register migrations at install time
This allows neutron-db-manage to find alembic migrations for
vmware-nsx repo.

Partial-Bug: #1470625
Change-Id: Icf2d68002ec79c75b4897f6b0bee5180570abe67
2015-08-16 04:05:34 -07:00
Jenkins
750d72c09f Merge "NSXv: ensure per process task manager" 2015-08-27 16:32:35 +00:00
Jenkins
4913fab018 Merge "Define VIF_TYPE_DVS in vmware-nsx repo" 2015-08-27 01:33:01 +00:00
Jenkins
c84105ef24 Merge "Cache lb_plugin in the loadbalancer driver" 2015-08-27 01:32:55 +00:00
Jenkins
20cb926bee Merge "Use min and max on IntOpt option types" 2015-08-27 01:28:49 +00:00