Commit Graph

9907 Commits

Author SHA1 Message Date
Jenkins
dcde9c0864 Merge "Tempest: Change parameters to accommodate to tempest master" 2016-09-30 03:31:24 +00:00
Jenkins
a234cddd53 Merge "Tempest: Add back addCleanup_with_wait" 2016-09-29 21:40:41 +00:00
Jenkins
a3b17e2441 Merge "NSX|V3 support different credentials for the NSX manages" 2016-09-29 11:47:00 +00:00
Zhenmei
a624cf560a Tempest: Change parameters to accommodate to tempest master
Change tenant_network_cidr, tenant_network_mask_bits, tenant_network_v6_cidr
,tenant_network_v6_mask_bits to project_network_cidr, project_network_mask_bits,
project_network_v6_cidr, project_network_v6_mask_bits

Change-Id: Ia679b9d855e55d8718a13f54c8284f46778cad67
2016-09-29 01:26:34 +00:00
Adit Sarfaty
51a2c82ff7 Fix broken flow classifier tests
Commit I14702ddcc5c32ba34b5f905a15cd816a69ef2b49 broke our tests
becasue of a missing import.
This is a temporary fix until the import will be added to the sfc
tests base class.

Change-Id: Ib24b346f651d07cc869d95f82d250065f5c3ce0f
2016-09-28 12:10:24 +03:00
Jenkins
172c5d8cb9 Merge "NSX|v: Fix shared router clear gateway" 2016-09-27 22:55:58 +00:00
Jenkins
d1dc00e7a8 Merge "Tempest: Update nsxv3_client to query more than 1k" 2016-09-27 22:33:13 +00:00
Jenkins
ed6010e337 Merge "Updated from global requirements" 2016-09-27 21:52:54 +00:00
Jenkins
54cbf83338 Merge "Tempest: Add Native DHCP UniScale Tests" 2016-09-27 21:05:02 +00:00
Tong Liu
dcb7f8b0b8 Tempest: Update nsxv3_client to query more than 1k
The maximum page size is 1k in nsxv3 API response. Current read
logical resources only return maximum 1k. Change the nsxv3 client
to read all of the logical resources.

The update applies to GET API calls of logical resources.

Change-Id: I4d1f51c900e5ca89f1da8a5df13a535991765720
2016-09-27 20:47:17 +00:00
Jenkins
068ea3efec Merge "Add native DHCP config in nsxv3 sample local.conf" 2016-09-27 20:20:16 +00:00
Jenkins
ea275ffdcd Merge "NSX|v AdminUtil list dhcp-bindings on missing edge" 2016-09-27 20:18:05 +00:00
Tong Liu
f29faf8e98 Tempest: Add Native DHCP UniScale Tests
Add test cases to test NSXv3 native DHCP unidimensional scale
 - Create 100 logical DHCP servers
 - Create 500 logical DHCP servers
 - Create 1k logical DHCP servers
 - Create 2k logical DHCP servers
 - Create 4k logical DHCP servers
 - Create 100 DHCP static bindings per network
 - Create 256 DHCP static bindings per network
 - Create 512 DHCP static bindings per network

Change-Id: Ib2045fe078202aca70f3389138af785a77e950c1
2016-09-27 19:09:12 +00:00
Tong Liu
ac556ffc75 Add native DHCP config in nsxv3 sample local.conf
Add the config options in sample local.conf file to support native
DHCP & metadata proxy.

Change-Id: I32ee4b85216aa94fa0e2624e35c765764f86f595
2016-09-27 19:00:24 +00:00
OpenStack Proposal Bot
eae4e06c46 Updated from global requirements
Change-Id: I57e0186cbc7b449841f27a8275da2a1854979498
2016-09-27 17:05:24 +00:00
Adit Sarfaty
58a283e913 NSX|v AdminUtil list dhcp-bindings on missing edge
'nsxadmin -r dhcp-binding -o list' crashed when the edge was missing
from the backed.

Change-Id: Ief85a48b064b89494e3abea38c71207c6e387747
2016-09-27 09:57:19 +03:00
Shih-Hao Li
55d2a30ee7 NSXv3: Fix attachment setting during create_port and update_port
This patch adds logic to distinguish when to reset or
make no change on the attachment in the backend during
create_port and update_port.

Change-Id: I46017a9756d807267b489e32bfdd20b4a2f65800
2016-09-26 19:20:59 -07:00
Tong Liu
e5c7e0b08c Tempest: Add back addCleanup_with_wait
The addCleanup_with_wait method has been deleted from upstream.
(Ief79a6cee55ff5faf64465f6cbc84bec8253a3e1)
A few of scenario tests failed because of this. Migrate this
function back to our internal manager_topo_deployment class.

Change-Id: Ia0a491df7ca93249e31ac014ba38e55c2c2289f8
2016-09-26 17:22:36 +00:00
Adit Sarfaty
cd5e0823c9 NSX|v: Fix shared router clear gateway
When a shared router is the only router on an edge, and the gateway
is cleared, we should remove the static routes and default gateway
before removing the interface, or else the backend will fail because
the default gateway is illegal.

Change-Id: I7d1ff6e30d3e51f84d76292b76e550792c19315a
2016-09-26 11:31:55 +03:00
Jenkins
9959d18f44 Merge "NSXv3: Fix problem when reset lport attachment" 2016-09-25 23:17:16 +00:00
Abhishek Raut
72504eb0e6 Remove deprecation warnings
Switch to neutron-lib for models.

Change-Id: Ie0fd2b2bd33ea331bf4a273e643bcfb1241e36af
2016-09-24 20:36:17 +00:00
Gary Kotton
49d3f11b8c Fix broken unit tests
Address some broken IPv6 unit tests. These broke the gate. They
will need to be addressed when the plugin supports IPv6 for the
NSX|V.

Change-Id: Ide0b7a13f5104c998a19d06eaa851c9abe044edb
2016-09-24 13:32:50 -07:00
Jenkins
26cf7c125e Merge "Add api-ref in MD format" 2016-09-23 00:52:34 +00:00
Shih-Hao Li
44eaf79647 NSXv3: Fix problem when reset lport attachment
When the attachment is reset on a neutron port
(for example, a VM is deleted on a pre-created neutron port),
the attachment type/id will be reset on the corresponding
logical port. But currently the plugin doesn't do it
because it skips passing the attachment attribute if it is None.

Change-Id: Iacccf6dce1780c0cb6bc8332e065482d699e5cb9
2016-09-22 18:43:56 +00:00
Jenkins
06b131c9d9 Merge "Update reno for stable/newton" 2016-09-22 13:52:57 +00:00
Jenkins
871f0834f2 Merge "NSX|v fix router migrate with metadata" 2016-09-22 13:52:51 +00:00
Jenkins
9c2dd6451f Merge "TrivialFix: typos in cli.py" 2016-09-22 12:04:05 +00:00
Kobi Samoray
3cd1db9e9d TrivialFix: typos in cli.py
Change-Id: I324b621e4d12766ea56120953ce3e83c6d987b51
2016-09-22 09:25:28 +03:00
Kobi Samoray
2225d5c9c4 TrivialFix: typos in client.py
Change-Id: Iabf8e505bc4224b5c27fdd8d1a8d98df1702207c
2016-09-22 09:16:13 +03:00
Jenkins
c1680821a8 Merge "Tag the alembic migration revisions for Newton" 2016-09-22 05:54:08 +00:00
Jenkins
ffe2d556c3 Merge "NSX|V3: ensure that octavia ports receive DHCP addresses" 2016-09-22 05:48:13 +00:00
Adit Sarfaty
367d511068 NSX|V3 support different credentials for the NSX manages
In case of multiple NSX managers in the nsx_api_managers configuration,
it is now possible to configure a different username/password/ca_file for each
of the managers.
The nsxv3 configuration parameters ca_file, nsx_api_user & nsx_api_password are
now lists.
If they contain only 1 value, it will be used for all the managers.
Else, the order of of the values is expected to match the order of the
nsx_api_managers.

Change-Id: I31b955c9ee449126acde96de48a1887b94c38e29
2016-09-22 08:18:07 +03:00
Abhishek Raut
6fbf2d1031 Tag the alembic migration revisions for Newton
This allows the database to be upgraded with the command:
  neutron-db-manage upgrade newton

Change-Id: I7a6f329a35b959eb699ecb9ff0b18e00ce50b8dd
2016-09-21 23:21:42 +00:00
Jenkins
cdf7ab939c Merge "NSXv: Change metadata port when router is deleted" 2016-09-21 13:06:14 +00:00
Boden R
32d9a3023f Add api-ref in MD format
This commit creates a vmware-nsx REST API extension
API reference document in github flavored markdown
format. The API ref herein only includes extensions for
NSX-v and NSX-v3 as MH will be deprecated.

To view this document as-is rendered see:
https://github.com/bodenr/vmware-nsx/blob/api-ref/api-ref/rest.md

Moving forward we can keep this doc in sync with our
plugins so that consumers can just view the git tag
on github to see the related api ref for their release version
of the plugin. e.g.
https://github.com/openstack/vmware-nsx/tree/stable/{REL}/api-ref/rest.md

Closes-Bug: #1601861

Change-Id: Id2af02fc629c398835ea216cfc19d8bbf583fa4c
2016-09-21 06:59:53 -06:00
Kobi Samoray
afd2a93f89 NSXv: Change metadata port when router is deleted
When a shared router or a DHCP edge is removed, a metadata network
port might be associated with it. If so - we should associate with
a different router_id which resides on the same edge.

Change-Id: Idb2aa73dd44bed25c58d9d2294a48520fbb4ac66
2016-09-21 12:10:07 +00:00
Adit Sarfaty
e66f086f4c NSX|v fix router migrate with metadata
When a shared router is updated to become an exclusive router,
the metadata interface should also be created (if supported)

Change-Id: I515641055b74b4b1b7e75a6c2b48ae5f2ece2531
2016-09-21 10:05:10 +03:00
OpenStack Proposal Bot
58971c3d6d Updated from global requirements
Change-Id: I4a4fed9388172befa00a17497f8fd1b49523faf4
2016-09-21 06:50:27 +00:00
Shih-Hao Li
cb2ffa5473 NSX|V3: ensure that octavia ports receive DHCP addresses
Change-Id: Ibca37f98e1dae95a37c31123c38b7cd13908c16a
2016-09-20 18:35:55 +00:00
Jenkins
b6decdd9be Merge "NSX|V3: ensure Mac learning has port security disabled" 2016-09-20 05:55:34 +00:00
Jenkins
d21954ff24 Merge "NSX|V: make DHCP DB binding creation more robust" 2016-09-20 01:25:22 +00:00
Jenkins
3583849f1f Merge "NSX|V3: Fix update_subnet issue" 2016-09-19 17:17:06 +00:00
Shih-Hao Li
21def80a3a NSX|V3: Fix update_subnet issue
Fix the problem where the change of dns_servers or gateway_ip
during update_subnet is not pushed to NSX backend.

Change-Id: I79af8d7ac593acad0d129b0252ece82372ab5440
2016-09-19 15:38:05 +00:00
Shih-Hao Li
6d6033010a NSX|V3: Delete DHCP binding if nova instance is deleted
When a nova instance is deleted without removing the associated
neutron port, the device_owner of the neutron port will be reset.
Thus the plugin still needs to clean the old DHCP binding.

Change-Id: Ie0e5f59a7ee2dfcc7238d6982ff6aa32e34520d5
2016-09-19 15:31:44 +00:00
Jenkins
3dad033566 Merge "NSXv: DHCP reconfigure on VDR interface removal" 2016-09-19 09:38:12 +00:00
Jenkins
bb2288112e Merge "NSXv: create worker pool on new context" 2016-09-19 06:56:52 +00:00
Kobi Samoray
2060fac587 NSXv: DHCP reconfigure on VDR interface removal
While removing the last DHCP-enabled subnet interface from VDR, a
regular DHCP edge should be attached to the subnet's network.

Change-Id: Ie87fb708c561fa54a457f006f60d407a369dd0bf
2016-09-19 06:37:40 +00:00
Jenkins
1ecf181ca9 Merge "NSX|v: do not resize a router if not necessary" 2016-09-19 05:56:44 +00:00
Jenkins
c250599aa5 Merge "NSX|V fix router_binding az default value after migration" 2016-09-19 05:56:33 +00:00
Jenkins
438792f8b1 Merge "[Admin-Utils] NSX-V3 upgrade vm ports after migration" 2016-09-19 05:56:27 +00:00