Commit Graph

3173 Commits

Author SHA1 Message Date
Adam Spiers f619d5447e fix "you" typo
Saving the world, one typo at a time ...

Change-Id: I6bb98849ee26abee13e35e12d2c748a902964ac7
2018-10-11 19:03:58 +01:00
Zuul b1779c8497 Merge "Remove useless TODO section" 2018-10-11 01:52:27 +00:00
Takashi NATSUME 64bf8da977 api-ref: Replace non UUID string with UUID
In the "List Migrations" (GET /os-migrations) API,
there are the following response body examples.

* Example List Migrations: JSON response
* Example List Migrations (v2.59)
* Example List Migrations With Paging (v2.59)

In the second and third examples, the 'instance_uuid' are UUID strings.
But in the first one, the 'instance_uuid' is not UUID.
It should be a UUID string.
So replace non UUID string with a UUID string in the example.

Change-Id: I6c29c48f53838beb7da3ec0f849380e3706df422
2018-10-09 14:56:35 +09:00
zhang.lei 1423f920bb Remove useless TODO section
Change-Id: Ia55924d36e75e050e65c19389d62e21f87dea98b
Closes-Bug: #1796676
2018-10-09 01:43:22 +00:00
Zuul f8e46a5cf4 Merge "VMware: Live migration of instances" 2018-10-08 19:12:43 +00:00
Zuul 865fc0ed4c Merge "Update doc" 2018-10-08 13:56:34 +00:00
Zuul a67fd6d8cc Merge "Remove unnecessary redirect" 2018-10-02 22:16:30 +00:00
Zuul ba509fddd5 Merge "Follow up for Ib6f95c22ffd3ea235b60db4da32094d49c2efa2a" 2018-10-02 08:57:36 +00:00
Radoslav Gerganov 2fe92e9162 VMware: Live migration of instances
This patch implements live migration of instances across compute nodes.
Each compute node must be managing a cluster in the same vCenter and ESX
hosts must have vMotion enabled [1].
If the instance is located on a datastore shared between source
and destination cluster, then only the host is changed. Otherwise, we
select the most suitable datastore on the destination cluster and
migrate the instance there.

[1] https://kb.vmware.com/s/article/2054994

Co-Authored-By: gkotton@vmware.com

blueprint vmware-live-migration

Change-Id: I640013383e684497b2d99a9e1d6817d68c4d0a4b
2018-10-02 10:13:57 +03:00
Takashi NATSUME aaa7d7c109 Remove unnecessary redirect
The cli/nova-idmapshift.html has been removed
since Ibce28d20d166da154833376cf51f1877b829925e.

Remove the redirect to cli/nova-idmapshift.html
because it is useless currently.

Change-Id: I57e6285475a31af49a3791c00d5d61deb64438bc
2018-09-28 11:36:06 +09:00
tianhui e80b2a2393 Update doc
Update the response of openstack volume list

Change-Id: I394d570f1d710c5fccf1dfa8d531dfaa2aa0e13c
2018-09-28 02:14:18 +00:00
Matt Riedemann 771b9eaa71 Null out instance.availability_zone on shelve offload
When a user shelve offloads a server, the compute manager
nulls out the instance host and node attributes. However
the availability_zone attribute is left set on the instance
so the API will show the instance as in an AZ when really
it's not, because an instance that is not on a host is not
in a host aggregate so it can't be in an AZ.

Keep in mind that there are two ways an instance can be in
an AZ:

1. The user specifically requests to create the server in
   the AZ.

2. The user does not request an AZ and one is assigned via
   the selected host during server create (or resize, etc).

For the first case, the server will always remain in the
user-requested AZ even after shelve/unshelve. But in the
second case, unshelving the server can result in the server
being spawned on a new host in a different AZ - the scheduler
does not restrict the AZ in that second case.

This change nulls out the instance.availability_zone just like
the host and node fields on shelve offload since it's
confusing to show a shelved offloaded server in an AZ that
doesn't have a host.

Final note: the _nil_out_instance_obj_host_and_node method
is also called during server create if the build fails and
is aborted or rescheduled to another host, and in the case
that unshelve fails. In the case of a server build reschedule,
conductor will set the instance.availability_zone appropriately
based on the alternate host for the reschedule. In the other
failure cases, leaving the instance AZ null is appropriate.

Change-Id: I25a4f36027390def83cfe25f4f3b4af9660da502
Closes-Bug: #1790221
2018-09-27 08:49:41 -04:00
Balazs Gibizer 669d6499ee Follow up for Ib6f95c22ffd3ea235b60db4da32094d49c2efa2a
This patch removes the host parameter of the
notify_about_instance_delete() call as it is always filled with
CONF.host value.

Change-Id: Iff3b605b9410d5a097b53f532870df65780bc1e4
Implements: bp versioned-notification-transformation-stein
2018-09-27 11:33:55 +02:00
Zuul fda8068dbd Merge "api-ref: add 'migrations' param to GET /os-migrations" 2018-09-26 20:51:46 +00:00
Zuul de2da1e770 Merge "cells: Be explicit in docs about service restarts" 2018-09-26 20:51:35 +00:00
Zuul 00dc4483b7 Merge "Transform missing delete notifications" 2018-09-26 20:51:26 +00:00
Zuul 3841b761af Merge "doc:update virtual gpu doc" 2018-09-26 03:30:31 +00:00
Zuul 507bc464f2 Merge "Option "scheduler_default_filters" is deprecated." 2018-09-26 03:30:23 +00:00
Matt Riedemann 183ba80ec5 api-ref: add 'migrations' param to GET /os-migrations
The response parameter table for the GET /os-migrations
API reference was missing the top level "migrations"
parameter which is the list of migration objects.

While in here, fix the fake "Done" status to "done"
in the sample. There is nothing in nova that uses a
status of "Done". The evacuate operation uses "done".

Change-Id: I1e193237e9aec05395cd2760d96e70db7791409b
2018-09-25 17:06:02 -04:00
caoyuan 40f8b7cb23 Option "scheduler_default_filters" is deprecated.
The scheduler_default_filters option is deprecated in favor of
the [scheduler]/enabled_filters option. This change updates
the docs to use the enabled_filters option over the deprecated
scheduler_default_filters option.

Change-Id: I6cc78056179e01752e48e51a4e3552d52d66074b
Closes-Bug: #1794306
2018-09-25 19:50:16 +00:00
Zuul ebab3adb28 Merge "Consumer gen support for delete instance allocations" 2018-09-25 16:43:07 +00:00
sunjia 0690dff2b3 doc:update virtual gpu doc
Add a note to the documentation,the GPU vendor's VGPU
driver software needs to be installed and configured.

Change-Id: I8618a312818f6f26d358b40e723fecf74c0d2eb7
2018-09-25 13:28:12 +00:00
Zuul 2f635fa914 Merge "Validate transport_url in nova-manage cell_v2 commands" 2018-09-25 10:10:24 +00:00
Balazs Gibizer 6f1a1f5e8e Consumer gen support for delete instance allocations
The placement API version 1.28 introduced consumer generation as a way
to make updating allocation safe even if it is done from multiple
places.

This patch changes delete_allocation_for_instance to use PUT
/allocations instead of DELETE /allocations to benefit from the consumer
generation handling.

In this patch the report client will GET the current allocation of the
instance including the consumer generation and then try to PUT an empty
allocation with that generation. If this fails due to a consumer
generation conflict, meaning something modified the allocation of the
instance in between GET and PUT then the report client will raise
AllocationDeleteFailed exception. This will cause that the instance
goes to ERROR state.

This patch only detects a small portion of possible cases when
allocation is modified outside of the delete code path. The rest can
only be detected if nova would cache at least the consumer generation
of the instance.

To be able to put the instance state to ERROR the instance.destroy()
call is moved to the end to of the deletion call path. To keep the
instance.delete.end notification behavior consistent with this move
(e.g. deleted_at field is filled) the notification sending needed to
be moved too.

Blueprint: use-nested-allocation-candidates
Change-Id: I77f34788dd7ab8fdf60d668a4f76452e03cf9888
2018-09-25 11:16:37 +02:00
Zuul 337b24ca41 Merge "Transform libvirt.error notification" 2018-09-24 13:56:53 +00:00
Zuul 2029f972c5 Merge "Remove deprecated nova-consoleauth reference from doc" 2018-09-21 17:21:51 +00:00
Zuul 2274c08460 Merge "Remove deprecated hide_server_address_states option" 2018-09-21 13:58:57 +00:00
Zuul 1c1a111e5a Merge "Resource retrieving: add changes-before filter" 2018-09-21 11:48:29 +00:00
YI-JIE,SYU bc479a992d Remove deprecated nova-consoleauth reference from doc
Because nova-consoleauth had deprecated since version 18.0.0,
it is better not to give reference of this service in verify operation
documentation file.

Change-Id: I0c3b9cfe96bcc3d7b6106c3e972ee9e2f79e419b
2018-09-21 10:18:34 +00:00
Zuul a55c189b71 Merge "Add contributor guide for upgrade status checks" 2018-09-20 21:51:01 +00:00
Zuul f2e660d4b0 Merge "doc trivial: additional info to admin-password-injection" 2018-09-20 19:01:46 +00:00
Matt Riedemann 7c3c3b9863 Add contributor guide for upgrade status checks
This adds some background, guidelines and structural
notes on writing nova-status upgrade checks.

This is intentionally written with some potentially
redundant information or nova developers as it's
also meant to be consumed outside nova as part of the
community-wide "upgrade-checkers" goal for Stein [1].

Story: 2003570

[1] https://governance.openstack.org/tc/goals/stein/upgrade-checkers.html

Change-Id: I340b25edeab3ac19c5d0bedfc69acd037d57bdd2
2018-09-19 18:50:25 +00:00
Matt Riedemann 9b69afd457 Remove deprecated hide_server_address_states option
The hide_server_address_states config option and related
policy rule were deprecated in Queens:

  I6040e8c2b3e132b0dfd09f82ae041b4786a63483

They are now removed in Stein as part of the API extension
merge effort.

Part of blueprint api-extensions-merge-stein

Change-Id: Ib3582038274dedbf524ffcaffe818ff0e751489d
2018-09-19 11:36:44 -04:00
zhangbailin 28c1075b59 Resource retrieving: add changes-before filter
This adds the changes-before filter to the servers,
os-instance-actions and os-migrations APIs for
filtering resources which were last updated before
or equal to the given time. The changes-before filter,
like the changes-since filter, will return deleted
server resources.

Part of bp support-to-query-nova-resources-filter-by-changes-before
Change-Id: If91c179e3823c8b0da744a9363906b0f7b05c326
2018-09-19 09:56:56 -04:00
Sylvain Bauza 0e0d5bf1c8 cells: Be explicit in docs about service restarts
Some operators could be confused if they start conductor workers with an
imcomplete setup. Just adding a clear note on the dependency.

Change-Id: I142de27f045ddb4c298ecae5a35bcb98ac863e3d
2018-09-19 10:07:12 +02:00
Chen 9da6ebd063 doc trivial: additional info to admin-password-injection
Mention that image needs ssh password authorization configured
in order to allow ssh login with admin password.

Change-Id: I65a94b266dbef9863acc07306cbe2bd81c95c893
2018-09-19 09:41:19 +08:00
Zuul 8b1637f22a Merge "Add missing backticks in nova-manage docs" 2018-09-18 22:49:56 +00:00
Zuul 237ced4737 Merge "Explicitly fail if trying to attach SR-IOV port" 2018-09-18 20:13:52 +00:00
Christian Berendt d3e254e47b Add missing backticks in nova-manage docs
Change-Id: I8f7a4c8029a54902d531d98da62a0d8bd7cc383d
2018-09-18 15:02:36 +02:00
Gábor Antal c0e4e162ce Transform libvirt.error notification
The libvirt.error notification has been transformed to
the versioned notification framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I7d2287ce06d77c0afdef0ea8bdfb70f6c52d3c50
Implements: bp versioned-notification-transformation-stein
2018-09-18 07:06:09 +00:00
Zuul 82270cc261 Merge "Fix docs and add functional test for AggregateMultiTenancyIsolation" 2018-09-17 11:31:15 +00:00
Yikun Jiang a7e7c73a9d Rename changes-since test sample file
In the past, we only have changes-since filter, we called it as
timestamp-filter, but now we will add a changes-before filter,
the timestamp-filter is not clear anymore.

In this patch, we rename timestamp to changes-since.

Change-Id: Ieee912e197d17a5ffca7460f3b977316cd21813e
blueprint: support-to-query-nova-resources-filter-by-changes-before
2018-09-14 11:52:37 +08:00
Matt Riedemann 6bc32481fb Fix docs and add functional test for AggregateMultiTenancyIsolation
The docs for AggregateMultiTenancyIsolation were misleading in that
tenants are not restricted to hosts only in a tenant-isolated
aggregate. It's the opposite: hosts in the tenant-isolated aggregate
are only available for tenants configured for that aggregate.

This fixes the docs including an example for clarification, and also
adds a functional test to show the behavior of the filter.

Change-Id: Ic55b88e7ad21ab5b7ad063eac743ff9406aae559
Related-Bug: #1771523
2018-09-13 16:46:53 -04:00
Zuul 06e533bc96 Merge "Update docs for live_migration_progress_timeout option" 2018-09-12 18:17:58 +00:00
Zuul 6a74828621 Merge "Document differences and similaries between extra specs and hints" 2018-09-10 20:18:41 +00:00
Zuul e5c6ebc6c5 Merge "doc: update info for hypervisors" 2018-09-08 01:27:25 +00:00
Matt Riedemann f34877f936 Update docs for live_migration_progress_timeout option
Change I1a1143ddf8da5fb9706cf53dbfd6cbe84e606ae1 in Ocata
deprecated the libvirt.live_migration_progress_timeout
and disabled it by default. This change updates the config
option help to refer to the bug so people don't have to hunt
for it via git history, and also touches up the admin docs.
In the one doc, mention of the option is removed altogether
because it basically says, "here is a loaded gun, but don't
use it!". It's better to just not mention the option at all.

Change-Id: I33f3d508a2af6c94435f86ac740cf24b97dba76e
Related-Bug: #1644248
2018-09-07 23:22:25 +00:00
Zuul ebfb4157f8 Merge "Add encrypted volume support to feature matrix docs" 2018-09-07 11:16:16 +00:00
Zuul 999c230576 Merge "Docs: update link for remote debugging" 2018-09-07 11:16:07 +00:00
Chen de8292ccff doc: update info for hypervisors
Update links and add info for UML hypervisor.

Change-Id: Id2a5ed802b2849c4edd5b92debe37c921bc859cc
2018-09-07 15:33:19 +08:00