Commit Graph

47962 Commits

Author SHA1 Message Date
Alexandru Muresan 20196b74de Hyper-V: Perform proper cleanup after cold migration
At the moment, vif ports and volume connections are not cleaned up
on the source node after a cold migration.

This change addresses this issue by passing the network and block
device info objects when destroying the instance.

Change-Id: I4fd61a6ac09f194ad8be61e6dda092bfd402b806
Closes-Bug: #1705683
2017-08-30 17:50:11 +00:00
Jenkins da4083d7bc Merge "Reduce (notification) test duplication" 2017-08-30 16:47:33 +00:00
Jenkins be3a66781f Merge "Clarify the field usage guidelines" 2017-08-30 10:04:17 +00:00
rajat29 e9c30d62e6 Typo fix in admin doc ssh-configuration.html
Change-Id: Ibbf24ebb8fc0afa2fed1cda250fd04daf7fbffc2
Closes-bug: #1713750
2017-08-30 11:40:11 +05:30
Jenkins 2634693d45 Merge "Fix nova assisted volume snapshots" 2017-08-30 05:15:53 +00:00
Sean McCully 3d86ae664a iso8601.is8601.Utc No Longer Exists
iso8601.UTC is correct datetime UTC field object.
iso8601 >= 0.1.12 includes only iso8601.UTC for python3
while both UTC and Utc() for python2. Less then 0.1.12
included both UTC and Utc() for both python2/3.

Change-Id: I10b84a9cc7f0cc8ea213a377e4c4f16168b6e45b
Closes-Bug: #1713354
2017-08-29 19:26:55 -04:00
Lucian Petrut 074614f077 Fix nova assisted volume snapshots
When performing nova assisted volume snapshots, the nova api does
not receive an instance id, so there is not the usual instance
lookup from the cell which automatically targets the context for the
cell that the instance was pulled from, which is also where we'd get
the BDM.

Since we do not know which cell to target when fetching the BDM, we
have to iterate through *all* of them.

Closes-Bug: #1713735

Change-Id: Id2e3d3f177739a31d63790e4a1ae6ac41f438ddd
2017-08-29 16:31:14 -04:00
Jenkins a21cac214c Merge "Enhance support matrix document" 2017-08-29 17:10:44 +00:00
Vladyslav Drok 27fd55bb8a Fix _delete_inventory log message in report client
The message was referring to a compute node while in fact was logging
resource provider UUID.

Change-Id: I08702610f2ba11a0b3f4cf407a4afa4aa46cc429
2017-08-29 17:56:13 +03:00
Matt Riedemann 0b05655ef8 Add functional recreate test for live migration pre-check fails
This adds a functional test to recreate bug 1712411 where
the allocations created against the destination node are not
cleaned up by conductor when a MigrationPreCheckError happens
and a rechedule to another host happens (or max retries are
exceeded which is the case here with only two computes).

Change-Id: Ieee45521c7e362b7dd053b20d3c39dea330ca080
Relatd-Bug: #1712411
2017-08-29 10:34:22 -04:00
Stephen Finucane 46a5569fb1 doc: Remove deprecated call to sphinx.util.compat
This call generates the following deprecation warning:

  RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated
  and will be removed in Sphinx 1.7, please use docutils' instead.

Resolve this.

Change-Id: I73a182248a64d1e931a1bcb3989aa96f0aec71ed
2017-08-29 15:12:10 +01:00
Jenkins bd4a364e68 Merge "Updates to scheduling workflow doc" 2017-08-29 11:36:23 +00:00
Jenkins 5842c33bec Merge "tests: De-duplicate some graphics tests" 2017-08-29 11:34:40 +00:00
Jenkins b74115c2f5 Merge "Improve assertJsonEqual error reporting" 2017-08-29 06:10:25 +00:00
Jenkins 3c7a8185e6 Merge "Change default for [notifications]/default_publisher_id to $host" 2017-08-29 06:07:53 +00:00
Jenkins e22fd15739 Merge "Add placeholder migrations for Pike backports" 2017-08-29 05:50:56 +00:00
Jenkins 6c859e0d8c Merge "Prevent blank line at start of migration placeholders" 2017-08-29 05:40:21 +00:00
Jenkins 0e52b3fe68 Merge "Remove "dhcp_options_for_instance"" 2017-08-29 05:39:56 +00:00
Jenkins 213646c68c Merge "Fix a typo in code comment" 2017-08-29 05:37:05 +00:00
Jamie Lennox 5ec88acbe2 Remove unneeded attributes from context
In the last few cycles oslo.context has picked up a standard way of
representing most of the information available from a token context.
There's no more need for nova to manage these properties. Remove
properties that shadow the base oslo.context properties and helpers that
we don't need.

Change-Id: I1b11e405232b1acee053cb3bd30c18202d3b7c8f
2017-08-29 08:48:33 +10:00
Matt Riedemann 30fad527b2 Updates to scheduling workflow doc
There are a few updates here:

1. Fix the size of one of the existing boxes to fit the text.
2. Add a note at the top that anything about alternatives is
   future work since that didn't merge in Pike.
3. Add a box to note the call from scheduler to placement to
   make the "claim".

Change-Id: I8b6468766f4924d009b2567fe71c2f5d2733a6e3
2017-08-28 18:34:16 -04:00
Jenkins ab352afeb2 Merge "Cleanup unnecessary logic in os-volume_attachments controller code" 2017-08-28 21:27:19 +00:00
Jenkins a6c429bd79 Merge "Use enum value instead of string service name" 2017-08-28 21:23:41 +00:00
Jenkins 31cb3e1bc9 Merge "rename binary to source in versioned notifications" 2017-08-28 21:19:52 +00:00
Dan Smith e5152a2ee3 Add uuid online migration for migrations
This adds an online data migration for nova-manage that will background-
process migrations in the database to have a uuid.

Related to blueprint migration-allocations

Change-Id: I5b4b235b88367c361d38371d430d67ff583a906c
2017-08-28 13:24:09 -07:00
Dan Smith 477c01ed72 Add uuid to migration object and migrate-on-load
This adds the uuid field to the Migration object. We generate a uuid at
create time if not specified, and also when we load a migration out of
the database that doesn't have one.

Related to blueprint migration-allocations

Change-Id: I2577a51d3705af99ca66ab731d586f84b406652b
2017-08-28 13:24:09 -07:00
Dan Smith 9611c922ce Add uuid to migration table
This adds a uuid column to the migration table so that in a subsequent
patch we can start using them. Currently we only identify migrations
by internal database id, which is not only a problem for cellsv2, but
also not sufficient for us to use for making allocations that are owned
by a migration process.

Related to blueprint migration-allocations

Change-Id: I21dd6125094b13922b703caa34dffffab1789e1b
2017-08-28 13:24:09 -07:00
Dan Smith b198ad349a Add placeholder migrations for Pike backports
Change-Id: I8fd8c75ddfac917777c466d1e5416a37a368a175
2017-08-28 13:24:09 -07:00
Ed Leafe bca6ade42b Clarify the field usage guidelines
The note explaining not to use the Nova versions of object field types
mentions that they will be removed, implying that the types listed
there, such as Dict and List should not be used. This update clarifies
that it is only the Nova versions of these fields that will be removed,
and that it is perfectly fine to use the o.vo field types.

Change-Id: I4ae2392e97f5cbe59e5c9c94c06c48a5d9c9d7d3
2017-08-28 19:43:21 +00:00
Jenkins 12bf2688d0 Merge "Tests: Add cleanup of 'instances' directory" 2017-08-28 19:18:24 +00:00
Jenkins 2e15695197 Merge "libvirt: Fix getting a wrong guest object" 2017-08-28 19:17:54 +00:00
Jenkins 2a053cf7af Merge "VMware: Handle missing volume vmdk during detach" 2017-08-28 19:17:26 +00:00
Jenkins ba3c809cd8 Merge "VMware: Do not check if folder already exists in vCenter" 2017-08-28 18:52:18 +00:00
Jenkins c00648dc58 Merge "Update PCI passthrough doc for moved options" 2017-08-28 18:51:54 +00:00
Jenkins 80e75e402b Merge "Add formatting to scheduling activity diagram" 2017-08-28 18:51:24 +00:00
Jenkins c274dae443 Merge "Monkey patch the blockdiag extension" 2017-08-28 18:50:48 +00:00
Jenkins 56f3800ea6 Merge "docs: Document the scheduler workflow" 2017-08-28 18:50:24 +00:00
Jenkins 7b061320fb Merge "Remove useless error handling in prep_resize" 2017-08-28 16:40:32 +00:00
Jenkins 2100bed264 Merge "Deprecate CONF.monkey_patch" 2017-08-28 15:45:23 +00:00
Jenkins 65df8d4bec Merge "conf: Allow users to unset 'keymap' options" 2017-08-28 15:45:01 +00:00
Jenkins c12596c125 Merge "Add device tag support info in support matrix" 2017-08-28 15:44:35 +00:00
Jenkins ea0e41a880 Merge "Don't warn on expected network-vif-unplugged events" 2017-08-28 15:44:07 +00:00
Eric Fried 4ec1668642 [Trivial] docstrings, typos, minor refactoring
As I was reading code trying to understand how PCI devices are handled,
I fixed some typos, added some docstrings, and did some minor
refactoring for readability/maintainability.

Change-Id: I7701c15207f4d386d46d8b0121bb44e12084f09b
2017-08-28 08:33:58 -05:00
Eric Fried 9c7d73195e Update PCI passthrough doc for moved options
The ``pci_passthrough_whitelist`` and ``pci_alias`` options in the
``[DEFAULT]`` section were deprecated and replaced by
``passthrough_whitelist`` and ``alias`` in the ``[pci]`` section,
respectively, in ocata via [1]. However, the PCI passthrough
documentation [2] was missed.

[1] https://review.openstack.org/#/c/356604/
[2] https://docs.openstack.org/nova/pike/admin/pci-passthrough.html

Change-Id: I77ec8e9b4f90caa5a1e803d248fbc7d4e8db4005
Closes-Bug: #1713502
2017-08-28 08:29:22 -05:00
Jenkins 61cf706509 Merge "Refactor libvirt.utils.execute() away." 2017-08-28 13:19:20 +00:00
Stephen Finucane e8546e5946 tests: De-duplicate some graphics tests
These are doing variations of the same thing. Let's unify some of that.

Change-Id: I472cd9ca1f3532a85d72f2dacc5291065899ff21
2017-08-28 14:00:13 +01:00
Stephen Finucane d983234288 conf: Allow users to unset 'keymap' options
Defining the 'keymap' option in libvirt results in the '-k' option being
passed through to QEMU [1][2]. This QEMU option has some uses, primarily
for users interacting with QEMU via stdin on the text console. However,
for users interacting with QEMU via VNC or Spice, like nova users do, it
is strongly recommended to never add the "-k" option. Doing so will
force QEMU to do keymap conversions which are known to be lossy. This
disproportionately affects users with non-US keyboard layouts, who would
be better served by relying on the guest OS to manage this.

In the long term, we would like to deprecate these options. However, we
must do this in three parts. This part allows users to unset the options
and warns users who have them set about the side effects. This change is
intended to be backported. A future change will fully deprecate the
options. Finally, after the deprecation cycle has passed, we can remove
these options in their entirety.

[1] https://github.com/libvirt/libvirt/blob/v1.2.9-maint/src/qemu/qemu_command.c#L6985-L6986
[2] https://github.com/libvirt/libvirt/blob/v1.2.9-maint/src/qemu/qemu_command.c#L7215-L7216

Change-Id: I6b1d719db0537b0f53768dbb00a5b4d01c85ba3a
Related-Bug: #1682020
2017-08-28 09:53:50 +01:00
Jenkins 6119f6ff51 Merge "VMware: use WithRetrieval in ds_util module" 2017-08-26 02:23:04 +00:00
Jenkins b410d1c397 Merge "VMware: use WithRetrieval in get_network_with_the_name" 2017-08-26 02:13:14 +00:00
Jenkins a8d4d500b0 Merge "fix a typo in format_cpu_spec doc" 2017-08-26 01:29:38 +00:00