Commit Graph

51494 Commits

Author SHA1 Message Date
Zuul 4ea64cad3f Merge "manage: Remove dead code" 2018-07-02 00:42:58 +00:00
Zuul 54343e9c7e Merge "[placement] fix allocation handler docstring typo" 2018-06-29 23:25:47 +00:00
Zuul da80d8af73 Merge "Fix placement incompatible with webob 1.7" 2018-06-29 23:20:51 +00:00
Zuul 86cefcf55d Merge "Remove mox in nova/tests/unit/virt/xenapi/stubs.py" 2018-06-29 23:13:42 +00:00
Zuul 9b62aeb970 Merge "Merge server create schema for config drive extension" 2018-06-29 18:10:32 +00:00
Zuul bd7253a9d9 Merge "Merge server create schema for BDM v2 extension" 2018-06-29 18:10:20 +00:00
Zuul a7a4f4a367 Merge "Mention PowerVM support of config drive" 2018-06-29 18:10:09 +00:00
Zuul a3ef0e3f23 Merge "Match ComputeNode.uuid to ironic node uuid in RT" 2018-06-29 18:10:00 +00:00
Zuul 44c8aec3f0 Merge "Mention nova-status upgrade check CLI in upgrade doc" 2018-06-29 15:45:58 +00:00
Zuul b2f4ee1bbf Merge "Remove unused DB API instance_group_delete method" 2018-06-29 15:45:50 +00:00
Zuul bd8a14b26c Merge "Fix CLI docs for nova-manage api_db commands" 2018-06-29 15:45:22 +00:00
Zuul 9d2f0ed810 Merge "Remove file injection from config drive sample docs" 2018-06-29 15:45:13 +00:00
Zuul a95153c053 Merge "tox: Document and dedupe mostly everything" 2018-06-29 15:45:05 +00:00
Zuul 37b9b93bc7 Merge "trivial: Remove 'tools/releasenotes_tox.sh'" 2018-06-29 15:44:56 +00:00
Zuul fda71db9aa Merge "Fix nits in placement-return-all-resources series" 2018-06-29 15:44:49 +00:00
Chris Dent e30b6a770a [placement] fix allocation handler docstring typo
Review of I4b69ddaa6dbb66f977c5dad2d508cac3192d19d4 identified a
non-blocking type. This fixes it.

TrivialFix

Change-Id: I073bd537a5756c6693e82237d4d1f9c0c3992395
2018-06-29 16:32:32 +01:00
Zuul 162e55d07e Merge "Add microversion for nested allocation candidate" 2018-06-29 15:03:02 +00:00
Sylvain Bauza c4e0ad1433 Fix placement incompatible with webob 1.7
In Ie4d81fa178b3ed6b2a7b450b4978009486f07810 we started using a new WebOb API
for introspecting headers but since this new API isn't supported by older
versions than 1.8, we need to only accept 1.8.1 or 1.8.2 for Nova
(because 1.8.0 was having a bug fixed by 1.8.1 at least).

Change-Id: I345f372815aef5ac0fb6fc607812ce81587734bf
Closes-Bug: #1773225
2018-06-29 16:55:03 +02:00
Zuul d71bc35597 Merge "libvirt: Add missing encryption_secret_uuid tests for pre_live_migration" 2018-06-29 13:17:04 +00:00
Zuul 3f8b30e261 Merge "[placement] Fix capacity tracking in POST /allocations" 2018-06-29 13:16:19 +00:00
Zuul afb3949bb3 Merge "[placement] Extract create_allocation_list" 2018-06-29 13:16:11 +00:00
Stephen Finucane 2337aa5a7f manage: Remove dead code
There is code here to handle 'CONF.network_manager' being set to
'NeutronManager'. This is a long-dead pattern, having been replaced by
the 'use_neutron' option, and would never be called given that the
'validate_network_plugin' decorator ensures the functions can only be
used for nova-network. Just remove it.

Change-Id: I1dbfe3a0d9ef15176b17c7a959c68c6b8be879fa
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-06-29 11:46:43 +01:00
Zuul d68b9113a5 Merge "Use ironic-tempest-dsvm-ipa-wholedisk-bios-agent_ipmitool-tinyipa in tree" 2018-06-29 09:08:40 +00:00
Zuul 451eec1ce1 Merge "Merge server create schema for legacy BDM extension" 2018-06-29 08:52:05 +00:00
Zuul 60c348386a Merge "libvirt: Fix the rescue race for vGPU instances" 2018-06-29 08:51:59 +00:00
Tetsuro Nakamura 4240fa7287 Fix nits in placement-return-all-resources series
Addresses the following minor/nonblocking review comments from earlier
in this series:

https://review.openstack.org/#/c/558045/27/nova/api/openstack/placement/handlers/allocation_candidate.py@120
https://review.openstack.org/#/c/558045/27/nova/api/openstack/placement/handlers/allocation_candidate.py@168
https://review.openstack.org/#/c/565487/31/nova/api/openstack/placement/handlers/allocation_candidate.py@146

Change-Id: I2da96671f9008c9622f92b23f751437ad9a74014
2018-06-29 17:46:44 +09:00
Tetsuro Nakamura 5b4aa78459 Add microversion for nested allocation candidate
This patch adds a microversion with a release note for allocation
candidates with nested resource provider trees.

From now on we support allocation candidates with nested resource
providers with the following features.

1) ``GET /allocation_candidates`` is aware of nested providers.
   Namely, when provider trees are present, ``allocation_requests``
   in the response of ``GET /allocation_candidates`` can include
   allocations on combinations of multiple resource providers
   in the same tree.
2) ``root_provider_uuid`` and ``parent_provider_uuid`` fields are
    added to ``provider_summaries`` in the response of
   ``GET /allocation_candidates``.

Change-Id: I6cecb25c6c16cecc23d4008474d150b1f15f7d8a
Blueprint: nested-resource-providers-allocation-candidates
2018-06-29 17:38:10 +09:00
Zuul 46ef5738ad Merge "placement: s/None/null/ in consumer conflict msg" 2018-06-29 07:23:21 +00:00
Zuul d7614751ce Merge "Powervm configuration cleanup" 2018-06-29 07:23:12 +00:00
Zuul d9fe461f53 Merge "Test alloc_cands with indirectly sharing RPs" 2018-06-29 07:23:05 +00:00
Zuul 89baac0310 Merge "Update scheduler to use image-traits" 2018-06-29 07:18:55 +00:00
Zuul b2760300b8 Merge "conf: libvirt: Make /dev/urandom the default for 'rng_dev_path'" 2018-06-29 07:18:49 +00:00
Zuul 4c9f63463a Merge "update the description of hypervisor statistics response" 2018-06-29 05:44:47 +00:00
Zuul 73f71310a3 Merge "Use nova.test.TestingException" 2018-06-29 05:44:26 +00:00
Zuul 81a3bd2aec Merge "Downgrade overquota warning" 2018-06-29 05:44:02 +00:00
Zuul 422b983124 Merge "sync_guest_time: use the proper errno" 2018-06-29 05:43:53 +00:00
Zuul d64a9a6e4b Merge "VMware: remove reading resourcePool data" 2018-06-29 05:43:44 +00:00
Zuul 4dbf0a8d50 Merge "Skip ServerShowV247Test.test_update_rebuild_list_server in nova-cells-v1 job" 2018-06-29 02:44:42 +00:00
Sylvain Bauza 1c59397e09 libvirt: Fix the rescue race for vGPU instances
When rescuing an instance having a vGPU, we were not using the vGPU.
There would then be a race condition during the rescue where the vGPU
could be passed to another instance.
Instead, we should just make sure the vGPU would also be in the rescued
instance.

Change-Id: I7150e15694bb149ae67da37b5e43b6ea7507fe82
Closes-bug: #1762688
2018-06-28 18:41:15 -04:00
Matt Riedemann 39d4577521 Remove file injection from config drive sample docs
File injection is disabled by default (see
[libvirt]/inject_partition) and deprecated
in the API since microversion 2.57. We
don't really want people relying on file
injection, so this removes it from the
config drive docs. While in here, also
replace the 'nova boot' command mention
with 'openstack server create' since that
is the command used through the examples.

Change-Id: I4521eca6f6cbd4f8cd6dad48ab1d40a1b136bf73
2018-06-28 12:59:34 -04:00
Matt Riedemann 17b3bae64c Use ironic-tempest-dsvm-ipa-wholedisk-bios-agent_ipmitool-tinyipa in tree
ironic-tempest-dsvm-ipa-wholedisk-bios-agent_ipmitool-tinyipa is
defined in the ironic repo but nova uses it because it's defined
in the project-config repo with it's own irrelevant-files list.
Due to a recent change in zuul [1], the definition from project-config
overrides the irrelevant-files from the job definition in ironic and
results in us running this job on things like docs-only changes in
nova, which is not awesome.

This change moves the job usage in-tree from project-config and updates
the irrelevant-files list to match nova-dsvm-base.

Since project-config is branchless, we'll have to backport this in-tree
change to nova's stable branches to continue running this job on nova
stable branches once the override is removed from project-config.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-June/131304.html

Change-Id: I9435fe84c8dc8a6f35ffb195ddbf71ca34edb242
Closes-Bug: #1776981
2018-06-28 12:37:19 -04:00
Eric Fried 5c0f9379b5 Mention PowerVM support of config drive
...in the config-drive user doc.

Change-Id: Idc1b656a0aa5cd442fae3be895369fa71c86fc99
Closes-Bug: #1779159
2018-06-28 15:44:45 +00:00
Stephen Finucane 7601b3bb7f tox: Document and dedupe mostly everything
Take advantage of tox's expressiveness to avoid duplication wherever
possible and document the many targets we have.

Change-Id: I33675b7eedcffcebf1115dd48757874cb73f3e2f
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-06-28 15:24:17 +01:00
Zuul f5d0d85285 Merge "Fix the duplicated config options of api_database and placement_database" 2018-06-28 14:14:50 +00:00
Zuul 6af34884bb Merge "Remove compatibility code for instance groups" 2018-06-28 14:14:41 +00:00
Stephen Finucane de4ab973d5 trivial: Remove 'tools/releasenotes_tox.sh'
This is not needed since reno 2.1.0 (commit f8fc8f97) [1].

[1] https://github.com/openstack/reno/commit/f8fc8f97ff20026582742e3e7838cdd0ed5cad68

Change-Id: I66ba0e0835970b965acce00ba69d143bd4471037
2018-06-28 15:06:46 +01:00
Zuul d28a0b5f84 Merge "Mention server status in api-ref when rebuild" 2018-06-28 12:23:50 +00:00
Zuul de7055bfa9 Merge "Make nova-lvm run in check on libvirt changes and compute API tests" 2018-06-28 12:23:34 +00:00
Takashi NATSUME bdc1842e86 Use nova.test.TestingException
In nova/test.py,
the following exception class for testing is defined.

  class TestingException(Exception):
      pass

It is not necessary to define an exception class for testing
in each unit test files.

TrivialFix
Change-Id: Ia3ca8a328794d0bfafd0a2b91251261fc87d6d4c
2018-06-28 11:57:57 +00:00
Lee Yarwood 4c0fea8edc libvirt: Add missing encryption_secret_uuid tests for pre_live_migration
This change updates the recently mox to mock converted pre LM tests for
volume backed instances to assert that a secret UUID is stashed on the
destination when connecting encrypted volumes.

is_shared_instance_path is now also set to True within these volume
based tests to avoid asserting the unrelated behaviour of creating the
instance directory during pre_live_migration.

Change-Id: I3edebfe436b3dd5ba6a7e4f0b07daa2447d4dfa2
2018-06-28 12:54:16 +01:00