Commit Graph

230 Commits

Author SHA1 Message Date
Radoslav Gerganov 5cb2350de7 Fix support matrix for VMware UEFI support
UEFI support in the VMware driver has been added with commit fc0c6d2.
This patch fixes the support matrix to reflect this.

Change-Id: I8b08e11ae4dd7f1101758b29ae3424d790b26ed1
2018-11-06 15:34:07 +02:00
Zuul 0c5feb21b3 Merge "Handle online_data_migrations exceptions" 2018-10-17 07:07:06 +00:00
imacdonn 3eea37b85b Handle online_data_migrations exceptions
When online_data_migrations raise exceptions, nova/cinder-manage catches
the exceptions, prints fairly useless "something didn't work" messages,
and moves on. Two issues:

1) The user(/admin) has no way to see what actually failed (exception
   detail is not logged)

2) The command returns exit status 0, as if all possible migrations have
   been completed successfully - this can cause failures to get missed,
   especially if automated

This change adds logging of the exceptions, and introduces a new exit
status of 2, which indicates that no updates took effect in the last
batch attempt, but some are (still) failing, which requires intervention.

Change-Id: Ib684091af0b19e62396f6becc78c656c49a60504
Closes-Bug: #1796192
2018-10-16 15:49:51 +00:00
Zuul 8fadc806f4 Merge "doc: update metadata service doc" 2018-10-16 10:30:03 +00:00
Chen 1142f64ba2 doc: update metadata service doc
1 update to the latest metadata version in the examples
2 fix a typo
3 update a url

Change-Id: I5a78088413ba3e15d3f3c19392effa898205f502
2018-10-15 11:47:39 +08:00
Zuul 396156eb13 Merge "Add microversion 2.67 to support volume_type" 2018-10-13 18:46:09 +00:00
zhangbailin c7f4190af2 Add microversion 2.67 to support volume_type
Add a new microversion 2.67 to support specify ``volume_type``
when boot instances.

Part of bp boot-instance-specific-storage-backend
Change-Id: I13102243f7ce36a5d44c1790f3a633703373ebf7
2018-10-12 02:57:58 -04:00
Zuul f8e46a5cf4 Merge "VMware: Live migration of instances" 2018-10-08 19:12:43 +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
tianhui e80b2a2393 Update doc
Update the response of openstack volume list

Change-Id: I394d570f1d710c5fccf1dfa8d531dfaa2aa0e13c
2018-09-28 02:14:18 +00:00
Zuul de2da1e770 Merge "cells: Be explicit in docs about service restarts" 2018-09-26 20:51:35 +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 a55c189b71 Merge "Add contributor guide for upgrade status checks" 2018-09-20 21:51:01 +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
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
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
Zuul ebfb4157f8 Merge "Add encrypted volume support to feature matrix docs" 2018-09-07 11:16:16 +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
Zuul 55d19190ce Merge "Doc: PowerVM does support shelve" 2018-09-06 05:47:03 +00:00
Zuul e1edabc053 Merge "Report client: _reshape helper, placement min bump" 2018-08-30 20:09:57 +00:00
Matt Riedemann 579e0cfd57 Document differences and similaries between extra specs and hints
Scheduler hints are not really documented very well at all except
for being mentioned per scheduler filter in the admin configuration
guide, nor are they documented within relation to flavor extra
specs which are both used for impacting scheduling decisions and
are choices that a deployer has to make based on how they configure
their cloud.

This change adds a document about scheduler hints and how they are
similar to and different from flavor extra specs, including end
user discoverability and interoperability, and thoughts on which
should be used if writing a custom scheduler filter.

The TODO in the API guide is also resolved by linking to this
document.

Change-Id: Ib1f35baacf59efafb9e4bccfcc4f0025d99ad5b2
2018-08-29 19:09:11 -04:00
Matt Riedemann 5c19645169 Add encrypted volume support to feature matrix docs
Native QEMU LUKS decryption support was added for the
libvirt driver in Queens, but there are no docs in the
feature support matrix about encrypted volume support
at all, so this attempts to close that gap.

Change-Id: I035164a0c4222814784306381f9a11413c8de9e2
2018-08-29 17:00:21 -04:00
Matt Riedemann 243ba85130 Deprecate Core/Ram/DiskFilter
The time has come.

These filters haven't been necessary since Ocata [1]
when the filter scheduler started using placement
to filter on VCPU, DISK_GB and MEMORY_MB. The
only reason to use them with any in-tree scheduler
drivers is if using the CachingScheduler which doesn't
use placement, but the CachingScheduler itself has
been deprecated since Pike [2]. Furthermore, as of
change [3] in Stein, the ironic driver no longer
reports vcpu/ram/disk inventory for ironic nodes
which will make these filters filter out ironic nodes
thinking they don't have any inventory. Also, as
noted in [4], the DiskFilter does not account for
volume-backed instances and may incorrectly filter
out a host based on disk inventory when it would
otherwise be OK if the instance is not using local
disk.

The related aggregate filters are left intact for
now, see blueprint placement-aggregate-allocation-ratios.

[1] Ie12acb76ec5affba536c3c45fbb6de35d64aea1b
[2] Ia7ff98ff28b7265058845e46b277317a2bfc96d2
[3] If2b8c1a76d7dbabbac7bb359c9e572cfed510800
[4] I9c2111f7377df65c1fc3c72323f85483b3295989

Change-Id: Id62136d293da55e4bb639635ea5421a33b6c3ea2
Related-Bug: #1787910
2018-08-24 19:32:27 -04:00
Eric Fried 2833785f59 Report client: _reshape helper, placement min bump
Add a thin wrapper to invoke the POST /reshaper placement API with
appropriate error checking. This bumps the placement minimum to the
reshaper microversion, 1.30.

Change-Id: Idf8997d5efdfdfca6967899a0882ffb9ecf96915
blueprint: reshape-provider-tree
2018-08-24 15:39:18 -05:00
Matthew Edmonds 6c1b295adf Doc: PowerVM does support shelve
Corrects the support matrix to indicate that PowerVM supports
shelve/unshelve. Shelve only requires a driver to support power_off
and snapshot, both of which the PowerVM driver has implemented.

Change-Id: Iec56a2a61e90d3d97468b1d7f72a0b28975e6cd1
2018-08-17 09:42:16 -04:00
jichenjc 2d2dbc48d3 Add zvm CI information
z/VM is added in Rocky releaes and this patch added the CI
information and its coverage for z/VM.

blueprint: add-zvm-driver-rocky

Change-Id: Ibf44bc81ab0281c95dd4add9e09df584d61bc460
2018-08-17 02:58:27 +00:00
jichenjc 9a62184c9d add zvm into support matrix
z/VM driver is in Rocky release now and this patch adds
the z/VM support matrix update.

blueprint: add-zvm-driver-rocky

Change-Id: I58016140c7f556df91ce258733455647a26dd727
2018-08-13 02:01:03 +00:00
Zuul bb8b109728 Merge "Fix bad links for admin-guide" 2018-08-08 23:57:29 +00:00
Zuul c18b1c1bd6 Merge "Remove Neutron MetaAPIProxy from cellsv2-layout" 2018-08-08 21:56:53 +00:00
Liam Young efb533a6dd Remove Neutron MetaAPIProxy from cellsv2-layout
Its unclear which metadata service the section is refering to
and moreover none of them seem to need an api_database section.

Change-Id: I77f7a0f3a1e4a3702ca330cbe3f54b6a77bb77b0
Closes-Bug: #1785237
2018-08-08 16:34:40 +01:00
Zuul 551513be79 Merge "Fix none-ascii char in doc" 2018-08-08 03:18:56 +00:00
Chen 058ee38c96 Fix bad links for admin-guide
All these links are invalid currently, and getting updated
with the best replacements that can be found, or removed if
there is none.

Change-Id: I26c183b7de1bcc08b903146897795148a2d57e6d
Partial-Bug: #1765737
2018-08-08 00:12:35 +00:00
zhufl fbc86f8844 Fix none-ascii char in doc
There exist some none-ascii chars in doc, which may cause trouble
in displaying.

Change-Id: I1ebf83fb4e8cc853fd7f3065ecf420a064c9983f
2018-08-07 00:13:00 +00:00
Zuul 0d869bccf2 Merge "Docs: Add Placement to Nova system architecture" 2018-08-03 12:13:11 +00:00
Zuul 69def63ed4 Merge "Add another up-call to the cells v2 caveats list" 2018-08-03 07:31:31 +00:00
Matt Riedemann 3cd5198d5a doc: fix resize user guide link
The admin config resize doc was linking to a now non-existent
user guide doc which was deleted in pike. This change imports
the resize user guide from the openstack-manuals stable/ocata
branch, fixes the link, and updates the resize user doc to
(1) link to our internal shutdown_timeout config option reference
and (2) link to the image properties doc in glance for the
os_shutdown_timeout image property.

Change-Id: I9988abfd344d1d3b0b6eaf32b036369b51853965
Closes-Bug: #1784715
2018-08-02 12:52:11 +00:00
Zuul 8c91a5b72d Merge "doc: link to AZ talk from the Rocky summit" 2018-07-30 12:54:11 +00:00
Zuul 9e99595366 Merge "doc: link to CERN summit video about upgrading from cells v1 to v2" 2018-07-30 12:54:04 +00:00
Zuul d885ec8757 Merge "doc: remove rocky-specific nova-scheduler min placement version" 2018-07-26 01:14:22 +00:00
Matt Riedemann dc6cb06021 doc: remove rocky-specific nova-scheduler min placement version
Per change I97215e94efdd8c05045872fb9ba7d2089dc6efb8, nova
does not perform version discovery or try to deal with backlevel
placement versions, and the upgrade docs say that placement needs
to be upgraded before upgrading any nova services. Because of
this assertion, we can remove the per-release nova-scheduler-specific
note in the placement upgrade notes for Rocky because while it's
accurate for the nova-scheduler service, it might not be accurate
for the nova-api, nova-conductor or nova-compute services which
also use placement. So the best guidance is to just globally say
that placement must be upgraded before *any* nova services, which
our upgrade doc already says.

Change-Id: I8bf6ab049f15ad24a5fbf0557bd0cd8652101901
2018-07-24 15:14:42 -04:00
leizhang 7637026b90 Add method to get cpu traits
Add a method for libvirt driver to get cpu traits.
This is used for compute nodes to report cpu traits to Placement.

Change-Id: I9bd80adc244c64277d2d00e7d79c3002c8f9d57e
blueprint: report-cpu-features-as-traits
2018-07-24 12:37:46 +00:00
Matt Riedemann f4819f28aa doc: link to AZ talk from the Rocky summit
This links into the AZ docs a nice video from the Rocky
summit which covers what AZs are and aren't, use cases,
gotchas, and how they are implemented outside of nova
to compare and contrast. Overall it's a nice educational
presentation which is useful for those wishing to learn
more about AZs than what our documentation provides.

Change-Id: Ib67826620735f05edc987481af4c07b6d19f3c1d
2018-07-23 18:25:01 -04:00
Matt Riedemann 87691055e3 doc: link to CERN summit video about upgrading from cells v1 to v2
This adds a link to Rocky summit video from CERN about how
they performed their upgrade from cells v1 to cells v2.

Change-Id: I5c7dc5aca232a9d330968de29eeee6a55cb035ab
2018-07-23 18:14:59 -04:00
Andrey Volkov 3a26ad77e8 Docs: Add Placement to Nova system architecture
Changes in svg:
- schema with nova-network is removed and one with Neutron is made as default
- Placement service is added to a party
- titles and arrows are aligned

Change-Id: If7e4a0b92c8713dabcb16a5e7820fbf479d82917
2018-07-23 14:44:27 +03:00
Matt Riedemann 8d095e03cb Fix "XLibvirt KVM (ppc64)" typo in feature support matrix docs
The "X" was an extra special typo introduced in
If5c0bf2b0dcd7dbb7d316139ecb62a936fd15439

Change-Id: I109b106f161371fbebbc09b34471b7945c91edb0
2018-07-17 15:08:40 +00:00
Mike Perez c09fe87feb Replace support matrix ext with common library
The code to generate a support matrix has been pulled into a common
library. Using this instead of duplicating code in various projects that
need it.

Change-Id: If5c0bf2b0dcd7dbb7d316139ecb62a936fd15439
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
2018-07-16 15:04:00 +01:00
Matt Riedemann 1160ae7a65 Add another up-call to the cells v2 caveats list
Due to change I8d426f2635232ffc4b510548a905794ca88d7f99 in Pike,
which ironically was meant to avoid up-calls (I think), it
introduced an up-call during reschedules for server create and
resize to set the instance.availability_zone based on the
alternate host selected during the reschedule.

This adds the up-call to our list of known issues in the cells
v2 docs so we can track the issue and make people aware of it.

Change-Id: Id819f91477613a013b89b1fb0b2def3b0fd4b08c
Related-Bug: #1781286
2018-07-14 12:37:25 +00:00
Taku Izumi a07b68ea92 virt/ironic: Implement rescue and unrescue
This patch adds implementation of rescue and unrescue for ironic virt
driver.

Implements: blueprint ironic-rescue-mode

Change-Id: I7c20a0c5f566c3255350fd494d1a2cde84a99440
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Co-Authored-By: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
2018-07-13 01:56:13 +00:00
Matt Riedemann 7ac21382f9 Mention osc-placement for managing traits in docs
This just links to the osc-placement plugin docs
for managing required and forbidden traits in the
flavor extra specs docs.

Change-Id: I8549dc404a62a05d327a2c7a4813e7cc505d6b06
2018-07-12 11:25:31 -04:00