Commit Graph

55591 Commits

Author SHA1 Message Date
Stephen Finucane 8d5172dadc Remove compute compat checks for aborting queued live migrations
These were added in Rocky [1] and can now been removed, since we don't
need to support anything from before Train in Ussuri.

[1] I4636a8d270ce01c1831bc951c4497ad472bc9aa8

Change-Id: Ib01ebeff0647f6e27714856f3a36c3896eeab27f
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-15 15:49:53 +00:00
Matt Riedemann 4ac308f0ae Remove Stein compute compat checks for volume type support
Support for boot from volume where nova creates the volume
with a specified volume type was added in Stein [1] and an API
validation check was added to only allow that if the computes
were upgraded to Stein [2]. Now that we're in Ussuri and don't
need to support pre-Stein computes we can drop that API compat
check.

[1] Icc301230fe7c8e3ebbbcc7f4a807e562db7f93e3
[2] I45bd42908d44a0f05e1231febab926b23232b57b

Change-Id: If9c459a9a0aa752c478949e4240286cbdb146494
2019-10-08 17:40:03 -04:00
Matt Riedemann 56d3f4657c Remove dead reserve_volume compat code in _validate_bdm
Change I3cc775fc7dafe691b97a15e50ae2e93c92f355be in Rocky
added compat code in _validate_bdm for when a boot-from-volume
request ends up using the legacy attachment flow and
_check_attach_and_reserve_volume was not called or did not set
bdm.attachment_id.

The legacy flow compat code was removed in Train in change
I6a777b4b7a5729488f939df8c40e49bd40aec3dd so we can remove the
now dead condition in _validate_bdm because the bdm.attachment_id
is always going to be set on a pre-existing volume during boot
from volume.

Change-Id: Ia1071ff1cb31e57f73e40eeb9b1531a7b1996cae
2019-10-08 17:30:58 -04:00
Zuul 89430c574f Merge "nova-net: Make even more nova-net stuff optional" 2019-10-08 19:33:58 +00: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
Zuul 7058fac53b Merge "Update contributor guide for Ussuri" 2019-10-08 12:14:39 +00: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
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
Eric Fried 5601c82915 Remove workaround for bug #1709118
A possible fix [1] for bug #1709118 is in keystoneauth1 release 3.3.0.
This change removes a workaround for that bug in
nova.utils.get_endpoint.

[1] https://review.openstack.org/#/c/500956/

Change-Id: If2a56ed56ecb3402fdee1189df81f0b9fbc483b3
Related-Bug: #1709118
2019-10-07 16:33:20 +00:00
Zuul 2a293476b3 Merge "nova-net: Migrate 'test_attach_interfaces' functional tests" 2019-10-07 16:33:15 +00:00
Stephen Finucane 5c5927a3d2 docs: Rewrite host aggregate, availability zone docs
These closely related features are the source of a disproportionate
number of bugs and a large amount of confusion among users. The spread
of information around multiple docs probably doesn't help matters.

Do what we've already done for the metadata service and remote consoles
and clean these docs up. There are a number of important changes:

- All documentation related to host aggregates and availability zones is
  placed in one of three documents, '/user/availability-zones',
  '/admin/aggregates' and '/admin/availability-zones'. (note that there
  is no '/user/aggregates' document since this is not user-facing)

- References to these features are updated to point to the new location

- A glossary is added. Currently this only contains definitions for host
  aggregates and availability zones

- nova CLI commands are replaced with their openstack CLI counterparts

- Some gaps in related documentation are closed

Change-Id: If847b0085dbfb4c813d4a8d14d99346f8252bc19
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-07 17:26:35 +01:00
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
Stephen Finucane e73795b8ad trivial: Make it obvious where we're getting our names from
Change-Id: Ib9aa790c8999e50a2a3587561604ff1e51666f38
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 15:40:28 +01:00
Stephen Finucane 337c90808e nova-net: Stop mocking the instance network cache
This has been tying us to nova-network. This should be a one line change
but it has a large knock-on effect due to lots of samples using it. We
just need to suck it up and deal with it, unfortunately.

Change-Id: I09c88e0fdf3635683c56901637fc3c0a9084d482
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 15:40:28 +01:00
Stephen Finucane 59d00aac7c trivial: Change name of network provided by NeutronFixture
We do this because most of our sample tests are currently using a fake
network cache due to 'stub_compute_with_ips', and that fake cache uses
the name 'private' instead of 'private-network'. When we remove that in
a future change, there's going to be a lot of refactoring. Head some of
that off by just using the same name.

Change-Id: I6339005a0d49a6dfd376523d3f9e145a00cfc3bd
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 15:40:28 +01:00
Stephen Finucane 8b8542558a fixtures: Store 'device_id' when creating port in NeutronFixture
When creating a port, we send a bit of information to neutron, namely,
the requested network, the tenant (project) ID and, crucially, the
device ID. The 'NeutronFixture' should be setting these fields on the
created port but is not. This hasn't been an issue to date but will when
we add subnet support, so fix this now.

Change-Id: Ia842854c12cd2d2ed630d1e0f2bb691859592cd9
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 15:40:25 +01: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
Stephen Finucane d2d4317e1a fixtures: Handle iterable params for 'NeutronFixture.list_*'
It turns out it's possible to filter on multiple possible values using
by using an iterable query value. We're going to need this for proper
subnet mocking, so add it now. There's no impact on tests.

Change-Id: Ia02ff34ec94a911906e2e812ab6503d4a2118bce
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 12:54:39 +01:00
Stephen Finucane 5a6fd8e206 fixtures: Beef up NeutronFixture
The sample networks, subnets and ports this used were missing a lot of
fields that the neutron API returns. Beef these up to match something
like what we'd receive from a modern neutron instance. Note that this
does involve some shuffling around of lines, but that's intentional to
make things easier to diff. A future change will add proper security
group and floating IP support.

Change-Id: Ib07303d3ad96110d7d416a3d6e1e9197420f8680
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 12:54:39 +01:00
Stephen Finucane c50e4fe743 trivial: Neutron fixture cleanup
I'm not sure why we weren't using 'self' here, but we can and should.

Change-Id: Ibc0e7159901a542dd436d3529d057e250351c413
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 12:54:39 +01:00
Stephen Finucane 1443171d16 nova-net: Migrate 'test_simple_tenant_usage' functional tests
This test case is using common samples and falling back to the v2.37
server create request sample which uses auto-network creation rather
than a specific network ID. As a result, we must mock the relevant
functions from the neutronclient in our NeutronFixture.

Change-Id: I28493775b9135b8fb4d778963a2b227a4d8ed0a2
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-05 12:51:20 +01: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