55625 Commits

Author SHA1 Message Date
Takashi NATSUME
9a5da92524 api-guide: Fix available info in handling down cells
Add the 'security_groups' parameter as available infomation
in the "List Servers Detailed" API (GET /servers/detail)
when there is a down cell.

Change-Id: I9653a46478c80b343a5a5f8d6b1607688538b1d5
CLoses-Bug: #1846559
2019-10-10 21:28:02 +00:00
Zuul
27818dd607 Merge "Pull up compute node queries to init_host" 2019-10-10 00:53:01 +00:00
Zuul
08273d2a9f Merge "Cache image GETs for multi-create/multi-BDM requests" 2019-10-09 23:32:40 +00:00
Zuul
05165d22ff Merge "Add boot from volume functional test with a huge request" 2019-10-09 22:49:29 +00:00
Zuul
006dfc48e6 Merge "Avoid error state for recovered instances after failed migrations" 2019-10-09 22:49:21 +00:00
Zuul
5345f9acb7 Merge "Remove @safe_connect from _delete_provider" 2019-10-09 22:49:12 +00:00
Zuul
de5f7a69a2 Merge "Remove Rocky compute compat checks for live migration with port bindings" 2019-10-09 22:26:17 +00:00
Zuul
a8e290879b Merge "Filter out alembic logs below WARNING in tests" 2019-10-09 21:07:05 +00:00
Zuul
fb3fb10c0e Merge "Refine comments about move_allocations" 2019-10-09 21:06:59 +00:00
Zuul
b35f102d93 Merge "Remove @safe_connect from put_allocations" 2019-10-09 18:33:21 +00:00
Zuul
9a9d412ef8 Merge "tox: Stop overriding the 'install_command'" 2019-10-09 17:15:08 +00:00
Zuul
1102efaddd Merge "tox: Use common 'command' definition for unit tests" 2019-10-09 17:15:01 +00:00
Zuul
80574838f6 Merge "trivial: Remove unused API sample template" 2019-10-09 17:14:54 +00:00
Matt Riedemann
2d84a564fb Cache image GETs for multi-create/multi-BDM requests
This builds on change I1233fbbaebd1750f572432bf74759b94408a17e3 which
added a functional test to create 10 servers with 255 BDMs each using
the two images. That scenario results in 2551 calls to the image service
to get the images. While an unrealistic scenario, it shows how
inefficient this can be even in a simple multi-create request where
each server has one or more BDMs that are using one or more of the
same images.

This change adds a simple cache that is used while processing the list
of instances to create and the list of BDMs per instance that are using
a source_type of 'image' to validate the image. This drops the image GET
calls in the functional test from 2551 to 3.

The functional test verifies the cache is being used properly. Existing
unit tests are updated for the method signature changes. Note that some
API controller tests were mocking a bit too deep and ignoring all of the
parameters to the _validate_bdm mock so rather than continue that pattern
the assertions are just changed to assert_called_once() since the tests
clearly don't care about the actual parameters passed to that method.

Change-Id: Ibd51d6fc2d4c9fd142ba17f2f87214bb62f72440
Closes-Bug: #1846777
2019-10-09 11:52:33 -04:00
Matt Riedemann
123357e35b Add boot from volume functional test with a huge request
While discussing rate limiting, or the lack thereof, in the API
the point came up that it's possible to create multiple servers
with a large number of BDMs in a single request and it's not
rate limited nor is there any optimization in the API for not
GETing the same image in the request more than once.

This adds a functional test to demonstrate by wrapping the image
API GET calls and asserting they are not cached within the request.

Related-Bug: #1846777

Change-Id: I1233fbbaebd1750f572432bf74759b94408a17e3
2019-10-09 11:52:33 -04:00
Zuul
b96b385a34 Merge "doc: link to user/index from main home page" 2019-10-09 09:55:36 +00:00
Zuul
2870c2e8cf Merge "doc: link to user/availability-zones from user home page" 2019-10-09 09:55:30 +00:00
Zuul
2a662b20b4 Merge "docs: Add redirects for '/user/aggregates'" 2019-10-09 09:55:24 +00:00
Zuul
51966cdf72 Merge "Skip functional test jobs for doc redirect changes" 2019-10-09 09:55:18 +00:00
Zuul
196a32d462 Merge "api-ref: Fix security groups parameters" 2019-10-09 00:03:53 +00:00
Matt Riedemann
ec87830daf doc: link to user/index from main home page
We don't have a direct link from the main home page to the
user docs so this adds one.

Change-Id: I377f65ce78977be943d7a84b075623fd11613a99
2019-10-08 16:32:47 -04:00
Zuul
14f4a0b16b Merge "doc: fix formatting in mitigation-for-Intel-MDS-security-flaws" 2019-10-08 20:31:05 +00:00
Matt Riedemann
2e73dc2015 doc: link to user/availability-zones from user home page
This is a follow up to [1]. The user docs home page has a link
to the admin AZ guide but not a direct link to the user AZ guide
so that is added here.

[1] https://review.opendev.org/#/c/667133/10/doc/source/user/index.rst@75

Change-Id: I4acb120d2e347a43abc584107c7a19bb422af384
2019-10-08 16:30:17 -04:00
Zuul
89430c574f Merge "nova-net: Make even more nova-net stuff optional" 2019-10-08 19:33:58 +00:00
Stephen Finucane
93efca826f docs: Add redirects for '/user/aggregates'
These were missed in change If847b0085dbfb4c813d4a8d14d99346f8252bc19.

Change-Id: Iad18f355a20261313ddb3dafd302ed66ebca64bc
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-08 16:46:09 +00:00
Matt Riedemann
3f3114c94e Skip functional test jobs for doc redirect changes
Changes to docs to handle redirects like [1] should not
trigger functional jobs. Note that functional-irrelevant-files
does not just blindly ignore all changes to the docs/* path
because we do need to run functional test jobs for changes to
doc/notification_samples.

[1] Iad18f355a20261313ddb3dafd302ed66ebca64bc

Change-Id: I4c2cb97de1fc8e1ed80fa22680621fd4f6390cfd
2019-10-08 12:43:59 -04:00
Matt Riedemann
1ed2b2ac53 doc: fix formatting in mitigation-for-Intel-MDS-security-flaws
The bullet list was indented too far.

Change-Id: I615c20a6b2b54795dfbd991b0a51dbaaac543f36
2019-10-08 12:16:35 -04:00
Zuul
aebf8d36b8 Merge "trivial: Make it obvious where we're getting our names from" 2019-10-08 16:07:14 +00:00
Zuul
a06c841421 Merge "nova-net: Stop mocking the instance network cache" 2019-10-08 16:07:03 +00:00
Zuul
671298448e Merge "trivial: Change name of network provided by NeutronFixture" 2019-10-08 16:06:56 +00:00
Zuul
1983d76d6e Merge "docs: Remove a whole load of unused images, most remainder" 2019-10-08 16:06:49 +00:00
Zuul
43248b4c92 Merge "doc: Improve PDF document structure" 2019-10-08 16:06:39 +00:00
Zuul
e6d2698d77 Merge "compute: refactor volume bdm rollback error handling" 2019-10-08 16:06:33 +00:00
Stephen Finucane
b6a67faeb6 nova-net: Make even more nova-net stuff optional
We only need this mocking if we're using nova-network.

Change-Id: Ic22f17764fa3ed3885a68c5928bfd56c3f81f2a7
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-08 15:28:11 +00:00
Balazs Gibizer
afe267590f Pull up compute node queries to init_host
Both _destroy_evacuated_instances and
_error_out_instances_whose_build_was_interrupted queries compute nodes
from the db during init_host. This patch does the query once in
init_host instead and pass down the necessary data to both calls.

Change-Id: I48f3bce6379d6e684d07180f7d7770748319e369
2019-10-08 16:19:26 +02:00
Zuul
7058fac53b Merge "Update contributor guide for Ussuri" 2019-10-08 12:14:39 +00:00
Balazs Gibizer
28b88eda2e Refine comments about move_allocations
Since Ie991d4b53e9bb5e7ec26da99219178ab7695abf6  move_allocation
handles more than one resource provider, but still does not handle
sharing providers. This patch refines the code comments accordingly.

Change-Id: I7884361e32a8c9765256c0a9b16e54e3f9a82084
2019-10-08 14:12:07 +02:00
Lee Yarwood
9524a5a1b5 compute: refactor volume bdm rollback error handling
Previously any exception while rolling back the connection_info and
attachment_id of volume bdms would result in the overall attempt to
rollback a LM failing. This change refactors this specific bdm rollback
logic into two self contained methods that ignore by default errors
where possible to allow the LM rollback attempt to continue.

Change-Id: I6bc73e8c8f98d9955f33f309beb8a7c56981b553
2019-10-08 11:55:07 +01:00
Balazs Gibizer
15c71ccf8e Remove @safe_connect from put_allocations
The only user of put_allocations of the report client is
heal_allocations. It is easy to remove the @safe_connect decorator
from put_allocations as heal_allocations already handles
PlacementAPIConnectFailure exception.

This patch changes heal_allocations to raise
PlacementAPIConnectFailure instead of relying on @safe_connect.

Change-Id: I6b3f61525883a019703cf564e693516b3b61febc
2019-10-08 12:43:12 +02:00
Akihiro Motoki
152d5c359c doc: Improve PDF document structure
This is a follow-up patch for https://review.opendev.org/676730.

In the TOC of the current PDF file [1], most contents related to
user and admin guides are located under "For Contributors" section.
This is weird. It happens because the latex builder constructs
the document tree based on "toctree" directives even though they
are marked as "hidden".

This commit reorganizes "toctree" per section.
The "toctree" directives must be placed at the end of
individual sections. Otherwise, content of a last section and
content just after "toctree" directive are concatenated
into a same section in the rendered LaTeX document.

This commit also improves the following as well:

* Specify "openany" as "extraclassoptions" to skip blank pages
  along with "oneside" to use same page style for odd and even pages.
* Set "tocdepth" and "secnumdepth" to 3 respectively.
  "tocdepth" controls the depth of TOC and "secnumdepth" controls
  the level of numbered sections in TOC.

Note that this commit does not reorganize file structure under doc/source.
I believe this should be done separately.

[1] https://docs.openstack.org/nova/latest/doc-nova.pdf

Change-Id: Ie9685e6a4798357d4979aa6b4ff8a03663a9c71c
Story: 2006100
Task: 35140
2019-10-08 11:06:00 +01:00
Zuul
66d17645e2 Merge "[Gate fix] Avoid use cell_uuid before assignment" 2019-10-08 05:42:41 +00:00
Zuul
71cc7f1717 Merge "Remove workaround for bug #1709118" 2019-10-08 04:57:33 +00:00
Zuul
c4288178f0 Merge "fixtures: Store 'device_id' when creating port in NeutronFixture" 2019-10-08 00:45:01 +00:00
Zuul
1a1ead4083 Merge "fixtures: Handle iterable params for 'NeutronFixture.list_*'" 2019-10-08 00:39:36 +00:00
Zuul
69278ce0e9 Merge "docs: Rewrite host aggregate, availability zone docs" 2019-10-08 00:30:16 +00:00
Zuul
faa1e6052c Merge "fixtures: Beef up NeutronFixture" 2019-10-07 21:57:11 +00:00
Zuul
9c63f65b20 Merge "Error out interrupted builds" 2019-10-07 20:42:12 +00:00
ricolin
35d76c7cf5 [Gate fix] Avoid use cell_uuid before assignment
Found this error in heat gate during running grenade test job.

Should not asking to provide cell_uuid if queue.get is timeout.

Closes-Bug: #1847131

Change-Id: I7f9edc9a4b4930f4dce98df271888fa8082a1701
2019-10-07 14:40:39 -04:00
Zuul
6b177d42c7 Merge "trivial: Neutron fixture cleanup" 2019-10-07 16:33:32 +00:00
Zuul
c8f3f3a41e Merge "nova-net: Migrate 'test_simple_tenant_usage' functional tests" 2019-10-07 16:33:25 +00:00