Commit Graph

3083 Commits

Author SHA1 Message Date
Zuul 3ac6deb94c Merge "Scrub hw:cpu_model from API samples" 2018-08-03 13:19:28 +00:00
Zuul 0d869bccf2 Merge "Docs: Add Placement to Nova system architecture" 2018-08-03 12:13:11 +00:00
Zuul 45f1c9c910 Merge "Remove unused request API sample template" 2018-08-03 11:29:39 +00:00
Zuul 69def63ed4 Merge "Add another up-call to the cells v2 caveats list" 2018-08-03 07:31:31 +00:00
ghanshyam 2ac1bfa767 Remove unused request API sample template
There are few POST API which does not take request
body as mandatory. For example POST 'servers/%s/consoles/

For such API, functional sample tests using some empty
request sample template. And doc/api_samples dir does
not have such empty sample file.

This commit removes those empty sample files and make
_do_post() base method to make body and subs param as optional
for such API.

Also add one missing sample file(non empty) in doc/api_samples dir.

Change-Id: I163e17a4a8253594e1768ed9b118fba63d5e08f1
2018-08-03 07:00:13 +00:00
Matt Riedemann 303379fdd7 Scrub hw:cpu_model from API samples
Nova does not support a "hw:cpu_model" flavor extra
spec. This was added as part of microversion 2.47 from
WindRiver where their Titanium Cloud product does support
a hw:cpu_model flavor extra spec. We shouldn't include
this in upstream documentation lest someone be confused
and think upstream nova supports it.

Change-Id: Ie646130731fde648ab84a423024ab59f55f5daab
2018-08-02 16:00:45 -04: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 03ccb1f933 Merge "Update install guide for placement database configuration" 2018-07-31 10:32:49 +00:00
Zuul 4370aa9c5e Merge "Updated AggregateImagePropertiesIsolation filter illustration" 2018-07-30 21:21:53 +00:00
karimull a9083d13b0 Updated AggregateImagePropertiesIsolation filter illustration
The example given in this section was not matching the explanation
of how the filter works.
Updated the example with right properties and aggregate name

Change-Id: Ieadeb0d736cc83a41093e6f4dfeb75d2396976ec
Closes-Bug: #1684261
2018-07-30 12:31:35 -07:00
Zuul e276db98f1 Merge "Add documentation for emulator threads policy" 2018-07-30 13:50:03 +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 dd6d752966 Merge "Fix ServerMigrationSampleJsonTests to use sample files from version dir" 2018-07-29 06:36:43 +00:00
Zuul c9b7c3577f Merge "Assorted cleanups from numa-aware-vswitches series" 2018-07-29 03:41:15 +00:00
Zuul 7eda21891b Merge "scheduler: Start utilizing RequestSpec.network_metadata" 2018-07-29 02:42:31 +00:00
Zuul 63c1f9a17a Merge "Add nova-status upgrade check for request spec migrations" 2018-07-28 02:39:19 +00:00
Stephen Finucane 24c016ed6c Assorted cleanups from numa-aware-vswitches series
Resolve open issues from preceding patches.

Part of blueprint numa-aware-vswitches

Change-Id: I0c35109b67aa94cf19a4d20a97bf5ab15cf3db4e
2018-07-27 09:49:12 -07:00
Zuul 4f5105d6c0 Merge "doc: add missing permission for the vCenter service account" 2018-07-27 10:52:41 +00:00
Zuul d885ec8757 Merge "doc: remove rocky-specific nova-scheduler min placement version" 2018-07-26 01:14:22 +00:00
Zuul 99d2a34d1f Merge "Add nova-manage placement sync_aggregates" 2018-07-25 18:56:26 +00:00
Radoslav Gerganov 676a68bb67 doc: add missing permission for the vCenter service account
The service account that is being used by Nova needs "Profile-driven
storage view" permission for SPBM[0] to work. It is located under the
"Profile-driven storage" node in the Privileges tree.
This patch fixes the doc to address this.

[0] https://blueprints.launchpad.net/nova/+spec/vmware-spbm-support

Change-Id: I026b2394e6aa2fef8b1990923f9dcf8b3945175c
2018-07-25 11:53:17 +03: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
Stephen Finucane 803f85d7e6 scheduler: Start utilizing RequestSpec.network_metadata
Now that we have this information, we can use it as a pre-filtering for
suitable hosts.

With this patch we complete the blueprint. As a result, documentation
and release notes are bundled in the patch and previously inactive tests
are now enabled.

Part of blueprint numa-aware-vswitches

Change-Id: Ide262733ffd7714fdc702b31c61bdd42dbf7acc3
2018-07-24 15:05:07 -04:00
Zuul 88fb15c75c Merge "Add method to get cpu traits" 2018-07-24 16:42:38 +00:00
Matt Riedemann aa6360d683 Add nova-manage placement sync_aggregates
This adds the "nova-manage placement sync_aggregates"
command which will compare nova host aggregates to
placement resource provider aggregates and add any
missing resource provider aggregates based on the nova
host aggregates.

At this time, it's only additive in that the command
does not remove resource provider aggregates if those
matching nodes are not found in nova host aggregates.
That likely needs to happen in a change that provides
an opt-in option for that behavior since it could be
destructive for externally-managed provider aggregates
for things like ironic nodes or shared storage pools.

Part of blueprint placement-mirror-host-aggregates

Change-Id: Iac67b6bf7e46fbac02b9d3cb59efc3c59b9e56c8
2018-07-24 11:19:23 -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
Zuul 83057b8154 Merge "Enhance doc to guide user to use nova user" 2018-07-24 06:21:56 +00:00
jichenjc e0546870cd Enhance doc to guide user to use nova user
The document doesn't follow previous pattern to guide use
in using nova user to execute command and lead to issue

Change-Id: I795706a8f78ab4154bd39ce6259901800b34890e
Closes-Bug: 1781573
2018-07-23 23:48:33 +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
Matt Riedemann 660e328a25 Use consumer generation in _heal_allocations_for_instance
If we're updating existing allocations for an instance due
to the project_id/user_id not matching the instance, we should
use the consumer_generation parameter, new in placement 1.28,
to ensure we don't overwrite the allocations while another
process is updating them.

As a result, the include_project_user kwarg to method
get_allocations_for_consumer is removed since nothing else
is using it now, and the minimum required version of placement
checked by nova-status is updated to 1.28.

Change-Id: I4d5f26061594fa9863c1110e6152069e44168cc3
2018-07-23 14:09:55 -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
Dominic Schlegel 7b8e898807 docs: add nova host-evacuate command to evacuate documentation
Split up the evacuate instance documentation into two parts. One
for the existing single instance evacuation and a second new part
for the nova host-evacuate procedure.

Change-Id: Ibcdc2bc3f08e2fab23b9821feae0f489fb64a8f7
Closes-Bug: #1763039
2018-07-20 22:05:41 +00:00
ghanshyam 064f215172 Fix ServerMigrationSampleJsonTests to use sample files from version dir
The ServerMigrationSampleJsonTests functional tests set up
``self.api.microversion`` to 2.22 in its' setUp(), which use
sample files from non version dir.

For consistency, this commit makes these tests to use sample
files from versioned dir.

Change-Id: I9af2348cf7dba53e0fef4054bcedcd5b0c626f50
2018-07-19 05:13:24 +00:00
Zuul 5e045984bb Merge "API: add support to abort queued live migration in microversion 2.65" 2018-07-18 17:45:24 +00:00
Zuul 6742d0ad4f Merge "Transform metrics.update notification" 2018-07-18 09:25:23 +00:00
Zuul 5095dd412b Merge "Fix ServerMigrationSampleJsonTestsV2_24 to use its own sample file" 2018-07-18 03:34:47 +00:00
Takashi NATSUME c2439bac7c Transform metrics.update notification
The metrics.update notification has been transformed to
the versioned notification framework.

Change-Id: I2f6aba0c032baf181b103d2a16b8e768815170c9
Implements: bp versioned-notification-transformation-rocky
2018-07-18 09:13:27 +09: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
Zuul af2a54ec0e Merge "Replace support matrix ext with common library" 2018-07-17 14:25:34 +00:00
Kevin_Zheng 4cae503767 API: add support to abort queued live migration in microversion 2.65
This patch bumped API microversion to 2.65 to add support for
abort live migrations in ``queued`` and ``preparing`` status.

Part of blueprint abort-live-migration-in-queued-status

Change-Id: I4636a8d270ce01c1831bc951c4497ad472bc9aa8
2018-07-16 13:57:11 -04:00
Kevin_Zheng e8192177e8 Fix ServerMigrationSampleJsonTestsV2_24 to use its own sample file
The ServerMigrationSampleJsonTestsV2_24 functional tests set up
``self.api.microversion`` to 2.24 in its' setUp(), by doing this
it will not need to add its' own sample files, as there will be
no difference anyway. But this makes Tests that inherent from this
test class impossibe to run as the microversion will always been
overriden.

This patch fix it by change the tests to use self.microversion and
adds its' own sample files.

Part of blueprint abort-live-migration-in-queued-status

Change-Id: I07222efb8d566fa1dd395ef948eae6e6c4b13678
2018-07-16 13:57:11 -04:00
Zuul 529621bbb1 Merge "Transform instance.live_migration_force_complete notification" 2018-07-16 16:33:35 +00:00
Zuul ae40af621f Merge "Microversion 2.64 - Use new format policy in server group" 2018-07-16 15:41:57 +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
Gábor Antal 23efc549a1 Transform instance.live_migration_force_complete notification
The instance.live_migration_force_complete.start and
instance.live_migration_force_complete.end notifications have been
transformed to the versioned notification framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I2e9a474457a7597a9febc111b13a67ddcf45f29e
Implements: bp versioned-notification-transformation-rocky
2018-07-16 00:12:37 +09:00
Gábor Antal 6322cb6a18 Transform aggregate.update_prop notification
The aggregate.update_prop.start and aggregate.update_prop.end
notifications has been transformed to the versioned notification
framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I37b19573b6d0e1131c446fcec361f01fa2560f82
Implements: bp versioned-notification-transformation-rocky
2018-07-15 23:36:31 +09:00
Zuul 202c147f3c Merge "Transform instance.live_migration_rollback_dest notification" 2018-07-15 13:25:45 +00:00
Zuul 13dbe1a58d Merge "Transform instance.live_migration_post notification" 2018-07-15 13:14:54 +00:00