55553 Commits

Author SHA1 Message Date
Takashi NATSUME
6901be694c Update contributor guide for Ussuri
Update URLs for Ussuri release.
Remove some outdated descriptions.

Change-Id: Ibc3568483718da9ae4b2cf0568935cb0a86fa9fc
2019-10-07 12:24:39 +09:00
Zuul
2c6542948f Merge "Log CellTimeout traceback in scatter_gather_cells" 2019-10-05 17:41:20 +00:00
Zuul
85b83f972d Merge "nova-net: Migrate 'test_hypervisors' functional tests" 2019-10-05 13:57:13 +00:00
Zuul
6ae7c0731d Merge "nova-net: Migrate 'test_rescue' functional tests" 2019-10-05 13:57:07 +00:00
Zuul
51f6982f34 Merge "nova-net: Migrate 'test_hosts' functional tests" 2019-10-05 11:29:53 +00:00
Zuul
67b8a857d7 Merge "nova-net: Migrate 'test_servers' functional tests" 2019-10-05 02:17:40 +00:00
Zuul
14c9716654 Merge "nova-net: Migrate 'test_server_tags' functional tests" 2019-10-04 23:39:12 +00:00
Zuul
19c8dc5ff8 Merge "Create volume attachment during boot from volume in compute" 2019-10-04 23:39:03 +00:00
Zuul
68ed8d85e1 Merge "Update cells v2 up-call caveats doc" 2019-10-04 23:38:42 +00:00
Zuul
76fcbc300e Merge "Set Instance AZ from Selection AZ during migrate reschedule" 2019-10-04 23:38:35 +00:00
Zuul
d22dcf7e6d Merge "Set Instance AZ from Selection AZ during build reschedule" 2019-10-04 23:38:29 +00:00
Zuul
c7b4048058 Merge "docs: Document global options for nova-manage" 2019-10-04 21:46:55 +00:00
Zuul
7b96366f78 Merge "tests: Correctly mock out security groups in NeutronFixture" 2019-10-04 19:57:34 +00:00
Zuul
080eaeb8dd Merge "nova-net: Migrate 'test_quota_sets' functional tests" 2019-10-04 19:38:17 +00:00
Zuul
5a343eef24 Merge "FUP to I4d181b44494f3b0b04537d5798537831c8fdf400" 2019-10-04 19:38:10 +00:00
Zuul
6a3beec815 Merge "FUP to I30916d8d10d70ce25523fa4961007cedbdfe8ad7" 2019-10-04 17:25:05 +00:00
Zuul
a4d040ea00 Merge "Add Selection.availability_zone field" 2019-10-04 17:24:56 +00:00
Stephen Finucane
ead5eb2507 nova-net: Migrate 'test_hypervisors' functional tests
There's one less service with nova-network disabled, meaning the host
indexes are off by one. We just use a regex sub to avoid needing to
change this.

Change-Id: I5c8496f7287634a0db50f4545c43aeba33b75e6b
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:44:57 +00:00
Stephen Finucane
a6b9ec6c09 nova-net: Migrate 'test_rescue' functional tests
Since we already worked on the NeutronFixture to return security groups
in change Ibbee7fd11c1aa254e399d302adbae69126e98262, this now just
works.

Change-Id: I16215c4bfddf874c9705d4746f911dfeaac624f6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:44:48 +00:00
Stephen Finucane
f5c3ea2f1e nova-net: Migrate 'test_hosts' functional tests
Another case of there being no nova-network host.

Change-Id: I51df797df4e1b77f70fe3dd87374737e650c27d9
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:44:38 +00:00
Stephen Finucane
aabf8cc2d0 nova-net: Migrate 'test_servers' functional tests
Three tests require modification to specifically request an API that our
NeutronFixture provides. The rest just work (TM).

Change-Id: I423b7ab5c98ea9d559caefec0b49271e28a140fa
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:44:30 +00:00
Stephen Finucane
ea8b38950d nova-net: Migrate 'test_server_tags' functional tests
Since we already worked on the NeutronFixture to return security groups
in change Ibbee7fd11c1aa254e399d302adbae69126e98262, this now just
works.

Change-Id: Ia9456055bc4defaefa98cfa82484b9ce5c8792e0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:40:31 +00:00
Stephen Finucane
956555f5ee tests: Correctly mock out security groups in NeutronFixture
For our immediate purposes, this should always return something so we
modify the mock to do just that. That requires some modifications to
existing tests but is otherwise pretty simple. A future change will
address the TODO contained within to properly mock the neutron API.

Change-Id: Ibbee7fd11c1aa254e399d302adbae69126e98262
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:39:51 +00:00
Stephen Finucane
ec0532269c nova-net: Migrate 'test_quota_sets' functional tests
This one is long because network quotas aren't a thing when using
neutron, which means we need to remove them from all the samples.

Change-Id: I9cb2fb1b3817797a53c1331d666750399a7f5f87
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-04 15:22:27 +00:00
Zuul
4d034b79eb Merge "nova-net: Migrate 'test_floating_ip_pools' functional tests" 2019-10-04 10:14:56 +00:00
Zuul
e047cb2fc8 Merge "nova-net: Migrate 'test_availability_zone' functional tests" 2019-10-03 23:51:43 +00:00
Zuul
3231bdde87 Merge "Add reserved schema migrations for Ussuri" 2019-10-03 22:14:36 +00:00
Stephen Finucane
828220d8fe nova-net: Migrate 'test_floating_ip_pools' functional tests
Just mock the correct method.

Change-Id: Ia45ed98dd6d58df8caa93e959734e99d315f06c4
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-03 21:04:52 +00:00
Stephen Finucane
2da2f60fea nova-net: Migrate 'test_availability_zone' functional tests
This is pretty simple - a nova-network host obviously won't be present
in nova-network is disabled.

Change-Id: I4872f0bcaabb8e1cf1aad297a1c55993f2a3fe6e
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-03 21:04:39 +00:00
Matt Riedemann
a683e53a2d FUP to I4d181b44494f3b0b04537d5798537831c8fdf400
This addresses two comments [1][2] from the review.

[1] https://review.opendev.org/#/c/631581/44/nova/conductor/tasks/cross_cell_migrate.py@269
[2] https://review.opendev.org/#/c/631581/44/nova/conductor/tasks/cross_cell_migrate.py@254

Change-Id: I9fda5d7eef52497ed56efd9612f0699da9920914
2019-10-03 16:37:54 -04:00
Matt Riedemann
0140f64076 FUP to I30916d8d10d70ce25523fa4961007cedbdfe8ad7
This addresses a mistake in one of the comments in
the unit test [1].

[1] https://review.opendev.org/#/c/627892/47/nova/tests/unit/conductor/tasks/test_cross_cell_migrate.py@237

Change-Id: Ib7d7681fd87c18dba9b64e036fb5a25213de609d
2019-10-03 16:34:43 -04:00
Zuul
5ee7a7d5da Merge "docs: Update resize doc" 2019-10-03 19:44:57 +00:00
Zuul
94501c86fa Merge "docs: Document how to revert, confirm a cold migration" 2019-10-03 19:44:51 +00:00
Zuul
b8a7500121 Merge "nova-net: Remove explicit 'USE_NEUTRON = True'" 2019-10-03 19:44:43 +00:00
Zuul
867401e575 Merge "nova-net: Use nova-net explicitly in functional tests" 2019-10-03 18:59:48 +00:00
Dan Smith
04e79b5b7e Add reserved schema migrations for Ussuri
Change-Id: Idb28bcae55db19a62b5e8b6dfcfc9fd5b8839e41
2019-10-03 08:47:36 -07:00
Zuul
caffac7bb0 Merge "Add functional regression test for migrate part of bug 1781286" 2019-10-03 09:35:57 +00:00
Zuul
107e5b6efc Merge "Add functional regression test for build part of bug 1781286" 2019-10-03 09:29:50 +00:00
Zuul
6ee5cfb397 Merge "Test heal port allocations in nova-next" 2019-10-03 03:28:30 +00:00
Zuul
071cce0dfe Merge "Restore console proxy deployment info to cells v2 layout doc" 2019-10-02 23:09:57 +00:00
melanie witt
c4d6aabad1 Restore console proxy deployment info to cells v2 layout doc
This information was mistakenly removed when references to the
nova-consoleauth service were removed from the docs in change
Ie96e18ea7762b93b4116b35d7ebcfcbe53c55527.

Closes-Bug: #1846401

Change-Id: I08fa4650d190114775993e8094efbf46b984dfdc
2019-10-02 20:29:52 +00:00
Zuul
6979a6df60 Merge "Use os-brick locking for volume attach and detach" 2019-10-02 20:26:00 +00:00
Zuul
1be6f82328 Merge "Replace 'fake' with a real project ID" 2019-10-02 19:26:42 +00:00
Zuul
5a48cb3fe5 Merge "conf: Remove deprecated 'project_id_regex' opt" 2019-10-02 19:26:36 +00:00
Zuul
8fb4e18f08 Merge "Fix incorrect usages of fake moref in VMware tests" 2019-10-02 18:17:56 +00:00
Zuul
4ef42a89c2 Merge "Handle get_host_availability_zone error during reschedule" 2019-10-02 17:54:15 +00:00
Matt Riedemann
a87fbdda9d Update cells v2 up-call caveats doc
With the fix for bug 1781286 for reschedules during server
create and resize/migrate, we can update the cells v2 docs
saying the up-call issue for that big is now fixed.

Change-Id: I9ff116de8b63c0fbfb880008718b1386178b1d1a
Related-Bug: #1781286
2019-10-02 13:44:23 -04:00
Matt Riedemann
ac85b76178 Set Instance AZ from Selection AZ during migrate reschedule
This builds on change Ia50c5f4dd2204f1cafa669097d1e744479c4d8c8
to use the Selection.availability_zone value when rescheduling
during a resize or cold migrate so that the cell conductor does not
have to make an up-call to the aggregates table in the API DB
which will fail if the cell conductor is not configured to use
the API DB.

The functional test added in Ic6926eecda1f9dd7183d66c67f04f308f6a1799d
is updated to show the failure is gone and we get the AZ from the
Selection object during the reschedule.

For the case that the availability_zone field is not in the Selection
object, there are existing unit tests in
nova.tests.unit.conductor.tasks.test_migrate which will make sure we
are not unconditionally trying to access the Selection.availability_zone
field.

Change-Id: I103d5023d3a3a7c367c7eea7fb103cb8ec52accf
Closes-Bug: #1781286
2019-10-02 13:44:16 -04:00
Matt Riedemann
f1ad0b13e8 Set Instance AZ from Selection AZ during build reschedule
This builds on change Ia50c5f4dd2204f1cafa669097d1e744479c4d8c8
to use the Selection.availability_zone value when rescheduling
during initial server create so that the cell conductor does not
have to make an up-call to the aggregates table in the API DB
which will fail if the cell conductor is not configured to use
the API DB.

The functional test added in I62179d6b93ea1a23c4906477ee19b422bfcb72a2
is updated to show the failure is gone and we get the AZ from the
Selection object during the reschedule.

For the case that the availability_zone field is not in the Selection
object, test_build_reschedule_get_az_error still covers that.

Change-Id: I1f1c25cb4de924a1d6c3a979b758efd736bdbff0
Partial-Bug: #1781286
2019-10-02 13:42:53 -04:00
Matt Riedemann
bcd4584a7c Add Selection.availability_zone field
This adds an availability_zone field to the Selection object,
using the same type and nullable value as the same field in the
Instance object. This will be used to store the service_host
AZ to pass from the superconductor layer to the compute and cell
conductor layer to avoid an up-call to get the host AZ information
from the API DB during a reschedule.

Note that the field is nullable because a host may not be in an
AZ and CONF.default_availability_zone can technically be set to
None though it defaults to "nova".

Change-Id: Ia50c5f4dd2204f1cafa669097d1e744479c4d8c8
Related-Bug: #1781286
2019-10-02 13:39:24 -04:00