Commit Graph

47706 Commits

Author SHA1 Message Date
Jenkins 41ff707efd Merge "doc: Address review comments for main index" 2017-08-21 22:13:46 +00:00
Sean Dague d2d57acbf5 doc: Address review comments for main index
Per comments in I6815958b2533d462a2e5d27e7be57440d9f4f40a and
I5fdafd9f6cf07a19bf86a6343663dad410887dcb.

Part of bp: doc-migration

Change-Id: Iac833503b57386ab91fa86f8c48f0dd8039e5922
2017-08-21 16:18:28 -04:00
Jenkins f34e8421ee Merge "doc: Address review comments for contributor index" 2017-08-21 20:06:01 +00:00
Jenkins 978f7dab32 Merge "Correct statement in api-ref" 2017-08-21 19:43:56 +00:00
Jenkins d385bf3918 Merge "Clarify that vlan feature means nova-network support" 2017-08-21 15:29:41 +00:00
Jenkins 4db37db95b Merge "replace chance with filter scheduler in func tests" 2017-08-21 15:29:19 +00:00
yushangbin 76323b39db Correct statement in api-ref
Change-Id: Idc69876695e04d85df942ea2374d89342b27dc0f
2017-08-21 11:33:34 +08:00
OpenStack Proposal Bot d48ba9873a Updated from global requirements
Change-Id: Idda59f3cf870479b5ca6ea3ab4516306d8e0075d
2017-08-18 15:53:20 +00:00
Jenkins 08ec8a1ad3 Merge "Remove host filter for _cleanup_running_deleted_instances periodic task" 2017-08-17 22:27:18 +00:00
Jenkins d64a292fb3 Merge "Show quota detail when inject file quota exceeds" 2017-08-17 21:34:16 +00:00
Jenkins 9ab057bc3f Merge "Clean up resources at shelve offload" 2017-08-17 17:39:48 +00:00
Jenkins 18f8347275 Merge "test shelve and shelve offload with placement" 2017-08-17 17:21:34 +00:00
Jenkins 5924bea125 Merge "delete allocation of evacuated instance" 2017-08-17 16:50:22 +00:00
Maciej Józefczyk aba3f64932 Remove host filter for _cleanup_running_deleted_instances periodic task
Periodic task _cleanup_running_deleted_instances() looks for orphaned
and running instances on hypervisor that should be deleted.
The problem is it checks if running instance has the same
hypervisor defined as it is in nova database.

In bug #1285000 it has been found that removing instance during
its migration could lead to abandon instance files on destination
host.

This change removes host filter in _running_deleted_instances() to
find also orphaned instances that are running on 'post migration'
destination host.

Change-Id: Idd1b58b85329b8e021eba4bc27f577af1b3338f4
Partial-Bug: #1285000
2017-08-17 17:04:09 +02:00
Jenkins f28da08a1b Merge "Fix contributor documentation" 2017-08-17 04:55:56 +00:00
Jenkins 6824847063 Merge "Make scheduler.utils.merge_resources ignore zero values" 2017-08-17 02:51:44 +00:00
Jenkins c5de320160 Merge "remove extension param and usage" 2017-08-16 21:35:08 +00:00
Jenkins c7153048f3 Merge "Clean up *most* ec2 / euca2ools references" 2017-08-16 19:55:12 +00:00
Jenkins 029c42243f Merge "Add documentation for documentation contributions" 2017-08-16 19:54:35 +00:00
Ken'ichi Ohmichi 547725946b Fix contributor documentation
There are some small comments on the review of
Ib2b49f70c55311195535a5ef250ff555e227fa0a
This is a follow-up for these comments.

Change-Id: I1d2d95a0864578161a34084db31eb460e895c1ec
2017-08-16 10:20:12 -07:00
Jenkins e783c9db95 Merge "Fix reporting inventory for provisioned nodes in the Ironic driver" 2017-08-16 15:23:00 +00:00
Balazs Gibizer cc83335987 replace chance with filter scheduler in func tests
FilterScheduler is the only scheduler driver that properly integrated
with placement api so this patch changes the functional test environment
to use the FilterScheduler instead of the ChanceScheduler.

The amount of vcpu the SmallFakeDriver reports need to be bumped to 2
as during resize to same host the filter scheduler doubles the
allocation on the host. Simply relying on the 16.0 default allocation
ratio does not work as the max_unit of the vcpu does not use the
allocation ratio to avoid that a single server overallocates the cpu.

The only change in unit test is
test_create_instance_with_oversubscribed_cpu which also loads the
SmallFakeDriver and asserts available resources on it.

Change-Id: I12de2e195022593ea2a3e2894f2c3b5226930d4f
2017-08-16 14:42:51 +00:00
Balazs Gibizer 563d71f7cc Clean up resources at shelve offload
Resource tracker doesn't clean up the resources of an instance after
it is offloaded since Ia93168b1560267178059284186fb2b7096c7e81f. So
this patch proposes an explicit cleanup in compute manager.

Closes-Bug: #1710249
Change-Id: Ib16e987d50162a4c11a31692704859b981915bed
2017-08-16 16:39:43 +02:00
Balazs Gibizer 13c39b1e79 test shelve and shelve offload with placement
The following 3 scenarios are covered by this patch:
* boot, shelve, unshelve, delete
* boot, shelve, shelve offload, unshelve on different host, delete
* boot, shelve, shelve offload, unshelve on the same host, delete

The second and the third scenarios are faulty and therefore those
test cases now assert the wrong behavior but contain the expected
behavior as commented out asserts.

Change-Id: Iaf88f8802a456d5e197b65405fa6959a2c514325
Related-Bug: 1710249
2017-08-16 16:13:46 +02:00
Balazs Gibizer 9b9c2c52f3 delete allocation of evacuated instance
After evacuation the instance has allocations on both the source and
the destination computes. This is OK as the source compute is down.
However after the source compute is brought up the allocation from
the source host needs to be cleaned up.

Closes-Bug: #1709902
Change-Id: I0df401a7c91f012fdb25cb0e6b344ca51de8c309
2017-08-16 13:15:24 +02:00
Chris Dent 7c463e2e76 Make scheduler.utils.merge_resources ignore zero values
If merge_resources results in a class of resource with a value of zero,
and that result is then used to form an allocation request, the
allocation will be rejected: the json schema for allocations requires
the value of a resource class to be at least 1.

Therefore merge_resources is changed so that anywhere the value is zero
in the results, that key is popped from the dict. We need to do it in
this way because we are modifying an existing dict, not returning a new
one that we are assembling.

Change-Id: Idea9315d6bce8b341f0c3d2dc0accca6ac259587
Closes-Bug: #1710908
2017-08-16 08:30:46 +00:00
Jenkins fefff942ef Merge "placement: avoid returning duplicated alloc_reqs when no sharing rp" 2017-08-15 21:11:46 +00:00
Jenkins 09ed3b5626 Merge "Remove translation of log messages" 2017-08-15 21:10:02 +00:00
Jenkins 019c917a0e Merge "Fix messages in functional tests" 2017-08-15 20:39:16 +00:00
Jenkins 32513eba26 Merge "Avoid race in test_evacuate" 2017-08-15 20:35:47 +00:00
Jenkins a3aa658aa9 Merge "Enhancement comments on CountableResource" 2017-08-15 20:32:19 +00:00
Jenkins 5cf3d55259 Merge "Update api doc with latest updates in api framework" 2017-08-15 17:28:30 +00:00
Dmitry Tantsur 9ed692bf8c Fix reporting inventory for provisioned nodes in the Ironic driver
Currently we report the full inventory for available nodes, and an empty
inventory for nodes that are deployed to or otherwise unavailable.

Reporting an empty inventory for deployed nodes has 2 bad consequences:
1. Nova tries deleting the inventory for Placement, which fails, because
   the resources are still in use. This results in nasty warnings.
2. When adding a resource class to a deployed node, it does not get into
   inventory, and thus does not get to Placement. It results in an error
   later on, when the custom resource class is not found.

This patch fixes the latter problem by
1. Always reporting the custom resource class for deployed nodes, if present.
2. Reporting VCPUS/memory/disk in exactly the same amount, as it is configured
   in the ironic node's properties.

As a side effect, the warnings are no longer shown for deployed nodes.
They still appear, however, for nodes during cleaning.

Partial-Bug: #1710141
Change-Id: I2fd1e4a95f000da19864e75299afa51527697101
2017-08-15 15:05:34 +02:00
jichenjc 548e93c4b4 Avoid race in test_evacuate
We want the host to be the destination and the status to be active so
use _wait_for_server_parameter to wait on both of those, rather than
waiting only for the server to change to ACTIVE.

Without this, we sometimes see the server go ACTIVE but the host has
not yet changed.

Co-Authored-By: Balazs Gibizer <balazs.gibizer@ericsson.com>
Co-Authored-By: Chris Dent <cdent@anticdent.org>
Change-Id: I273998ebc03f3a832cc44787a5c2396da58e5e25
Closes-Bug: 1710509
2017-08-15 11:00:15 +01:00
ghanshyam 796f3036c2 Update api doc with latest updates in api framework
api.rst has many stale information now as we have done
many changes in api framework specially removal of
stevedore extensions loading and plain routing.

This commit modify this doc to reflect latest information
and remove v2 specific info which are no longer valid.

Note- in next part we will merge api_2.rst in this doc and
show 'adding api method' step by step.

Change-Id: I0628d8fa0b19c3fb09f1896402fc85dcae90916f
2017-08-15 07:02:40 +00:00
Jenkins 3feed3a58a Merge "Always use application/json accept header in report client" 2017-08-14 22:56:36 +00:00
Jenkins 1bdf7991f9 Merge "doc: Extend nfv feature matrix with pinning/NUMA" 2017-08-14 21:24:13 +00:00
Stephen Finucane 8797ed5ac8 doc: Extend nfv feature matrix with pinning/NUMA
Detail these features, including links to the documentation. No tests
are provided as no upstream Tempest tests currently exist.

Change-Id: I1bb3674f35f83e2a33243103a267b4aff70f852e
2017-08-14 20:01:49 +00:00
Jenkins 06e676c461 Merge "[placement] Make placement_api_docs.py failing" 2017-08-14 19:20:04 +00:00
Chris Dent 5905eb7f48 Always use application/json accept header in report client
Always send 'accept: application/json' header when the scheduler
report client talks to placement.

Setting accept ensures that if there are error responses, they will be
formatted as JSON, not HTML. Without the accept header, webob will
choose to send what it thinks is a reasonable default.

Change-Id: I7464e085c8c688d85cdce5aaddcf3bf2e04498ab
Closes-Bug: #1708037
2017-08-14 19:03:45 +00:00
Jenkins 6a5237cc89 Merge "Handle addition of new nodes/instances in ironic flavor migration" 2017-08-14 13:51:06 +00:00
Jenkins 33f3614135 Merge "doc: address review comments in stable-api guide updates" 2017-08-14 08:02:09 +00:00
Takashi NATSUME b6fb9fe3b9 Fix messages in functional tests
They need an extra white space.

TrivialFix
Change-Id: I2385d95169711e8be0b4ee00823bfff7a8ab88d8
2017-08-14 16:13:49 +09:00
Jenkins a1c0b0f06e Merge "[placement] Add api-ref for allocation_candidates" 2017-08-12 06:16:46 +00:00
Jenkins 8038937f83 Merge "test server evacuation with placement" 2017-08-12 06:03:11 +00:00
Jenkins 3102349cb6 Merge "[placement] Add api-ref for RP usages" 2017-08-12 05:30:13 +00:00
EdLeafe c3118b91db Handle addition of new nodes/instances in ironic flavor migration
The original idea for ironic flavor migration was to handle it in
init_host(), so that the code wouldn't run often. But in a situation
like an upgrade with multiple Nova computes handling ironic nodes, this
may not cover all the nodes, so we are moving it to be run whenever the
cache is refreshed, and new nodes for the compute service that have
instances are detected. We also need to cover the cases where an
existing node has a new instance created on it to ensure that that new
instance's flavor is also migrated.

Closes-Bug: #1707021

Change-Id: If0a7af3a958cf3aba95b89b96df5ff6bf252b110
2017-08-11 16:45:32 -04:00
Jenkins 4579d2e557 Merge "doc: add superconductor up-call caveat for cross_az_attach=False" 2017-08-11 15:50:21 +00:00
Jenkins 2918c70e1a Merge "doc: add another up-call caveat for cells v2 for xenapi aggregates" 2017-08-11 15:49:36 +00:00
Jenkins 1b909387b6 Merge "Update reno for stable/pike" 2017-08-11 15:27:49 +00:00