Commit Graph

44700 Commits

Author SHA1 Message Date
He Jie Xu 134c19faeb Add query parameters white list for server list/detail
This patch enables a white list for query parameter.
The parameters, which are out of white list, will be ignored.

The sort_key still accepts open value. The later patch will add white
list to it.

Co-Authored-By: Zhenyu Zheng <zhengzhenyu@huawei.com>

partial implement of bp add-whitelist-for-server-list-filter-sort-parameters

Change-Id: I7141eef6a1c85ec6d6e8ee170911572535652978
2017-01-17 15:54:15 +00:00
Diana Clarke a04ffdc940 copy pasta error
This test means to test the 'detail' controller method, not the 'index'
controller method.

Change-Id: I1b922c1c66121182c5203d6ca719abe7056a0785
2017-01-13 16:16:10 -05:00
Jenkins 31774fa228 Merge "Don't bypass cellsv1 replication if cellsv2 maps are in place" 2017-01-13 19:22:44 +00:00
Jenkins 3ec43d81c3 Merge "libvirt: make live migration possible with Virtuozzo" 2017-01-13 12:01:26 +00:00
Jenkins b3346faf2c Merge "Updated from global requirements" 2017-01-13 02:09:11 +00:00
Jenkins 1937e9c19a Merge "Make unit tests work with os-vif 1.4.0" 2017-01-13 00:12:04 +00:00
Jenkins a18f601753 Merge "Make simple_cell_setup fully idempotent" 2017-01-12 22:46:51 +00:00
Jenkins aab5c3f4bb Merge "Add service_token for nova-cinder interaction" 2017-01-12 22:42:03 +00:00
Matt Riedemann d33a2b1cbb Make unit tests work with os-vif 1.4.0
The expected VIFHostUser object in this test is setting the
vif_name field on the object which didn't actually exist until
version 1.1 of that object which is being released in os-vif 1.4.0.

The test passes against os-vif 1.3.0 and VIFHostUser 1.0 today
because the obj_to_primitive() routine will not include anything
that's not a field on the object, which is vif_name in this case.

But when moving to os-vif 1.4.0, we're hitting a failure because
the expected object has vif_name set but the actual object doesn't
because though the vif_name field is defined, it's not actually
used yet in the code, so it's not set in the primitive and our
object comparison fails.

Change-Id: I1c27726d583a41ab69d9eab23e8484e7e047942d
Closes-Bug: #1656025
2017-01-12 13:53:32 -05:00
OpenStack Proposal Bot 9d8ed85b86 Updated from global requirements
Change-Id: I82b1f0ca1128066b3ee63f9ae64aeea7e8918a0c
2017-01-12 17:40:55 +00:00
Jenkins d62783eb06 Merge "Small improvements to placement.rst" 2017-01-12 17:31:29 +00:00
Pavel Gluschak d8d813800c libvirt: make live migration possible with Virtuozzo
Live migration for Libvirt vz driver works the same
way as for qemu. However some migration capabilities
are supported differently:
* Virtuozzo containers doesn't use backing file, so
we shouldn't ensure it exists in pre live migration.
* migrate_disks parameter doesn't make sense for
Virtuozzo, as backend determines whether specific
block device should be migrated or not.
* Passing new domain xml to migration method is not
supported.

Implements: blueprint live-migration-vz-driver
Change-Id: I89ecdef13ad47800abc8a5158f8834e46750b9ea
Signed-off-by: Pavel Gluschak <pglushchak@virtuozzo.com>
2017-01-12 11:04:50 -05:00
Jenkins 38a43e56dd Merge "Better black list for py35 tests" 2017-01-12 15:20:44 +00:00
Chris Dent 112b46254b Small improvements to placement.rst
Minor edits to clarify some points and grammar in the placement
doc. Since I was giving it a close read anyway, I thought it
best to commit changes for the small number of issues that were
apparent.

Change-Id: I8eb94a94a72e3a30fd17479d5168cd6a10f62ed3
2017-01-12 12:41:40 +00:00
Davanum Srinivas a42de05be2 Better black list for py35 tests
gate-nova-tox-db-functional-py35-ubuntu-xenial job has a 100%
failure rate, let's fixup the blacklist and then start working
on the failing tests.

Change-Id: I2b34abc432010b52784f03eff8af669e9c629506
2017-01-12 05:50:55 -05:00
Jenkins aacb8daa2c Merge "Hyper-V: Adds vNUMA implementation" 2017-01-12 09:32:12 +00:00
Jenkins d57ce1dda8 Merge "Remove mox from tests/unit/conductor/tasks/test_live_migrate.py(1)" 2017-01-12 04:51:05 +00:00
Jenkins 146d297643 Merge "Merge v21 view builder for flavor API" 2017-01-12 03:05:05 +00:00
Jenkins 67f725afa6 Merge "Adds Hyper-V OVS ViF driver" 2017-01-12 02:46:45 +00:00
Claudiu Belu 2195e4d684 Hyper-V: Adds vNUMA implementation
vNUMA can improve the performance of workloads running on virtual machines
that are configured with large amounts of memory. This feature is useful
for high-performance NUMA-aware applications, such as database or web
servers.

Returns Hyper-V host NUMA node information during get_available_resource
Adds validation for instances requiring NUMA topology (no asymmetric
topology and no CPU pinning supported).
Creates NUMA aware instances, if necessary.

The compute-cpu-topologies page in the admin-guide will have to be
updated to include Hyper-V NUMA topologies usage and configuration.

DocImpact

Change-Id: Iba2110e95e80b9511698cb7df2963fd218264c8e
Implements: blueprint hyper-v-vnuma-enable
2017-01-11 20:54:56 -05:00
Jenkins 262756881e Merge "XenAPI Remove useless files when use os-xenapi lib" 2017-01-11 23:49:40 +00:00
Jenkins 41d7db135d Merge "xenapi: support the hotplug of a neutron port" 2017-01-11 23:48:43 +00:00
Jenkins c20704fcfc Merge "Make allocate_for_instance take consistent args" 2017-01-11 23:46:05 +00:00
Jenkins 868b93381c Merge "docs - Connect to placement service & retries" 2017-01-11 23:44:33 +00:00
Dan Smith b8e1276ac7 Don't bypass cellsv1 replication if cellsv2 maps are in place
When we start creating the cellsv2 mappings in the cellsv1 devstack
job, we need to avoid that causing us to circumvent the top-level
merged replica of the cell databases. Doing this causes us to return
stale information that has not yet been updated by cells replication.

Change-Id: Icfbb17cce8ce8b03dc8b7b4ffb202db01e5218a6
2017-01-11 14:57:33 -08:00
Gabriel Adrian Samfira 07b6580a16 Adds Hyper-V OVS ViF driver
This branch adds a new ViF driver to the Nova Hyper-V compute driver.
It's responsible for creating the OVS port and the related association
with the Hyper-V virtual switch port. Aside from the openvswitch binaries
it has no other dependencies. Flow rules are added by an external agent
such as OpenDaylight or by a Neutron OVS agent.

The new VIF driver is using os-vif in order to create the OVS ports.

Co-Authored-By: Adelina Tuvenie <atuvenie@cloudbasesolutions.com>
Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

Depends-On: Ia07ade945ca7469b9c23c801a6bfe08135d39466
Depends-On: Ia33e76a28f96fb94e6fdeedc4947b8a353e3d5bc

Implements: blueprint hyper-v-ovs-vif

Change-Id: I4cee52f65968fa503f2c8a2c9a206489719fb15a
2017-01-11 22:22:13 +00:00
Jenkins 00974c65f4 Merge "Make placement client keep trying to connect" 2017-01-11 22:13:30 +00:00
Jenkins 0308c00d0d Merge "Update notification for flavor" 2017-01-11 21:58:06 +00:00
Diana Clarke 3e0daeb4de docs - Connect to placement service & retries
Update the placement docs to reflect the fact that the compute service
will keep attempting to connect to the placement service rather than
just aborting like it used to.

Depends-On: Ie6387afeb239a20d39c00f519e8288f3b3a5e9cb

Change-Id: I6246f6c7318f53c2a917dc320b328fec536506b5
2017-01-11 20:48:59 +00:00
Matt Riedemann 5dedd0b22a xenapi: support the hotplug of a neutron port
Nova already has support for hotplugging neutorn ports in the libvirt
driver. This extends the support to the XenAPI driver, implement
attaching/detaching VIFs

I have made a patch to run releated testcase in xenserver CI
https://review.openstack.org/#/c/416797/

Change-Id: I22f3fe52d07100592015007653c7f8c47c25d22c
Implements: blueprint xenapi-vif-hotplug
2017-01-11 12:24:27 -05:00
Jenkins 799efc7631 Merge "Notifications for flavor operations" 2017-01-11 16:45:50 +00:00
Matt Riedemann e05f678e0a Update notification for flavor
This patch adds versioned notification for flavor update operation.

Implement blueprint: flavor-notifications

Change-Id: I770e3c0c1675bbb7844b13826f3fdc48ad5491a2
2017-01-11 11:16:49 -05:00
Jenkins fd91a25324 Merge "XenAPI Use os-xenapi lib for nova" 2017-01-11 15:52:17 +00:00
Pushkar Umaranikar 9e54b29c4f Add service_token for nova-cinder interaction
Service token will be passed along with user token to communicate with
services when dealing with long running tasks like live migration.

This change addresses adding service_token to the request when nova
requests cinder session to interact with cinder.

Change-Id: I51eb0a8937fa39a2e5dafb1ad915e7113ea61f72
Implements: blueprint use-service-tokens
2017-01-11 15:49:16 +00:00
John Garbutt 938cbf10f3 Make allocate_for_instance take consistent args
Currently the neutron api has different arguments to all the other
network apis. Before we consider adding another argument to this method,
we should first make them all consistent.

blueprint prep-for-network-aware-scheduling-ocata

Change-Id: I42d26f4199d44c7f2e68021014e321a2610a7ee6
2017-01-11 13:58:54 +00:00
Jenkins ee114061ac Merge "Remove mox in unit/api/openstack/test_wsgi.py" 2017-01-11 13:36:54 +00:00
Jenkins 398e11cc44 Merge "Fix a typo in documents" 2017-01-11 13:07:49 +00:00
Jenkins 4762d633bc Merge "Stop using mox in compute/test_server_actions.py" 2017-01-11 08:01:28 +00:00
Jenkins 0f6a01de4f Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
Jenkins 83e62df83c Merge "Enble network.test_neutronv2.TestNeutronv2 on Python 3" 2017-01-11 03:55:40 +00:00
Jenkins 1ea570165d Merge "Add create image functional negative tests" 2017-01-11 02:20:32 +00:00
Jenkins c978e3d643 Merge "Remove mox from api/openstack/compute/test_floating_ip_dns.py" 2017-01-11 02:14:49 +00:00
Huan Xie 21149582ff XenAPI Remove useless files when use os-xenapi lib
XenServer has released os-xenapi lib on pypi, I have made a patch
https://review.openstack.org/#/c/406059/ use os-xenapi in nova
project. In this patch, we just delete those useless files and
folders.

Change-Id: I7cd83a492bae38fd9249f25b95663fa4385b262c
Partially-Implements: blueprint add-os-xenapi-library
2017-01-10 18:06:17 -08:00
Huan Xie 062065ca9e XenAPI Use os-xenapi lib for nova
XenServer has released os-xenapi lib on pypi, this patch is to
use os-xenapi in nova project. In this patch, we only change
the usage of XenAPI to os-xenapi and fix unit tests. In the next
patch, we will delete those unused files.

Partially-Implements: blueprint add-os-xenapi-library

Depends-On: Ic327135b893a77672fd42af919f47f181e932773

Change-Id: I424dfcd507c4b7fbeea5245cc1c234dec01d5781
2017-01-10 17:26:23 -08:00
Jenkins 8e3e9f6d2d Merge "Remove unnecessary attrs from TenantNetworksDeprecationTest" 2017-01-11 00:08:41 +00:00
Dan Smith bbf9b431ee Make placement client keep trying to connect
In Newton, placement is optional and computes will stop even trying
to connect to placement when they encounter an error or missing
configuration. We really want them to keep trying so that enabling
the service pre-upgrade does not require restarting all computes
to start filling data.

This patch removes the auto-disable logic and replaces it with a
limited, but persistent warning to the logs about the required
nature of placement for the upgrade. If we had messaged the upcoming
requirement better, I think we could have been less chatty here.
However, we know that it's not been received, so this patch periodically
re-emits the warning and mentions the upgrade specifically.

Closes-Bug: #1655494
Change-Id: Ie6387afeb239a20d39c00f519e8288f3b3a5e9cb
2017-01-10 15:34:09 -08:00
Jenkins f5d7ea52c6 Merge "move gate hooks to gate/" 2017-01-10 20:08:49 +00:00
Jenkins 379e41f653 Merge "cors: update default configuration in config" 2017-01-10 19:59:50 +00:00
Jenkins da25ec9f7a Merge "Create schema generation for NetworkModel" 2017-01-10 17:29:58 +00:00
Jenkins 6cf6a4ebbb Merge "[placement] fix typo in call to create auth middleware" 2017-01-10 17:25:51 +00:00