]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
8 years agoStop failed live-migrates getting stuck migrating
John Garbutt [Tue, 7 Feb 2017 19:12:50 +0000 (19:12 +0000)]
Stop failed live-migrates getting stuck migrating

When there are failures in driver.cleanup, we are seeing live-migrations
that get stuck in the live-migrating state. While there has been a patch
to stop the cause listed in the bug this closes, there are other
failures (such as a token timeout when talking to cinder or neutron)
that could trigger this same failure mode.

When we hit an error this late in live-migration, it should be a very
rare event, so its best to just put the instance and migration into an
error state, and help alert both the operator and API user to the
failure that has occurred.

Closes-Bug: #1662626

Change-Id: Idfdce9e7dd8106af01db0358ada15737cb846395
(cherry picked from commit b56f8fc2d1392f4675a5baae0977e4817a362159)

8 years agoMerge "Do not attempt to load osinfo if we do not have os_distro" into stable/ocata
Jenkins [Thu, 13 Apr 2017 22:53:31 +0000 (22:53 +0000)]
Merge "Do not attempt to load osinfo if we do not have os_distro" into stable/ocata

8 years agoMerge "libvirt: conditionally set script path for ethernet vif types" into stable...
Jenkins [Mon, 10 Apr 2017 23:12:29 +0000 (23:12 +0000)]
Merge "libvirt: conditionally set script path for ethernet vif types" into stable/ocata

8 years agoMerge "libvirt: set vlan tag for macvtap on SR-IOV VFs" into stable/ocata
Jenkins [Mon, 10 Apr 2017 23:04:06 +0000 (23:04 +0000)]
Merge "libvirt: set vlan tag for macvtap on SR-IOV VFs" into stable/ocata

8 years agoMerge "Updated from global requirements" into stable/ocata
Jenkins [Mon, 10 Apr 2017 22:51:36 +0000 (22:51 +0000)]
Merge "Updated from global requirements" into stable/ocata

8 years agoPerform old-style local delete for shelved offloaded instances
Matt Riedemann [Wed, 5 Apr 2017 20:27:41 +0000 (16:27 -0400)]
Perform old-style local delete for shelved offloaded instances

This fixes a regression from some local delete code added for cells v2
where it assumed that if an instance did not have a host, it wasn't
scheduled to a cell yet. That assumption misses the fact that the
instance won't have a host if it was shelved offloaded. And to be
shelved offloaded, the instance had to have first been built on a host
in a cell.

So we simply duplicate the same check as later in the _delete() method
for instance.host or shelved-offloaded to decide what the case is.

Obviously this is all a giant mess of duplicate delete path code that
needs to be unwound, and that's the plan, but first we're fixing
regressions and then we can start rolling this duplication all back
so we can get back to the single local delete flow that we know and love.

Change-Id: Ie2063f621618c1d90aeb59f0f1d7da351862ea9f
Closes-Bug: #1678326
(cherry picked from commit 9245bbf79ddbfd8a2e2310af654711f9d3a547b1)

8 years agoRegression test for local delete with an attached volume
Matt Riedemann [Thu, 23 Mar 2017 19:49:27 +0000 (15:49 -0400)]
Regression test for local delete with an attached volume

Once an instance is in a cell and we do a local delete from
the API, we aren't actually detaching volumes and destroying
BDMs.

Related-Bug: #1675570

Change-Id: Ie3e2dfd4b0f1bb3dff4080f460bf8bb40d69f4f4
(cherry picked from commit 3ae12fdc6f428fc500f5c234f03a8ffc8286e7ba)

8 years agoSet size/status during image create with FakeImageService
Matt Riedemann [Fri, 24 Mar 2017 16:06:07 +0000 (12:06 -0400)]
Set size/status during image create with FakeImageService

This is needed for an upcoming change which introduces
a functional test which shelves a server. Shelving a server
creates a snapshot image and in the real world, glance sets
the size and status attributes on the image when it's created
in glance. Our FakeImageService wasn't doing that, so tests
that are running at the same time with the same fake noauth
credentials are listing images and picking up the shelve
snapshot image which doesn't have size or status set and
that produces a KeyError in the API code.

Change-Id: I70d1505c915e80156aaa4d27a7d47e437b40b6f1
(cherry picked from commit 371a2512a7f27e01592580150faa1cf7517c8979)

8 years agoCommit usage decrement after destroying instance
Matt Riedemann [Sat, 1 Apr 2017 01:08:55 +0000 (21:08 -0400)]
Commit usage decrement after destroying instance

This fixes a regression in Ocata where we were always
decrementing quota usage during instance delete even
if we failed to delete the instance. Now the reservation
is properly committed after the instance is destroyed.

The related functional test is updated to show this working
correctly now.

Conflicts:
      nova/compute/api.py
      nova/tests/unit/compute/test_compute_api.py

NOTE(mriedem): The conflict is due to not having change
edf51119fa59ff8a3337abb9107a06fa33d3c68f in stable/ocata.

Change-Id: I5200e72c195e12b5a069cbae3f209492ed569fb4
Closes-Bug: #1678326
(cherry picked from commit 5c1af55cbe526dea72308767df8709064ffae6a8)

8 years agoAdd regression test for quota decrement bug 1678326
Matt Riedemann [Fri, 31 Mar 2017 23:56:14 +0000 (19:56 -0400)]
Add regression test for quota decrement bug 1678326

This was spotted from someone validating the fix for
bug 1670627. They reported that even though they failed
to delete an instance in ERROR state that was in cell0,
the quota usage was decremented.

This is because we committed the quota reservation
to decrement the usage before actually attempting to destroy
the instance, rather than upon successful deletion.

The rollback after InstanceNotFound is a noop because of
how the Quotas.rollback method noops if the reservations
were already committed. That is in itself arguably a bug,
but not fixed here, especially since the counting quotas
work in Pike will remove all of the reservations commit and
rollback code.

Change-Id: I12d1fa1a10f9014863123ac9cc3c63ddfb48378e
Partial-Bug: #1678326
(cherry picked from commit 032937ce51c64e0f5292ca3149e3b244863fffca)

8 years agoShort-circuit local delete path for cells v2 and InstanceNotFound
Matt Riedemann [Wed, 5 Apr 2017 19:12:41 +0000 (15:12 -0400)]
Short-circuit local delete path for cells v2 and InstanceNotFound

When we're going down the local delete path for cells v2 in the API
and instance.destroy() fails with an InstanceNotFound error, we are
racing with a concurrent delete request and know that the instance
is alread deleted, so we can just return rather than fall through to
the rest of the code in the _delete() method, like for BDMs and
console tokens.

Conflicts:
      nova/compute/api.py

NOTE(mriedem): The conflict is due to not having change
edf51119fa59ff8a3337abb9107a06fa33d3c68f in stable/ocata.

Change-Id: I58690a25044d2804573451983323dde05be9e5d6
Closes-Bug: #1680211
(cherry picked from commit 5a9cc2fb7af3e3a9db44646bbd23cfcfb16891f5)

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 3 Apr 2017 17:35:26 +0000 (17:35 +0000)]
Updated from global requirements

Change-Id: I534ab3511e68dfd1ba6c45161c0015ae8ad7f5ca

8 years agoDo not attempt to load osinfo if we do not have os_distro
Matt Riedemann [Fri, 24 Mar 2017 02:07:03 +0000 (22:07 -0400)]
Do not attempt to load osinfo if we do not have os_distro

We get a warning logged every time we try to load up osinfo
with an image metadata that does not have the 'os_distro'
property set. We should be smarter and just not try to load
osinfo at all if we know we cannot get results.

Change-Id: I79ebea3ed222fb0db01d0a33c62a677d0381f66c
Closes-Bug: #1675602
(cherry picked from commit 9910bade6fe7ffde1b11170f894e2876ed8ccdb4)

8 years agoAdd release note for CVE-2017-7214
Matt Riedemann [Tue, 21 Mar 2017 21:54:43 +0000 (17:54 -0400)]
Add release note for CVE-2017-7214

Change-Id: I1f5b772bff8fa2dc508c4bdd3dd1f32838594786
Related-Bug: #1673569
(cherry picked from commit 3f985f1eda6f29180878a3d21c20c5057179486a)

8 years agolibvirt: conditionally set script path for ethernet vif types
Matt Riedemann [Tue, 21 Mar 2017 17:18:08 +0000 (13:18 -0400)]
libvirt: conditionally set script path for ethernet vif types

Change I4f97c05e2dec610af22a5150dd27696e1d767896 worked around
a change introduced in libvirt 1.3.3 where the script path on
a LibvirtConfigGuestInterface could not be the emptry string
because libvirt would literally take that as the path and couldn't
resolve it, when in fact it used to indicate to libvirt that the
script path is a noop. This has been fixed in libvirt 3.1.

On Ubuntu with libvirt<1.3.3, if the script path is None then
it defaults to /etc/qemu-ifup which is blocked by AppArmor.

So this change adds a conditional check when setting the script
path value based on the libvirt version so we can straddle releases.

Change-Id: I192c61b93bd3736fdfe16b6a6906d58997d3eef9
Closes-Bug: #1665698
Related-Bug: #1649527
(cherry picked from commit a41d265a19b7bcb1af8fc179bf864e00023c6cc6)

8 years agolibvirt: set vlan tag for macvtap on SR-IOV VFs
Vladik Romanovsky [Tue, 17 Jan 2017 09:56:47 +0000 (04:56 -0500)]
libvirt: set vlan tag for macvtap on SR-IOV VFs

Starting from version 1.3.5, Libvirt allows to set a vlan tag for macvtap
passthrough mode on SR-IOV VFs. Libvirt also removes any vlan tags that
has been set externally, by the ip link command.

In order to support the older libvirt versions, this code will make
the behaviour backward compatible by checking the libvirt version.
This can be completely removed once the minimum libvirt version will increase.

Change-Id: Ia14e78e0eda81b8d29d5aa6e07e68777665d0710
Closes-Bug: #1657035
(cherry picked from commit bf3ba76a91e362c0b3b8094964adc06f6a4ec62e)

8 years agoget_model method missing for Ploop image
Evgeny Antyshev [Mon, 6 Mar 2017 14:27:06 +0000 (14:27 +0000)]
get_model method missing for Ploop image

Image.get_model is called in partition injection code,
and now inject partition attempt fails unconditionally.
This patch makes use of disk/api.py inject_data failure tolerance:
it doesn't fail unless injected data is mandatory.

Closes-Bug: 1670642
Change-Id: I6c68693be818219f78d6fcda019b867066396b29
(cherry picked from commit d629d4e42c04756444a79e9ac15f3f2192c47b52)

8 years agoMerge "do not include context to exception notification" into stable/ocata
Jenkins [Mon, 20 Mar 2017 10:55:33 +0000 (10:55 +0000)]
Merge "do not include context to exception notification" into stable/ocata

8 years agodo not include context to exception notification
Balazs Gibizer [Fri, 17 Mar 2017 10:24:49 +0000 (11:24 +0100)]
do not include context to exception notification

The wrap_exception decorator optionally emited a notification.
Based on the code comments the original intention was not to include the
context to that notification due to security reasons. However the
implementation did included the context to the payload of the legacy
notification.

Recently we saw circural reference errors during the payload serialization
of this notification. Based on the logs the only complex data structure
that could cause circural reference is the context. So this patch
removes the context from the legacy exception notification.

The versioned exception notification is not affected as it does not
contain the args of the decorated function.

Closes-Bug: #1673375
Change-Id: I1d217620e52d45595a3e0e49ed57b4ab33cd1688
(cherry picked from commit 3bf177a59cfd0b4e74dba256c3466ba2ea9bfbf7)

8 years agoAdd populate_retry to schedule_and_build_instances
ShunliZhou [Fri, 10 Mar 2017 06:05:57 +0000 (14:05 +0800)]
Add populate_retry to schedule_and_build_instances

When boot an instance and failed on the compute node, nova will
not retry to boot on other host.

Since https://review.openstack.org/#/c/319379/ change the create
instance workflow and called schedule_and_build_instances which
not populate the retry into filter properties. So nova will not
retry when boot on compute fail. This patch populate retry to
instance properties when call schedule_and_build_instances.

Conflicts:
nova/tests/functional/regressions/test_bug_1671648.py

NOTE(mriedem): The conflict is due to putting the functional
test fix before this bug fix in the backport series.

Change-Id: Ifdaddcd265a7fe8282499e27043936f8212610ad
Closes-Bug: #1671648
(cherry picked from commit cb4ce72f5f092644aa9b84fa58bcb9fd89b6bedc)

8 years agoFix functional regression/recreate test for bug 1671648
melanie witt [Thu, 16 Mar 2017 18:24:23 +0000 (18:24 +0000)]
Fix functional regression/recreate test for bug 1671648

There are a couple of issues with the test:

  1. It doesn't consider both hosts from the two compute services
     during scheduling.

  2. There is a race where sometimes claims.Claim.__init__ won't
     be called because if the RT instance_claim runs before
     update_available_resource has run, it will create a
     claims.NopClaim instead.

This adds the RetryFilter to enabled_filters, adds set_nodes() calls
to set the nodenames of each compute service to match its host,
resulting in consideration of both hosts for scheduling, and stubs
resource_tracker.ResourceTracker.instance_claim instead of
claims.Claim.__init__.

Conflicts:
nova/tests/functional/regressions/test_bug_1671648.py

NOTE(mriedem): The conflict is due to this patch coming after
cb4ce72f5f092644aa9b84fa58bcb9fd89b6bedc in Pike. Since this
is a fix for the functional test that the bug fix builds on,
we actually want this to come *before* the bug fix backport.

Related-Bug: #1671648

Change-Id: I541c03a7960b8f135b005c43cb5c7bcb0b63b9ae
(cherry picked from commit b6b5438c3ddeedab6c7f83d1998d283f1bb503bc)

8 years agoAdd a functional regression/recreate test for bug 1671648
Matt Riedemann [Wed, 15 Mar 2017 20:58:11 +0000 (16:58 -0400)]
Add a functional regression/recreate test for bug 1671648

This adds a test which recreates the regression bug introduced
in Ocata where build retries are not populated when creating
instances in conductor for cells v2.

The change that fixes the bug will go on top of this and modify
the test to show the bug is fixed.

Change-Id: Ie9e955d79b4e1441092183135b3f70b003c94db5
Related-Bug: #1671648
(cherry picked from commit 72e1506101b131b51fbe77acc0af19f36899c28d)

8 years agoMerge "Add release notes for 15.0.1 Ocata bug fix release" into stable/ocata
Jenkins [Tue, 14 Mar 2017 19:45:39 +0000 (19:45 +0000)]
Merge "Add release notes for 15.0.1 Ocata bug fix release" into stable/ocata

8 years agoMerge "Decrement quota usage when deleting an instance in cell0" into stable/ocata
Jenkins [Tue, 14 Mar 2017 19:45:16 +0000 (19:45 +0000)]
Merge "Decrement quota usage when deleting an instance in cell0" into stable/ocata

8 years agoMerge "Add regression test for bug 1670627" into stable/ocata
Jenkins [Tue, 14 Mar 2017 19:44:55 +0000 (19:44 +0000)]
Merge "Add regression test for bug 1670627" into stable/ocata

8 years agoMerge "Correctly set up deprecation warning" into stable/ocata
Jenkins [Tue, 14 Mar 2017 19:41:23 +0000 (19:41 +0000)]
Merge "Correctly set up deprecation warning" into stable/ocata

8 years agoAdd release notes for 15.0.1 Ocata bug fix release
Matt Riedemann [Tue, 14 Mar 2017 16:34:59 +0000 (12:34 -0400)]
Add release notes for 15.0.1 Ocata bug fix release

There are several high severity, high impact bug fixes going
into the upcoming 15.0.1 Ocata release. This change adds release
notes highlighting the most important fixes along with a known
issue for another regression bug that is not yet fixed in Ocata,
but should be shortly.

Change-Id: I06921fed0b1acdd48a23f24b5c42c19f9fb032e4

8 years agoMerge "Updated from global requirements" into stable/ocata
Jenkins [Tue, 14 Mar 2017 12:33:49 +0000 (12:33 +0000)]
Merge "Updated from global requirements" into stable/ocata

8 years agoDecrement quota usage when deleting an instance in cell0
Matt Riedemann [Thu, 9 Mar 2017 02:51:07 +0000 (21:51 -0500)]
Decrement quota usage when deleting an instance in cell0

When we fail to schedule an instance, e.g. there are no hosts
available, conductor creates the instance in the cell0 database
and deletes the build request. At this point quota usage
has been incremented in the main 'nova' database.

When the instance is deleted, the build request is already gone
so _delete_while_booting returns False and we lookup the instance
in cell0 and delete it from there, but that flow wasn't decrementing
quota usage like _delete_while_booting was.

This change adds the same quota usage decrement handling that
_delete_while_booting performs.

NOTE(mriedem): This change also pulls in some things from
I7de87dce216835729283bca69f0eff59a679b624 which is not being
backported to Ocata since in Pike it solves a slightly different
part of this quota usage issue. In Pike the cell mapping db_connection
is actually stored on the context object when we get the instance
from nova.compute.api.API.get(). So the fix in Pike is slightly
different from Ocata. However, what we need to pull from that Pike
change is:

1. We need to target the cell that the instance lives in to get the
   flavor information when creating the quota reservation.

2. We need to change the functional regression test to assert that
   the bug is fixed.

The code and tests are adjusted to be a sort of mix between both
changes in Pike without requiring a full backport of the 2nd
part of the fix in Pike.

Change-Id: I4cb0169ce0de537804ab9129bc671d75ce5f7953
Partial-Bug: #1670627
(cherry picked from commit 018068c4caac324643c7c6a4360fad855dd096eb)

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 13 Mar 2017 22:39:30 +0000 (22:39 +0000)]
Updated from global requirements

Change-Id: I08973b4c71993833466633e61c3258bddcd8dba4

8 years agoAdd regression test for bug 1670627
Matt Riedemann [Thu, 9 Mar 2017 16:40:33 +0000 (11:40 -0500)]
Add regression test for bug 1670627

This adds a functional regression test for bug 1670627.

This is the recreate scenario. Patches that are proposed to
fix the bug will build on top of this and change it's assertions
to know when it's properly fixed.

Change-Id: I872a3fd5cfd3dd869f74cd3fd0aa5da411b1fec3
Related-Bug: #1670627
(cherry picked from commit 500282d867a15b441068d9327ddcb9ae69f41b7d)

8 years agoFix missing instance.delete notification
Balazs Gibizer [Thu, 9 Mar 2017 16:28:02 +0000 (17:28 +0100)]
Fix missing instance.delete notification

The I8742071b55f018f864f5a382de20075a5b444a79 introduced cases when an
instance object is destroyed without the instance.delete notification
being emitted.

This patch adds the necessary notification to restore legacy
behaviour.

Closes-Bug: #1665263
Change-Id: I55ce90ca34c927c5dcd340fa5bdb0607a4ad4971
(cherry picked from commit f9ac9531fb3259fe83642dce92d0d1901d0f067e)

8 years agoMerge "Ensure that instance directory is removed after success migration/resize"...
Jenkins [Mon, 13 Mar 2017 16:30:21 +0000 (16:30 +0000)]
Merge "Ensure that instance directory is removed after success migration/resize" into stable/ocata

8 years agoCorrectly set up deprecation warning
Ionuț Bîru [Fri, 10 Mar 2017 15:22:22 +0000 (17:22 +0200)]
Correctly set up deprecation warning

In the current state, no warning was output in the logs.
With this fix, a warning is output in the logs and the value from
[DEFAULT] is used correctly.

Change-Id: I6a7f856e583aed31a3316c0b174a5559cd09e34b
Closes-Bug: #1671847
(cherry picked from commit abd18a12e3e6b571d35499857a005a7bfd7237a4)

8 years agoconf: Fix invalid rST comments
Stephen Finucane [Tue, 21 Feb 2017 20:34:50 +0000 (15:34 -0500)]
conf: Fix invalid rST comments

These were breaking the openstack-docs-tools build, which is used to
build the central config guide. We should probably add a unit tests to
ensure all config options use valid (or at least, error-free) rST, but
that's a job for another day.

Change-Id: I28a5df801fa594180ab374569f06791f05938ba2
(cherry picked from commit e7664767014a562ba12b023d699415b11b9f65ea)

8 years agoMerge "Fix unspecified bahavior on GET /servers/detail?tenant_id=X as admin" into...
Jenkins [Wed, 8 Mar 2017 12:33:09 +0000 (12:33 +0000)]
Merge "Fix unspecified bahavior on GET /servers/detail?tenant_id=X as admin" into stable/ocata

8 years agoMerge "Only create vendordata_dynamic ksa session if needed" into stable/ocata
Jenkins [Wed, 8 Mar 2017 12:30:53 +0000 (12:30 +0000)]
Merge "Only create vendordata_dynamic ksa session if needed" into stable/ocata

8 years agoMerge "Fix doc generation warnings" into stable/ocata
Jenkins [Wed, 8 Mar 2017 12:30:32 +0000 (12:30 +0000)]
Merge "Fix doc generation warnings" into stable/ocata

8 years agoMerge "libvirt: pass log_path to _create_pty_device for non-kvm/qemu" into stable...
Jenkins [Wed, 8 Mar 2017 12:30:11 +0000 (12:30 +0000)]
Merge "libvirt: pass log_path to _create_pty_device for non-kvm/qemu" into stable/ocata

8 years agoRemove unused placement_database config options
Matt Riedemann [Tue, 7 Mar 2017 01:25:55 +0000 (20:25 -0500)]
Remove unused placement_database config options

The placement_database config options were added in Newton
but the actual code to use the options was reverted and is
not used. The help text actually has a typo (Ocata was 15.0.0,
not 14.0.0) and, more importantly, the help text makes it sound
like you should really be setting up a separate database for the
placement service but we don't actually use these options, we use
the api_database options for all of the placement data models.

To avoid confusion until this is actually supported, let's just
remove the options which should have been cleaned up as part of
39fb302fd9c8fc57d3e4bea1c60a02ad5067163f anyway.

Conflicts:
        nova/tests/functional/api/openstack/placement/fixtures.py

NOTE(mriedem): The conflict is due to not having change
a598af9de6536d8b66046fa329d9960edc706aed in stable/ocata.

Change-Id: I31293ac4689630e4113588ab2c6373cf572b8f38
Closes-Bug: #1670419
(cherry picked from commit 7439e9473617a871c032107ab85b1b623369975f)

8 years agoMerge "Fix spice channel type" into stable/ocata
Jenkins [Tue, 7 Mar 2017 17:20:21 +0000 (17:20 +0000)]
Merge "Fix spice channel type" into stable/ocata

8 years agolibvirt: pass log_path to _create_pty_device for non-kvm/qemu
Matt Riedemann [Tue, 7 Mar 2017 00:00:31 +0000 (19:00 -0500)]
libvirt: pass log_path to _create_pty_device for non-kvm/qemu

log_path is required in _create_pty_device if:

1. serial consoles are disabled
2. libvirt/qemu are new enough that they support virtlogd

This was working fine for kvm and qemu since _create_consoles_s390x
and _create_consoles_qemu_kvm pass in the log_path, but for the
non-kvm/qemu cases, like xen, the log_path wasn't provided.

This wasn't caught by the XenProject CI since it's using libvirt
1.3.1 which does not have virtlogd support so this path was
not exercised and apparently not unit tested either.

A release note is provided since this is a pretty severe bug if
you're running new enough libvirt/qemu and not using kvm/qemu as
the virt type because CONF.serial_console.enabled is False by
default so you're going to have failed server creates immediately
upon upgrading to Ocata.

Change-Id: I7f60db1d243a75b90e3c0e53201cb6000ee95778
Closes-Bug: #1670522
(cherry picked from commit ac61abb7c74f1a8e3e9134bc045455fd9fdac0fa)

8 years agoMerge "Updated from global requirements" into stable/ocata
Jenkins [Mon, 6 Mar 2017 23:57:19 +0000 (23:57 +0000)]
Merge "Updated from global requirements" into stable/ocata

8 years agoMerge "libvirt: Handle InstanceNotFound exception" into stable/ocata
Jenkins [Mon, 6 Mar 2017 23:57:03 +0000 (23:57 +0000)]
Merge "libvirt: Handle InstanceNotFound exception" into stable/ocata

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 27 Feb 2017 15:18:18 +0000 (15:18 +0000)]
Updated from global requirements

Change-Id: Ib5eb36d1afd3a8a7461b9fdff46a9c0cfe412e2b

8 years agoMerge "libvirt: Remove redundant bdm serial mangling and saving during swap_volume...
Jenkins [Mon, 6 Mar 2017 10:55:00 +0000 (10:55 +0000)]
Merge "libvirt: Remove redundant bdm serial mangling and saving during swap_volume" into stable/ocata

8 years agoFix doc generation warnings
Takashi NATSUME [Thu, 26 Jan 2017 05:25:22 +0000 (14:25 +0900)]
Fix doc generation warnings

Fix the following warnings.

- A warning in config sample generation
- Warnings about nova-status.rst

Change-Id: Ifcc3b4a89eeea9d0dd62e2a8b560c5e6a9ff3d1a
Closes-Bug: #1659485
(cherry picked from commit 1585ca189eb6e194441f9dff94c7a710d96e1acc)

8 years agoMerge "hyperv: make sure to plug OVS VIFs after resize/migrate" into stable/ocata
Jenkins [Mon, 6 Mar 2017 05:30:21 +0000 (05:30 +0000)]
Merge "hyperv: make sure to plug OVS VIFs after resize/migrate" into stable/ocata

8 years agolibvirt: Handle InstanceNotFound exception
Stephen Finucane [Wed, 22 Feb 2017 18:02:47 +0000 (13:02 -0500)]
libvirt: Handle InstanceNotFound exception

In 'ad1c7ac2', we stopped returning NovaException from certain libvirt
operations in favour of more specific exception types. Unfortunately, as
part of this changeover we missed an exception type. Correct this
oversight.

Change-Id: I376ebda6c4626df8be2e827bc735116a90528654
Resolves-bug: #1667040
(cherry picked from commit 434a953190647c398160ca815e7ce3c0796fc5a4)

8 years agoFix spice channel type
m4cr0v [Tue, 13 Dec 2016 08:17:34 +0000 (16:17 +0800)]
Fix spice channel type

nova generate wrong spice channel type 'pty', which should be 'spicevmc'
Closes-Bug: #1634495
Change-Id: I58e9a8df9f40f900eeabd9d40429663cbbedb8d6
(cherry picked from commit f4be97d8cf8811a64a2d9f7d990e79d45cdf0d62)

8 years agoOnly create vendordata_dynamic ksa session if needed
Matt Riedemann [Fri, 17 Feb 2017 18:31:41 +0000 (13:31 -0500)]
Only create vendordata_dynamic ksa session if needed

We're logging a warning about vendordata dynamic auth
not being configured every time we create a server with
a config drive. The dynamic vendordata v2 stuff is all
optional and controlled via configuring:

CONF.api.vendordata_dynamic_targets

This change only attempts to create the ksa session
when we try to make a request, which would only happen
if CONF.api.vendordata_dynamic_targets is configured.

Change-Id: I1a6f6776670a2fa1439782d10d2e0777df2683ae
Closes-Bug: #1665693
(cherry picked from commit 97e14fa3f39839491ff6c7de9572d277bec8f885)

8 years agoEnsure that instance directory is removed after success migration/resize
Maciej Józefczyk [Thu, 23 Feb 2017 11:56:04 +0000 (12:56 +0100)]
Ensure that instance directory is removed after success migration/resize

Nova recreates instance directory on source host after successful migration/resize.
This patch removes directory of migrated instance from source host.

Change-Id: Ic683f83e428106df64be42287e2c5f3b40e73da4
Closes-Bug: #1666831
(cherry picked from commit 6347baf3d09036525b7f6df991ae440d558f9cc3)

8 years agoMerge "Fix misuse of assertTrue" into stable/ocata
Jenkins [Wed, 1 Mar 2017 16:59:13 +0000 (16:59 +0000)]
Merge "Fix misuse of assertTrue" into stable/ocata

8 years agoFix unspecified bahavior on GET /servers/detail?tenant_id=X as admin
Jordan Pittier [Fri, 27 Jan 2017 14:22:25 +0000 (15:22 +0100)]
Fix unspecified bahavior on GET /servers/detail?tenant_id=X as admin

When an admin calls /v2.1/servers/detail?tenant_id=XX, then the
`get_all` method of nova.compute.api.API is called with 2
conflicting search options: {'tenant_id': XX, 'project_id': YY}.
But because, latter on, in that `get_all` method we define a dict
called filter_mapping, on which we iter upon, which value takes
precedence depends on the order in which the dict is iterated upon.

As the order in unpredictable and varies between Py2 and Py3, this
is problematic. Especially, on Python 2 hash randomization is
disabled by default but it's enabled by default on Py3 (unless
the PYTHONHASHSEED env var is set to a fixed value) [0]

The (unreliable) order we iterate on items of that `filter_mapping`
dict is why the Tempest test_list_servers_by_admin_with_specified_tenant
test randomly fails on Py35.

This patch ensures that, if the all_tenants search option is
not set, then the `tenant_id` search option is ignored. Note that
this *is* the current behavior on Py27, as documented in lp:#1185290
and tested by Tempest here [1].

[0] https://docs.python.org/dev/using/cmdline.html#cmdoption-R
[1] https://github.com/openstack/tempest/blob/fe1a8e289c2d79df29beaa6b3603afe5feb60fb3/tempest/api/compute/admin/test_servers.py#L96

Change-Id: I1a74ef0f16da14444029c0f184b433df367ffb41
Closes-Bug: #1659811
(cherry picked from commit f702762934e0a46449091243a39ad5d57108b23f)

8 years agoIgnore deleted services in minimum version calculation
Dan Smith [Mon, 27 Feb 2017 15:52:29 +0000 (07:52 -0800)]
Ignore deleted services in minimum version calculation

When we go to detect the minimum version for a given service, we
should ignore any deleted services. Without this, we will return
the minimum version of all records, including those that have been
deleted with "nova service-delete". This patch filters deleted
services from the query.

Closes-Bug: #1668310
Change-Id: Ic96a5eb3728f97a3c35d2c5121e6fdcd4fd1c70b
(cherry picked from commit c79770e615799cd4457ac603dcad4fb3452fe2bc)

8 years agoMerge "Allow nova-status to work with custom ca for placement" into stable/ocata
Jenkins [Fri, 24 Feb 2017 17:38:15 +0000 (17:38 +0000)]
Merge "Allow nova-status to work with custom ca for placement" into stable/ocata

8 years agoAllow nova-status to work with custom ca for placement
Sean Dague [Wed, 22 Feb 2017 21:43:51 +0000 (16:43 -0500)]
Allow nova-status to work with custom ca for placement

Change-Id: I9f8b840f5a99d11dd5b688c4bf364315846ecc51
Closes-Bug: #1666936
(cherry picked from commit adbf28f8194f901cd99a49da0376475986993f88)

8 years agoUse the keystone session loader in the placement reporting
Gyorgy Szombathelyi [Tue, 21 Feb 2017 14:04:13 +0000 (15:04 +0100)]
Use the keystone session loader in the placement reporting

Using load_session_from_conf_options has the advantage that it honors
session settings like cafile and insecure, to make use of non-system TLS
certificates (or disable certificate checks at all). Also client
certificates and timeout values can be specified, too.

Closes-Bug: #1666936
Change-Id: I510a2683958fc8c3aaca9293b4280f325b9551fc
(cherry picked from commit a377fc5988e9a6057bd14617879a7cbcc3c8bb81)

8 years agoSkip soft-deleted records in 330_enforce_mitaka_online_migrations
melanie witt [Fri, 17 Feb 2017 17:27:57 +0000 (17:27 +0000)]
Skip soft-deleted records in 330_enforce_mitaka_online_migrations

The 330_enforce_mitaka_online_migrations migration considers
soft-deleted records as unmigrated (the blocker migration uses the
select function from sqlalchemy), but the online migrations only
migrate non-deleted records (the migrations use the model_query
function which defaults to read_deleted='no'). So even after running
all of the online migrations, operators can get stuck until they can
hard delete any soft-deleted compute_nodes, aggregates, and
pci_devices records they have.

Closes-Bug: #1665719

Change-Id: I2285005098b7dab7753366f53667ff8d4532d668
(cherry picked from commit 6d64b7274410ae45b95bd7ac7f702c16daaa0fcd)

8 years agoMerge "Deprecate xenserver.vif_driver config option and change default" into stable...
Jenkins [Fri, 17 Feb 2017 04:44:36 +0000 (04:44 +0000)]
Merge "Deprecate xenserver.vif_driver config option and change default" into stable/ocata

8 years agoMerge "Fix live migrate with XenServer" into stable/ocata
Jenkins [Fri, 17 Feb 2017 02:10:25 +0000 (02:10 +0000)]
Merge "Fix live migrate with XenServer" into stable/ocata

8 years agoMerge "Add Cells V1 -> Cells V2 step-by-step example" into stable/ocata
Jenkins [Thu, 16 Feb 2017 19:21:43 +0000 (19:21 +0000)]
Merge "Add Cells V1 -> Cells V2 step-by-step example" into stable/ocata

8 years agoMerge "Enable defaults for cell_v2 update_cell command" into stable/ocata
Jenkins [Thu, 16 Feb 2017 19:21:14 +0000 (19:21 +0000)]
Merge "Enable defaults for cell_v2 update_cell command" into stable/ocata

8 years agoDeprecate xenserver.vif_driver config option and change default
Matt Riedemann [Thu, 16 Feb 2017 17:15:12 +0000 (12:15 -0500)]
Deprecate xenserver.vif_driver config option and change default

There are two in-tree options for the xenserver.vif_driver,
the bridge driver and the ovs driver. The XenAPI subteam has
confirmed that the bridge driver is for nova-network (which is
deprecated) and the ovs driver is for Neutron, and that's how
things are tested in CI.

Since we changed the default on use_neutron to be True for Ocata
we need to change the default on the vif_driver to be the ovs
driver so it works with the default config, which is Neutron.

We're deprecating the option though since we can use the use_neutron
option to decide which vif driver to load - which will make
deploying and configuring nova with xen as the backend simpler.

Change-Id: I599f3449f18d2821403961fb9d52e9a14dd3366b
(cherry picked from commit 7bc9b81699fb999e02a089edfeb7027c59726e0f)

8 years agoFix live migrate with XenServer
Huan Xie [Sun, 22 Jan 2017 11:08:40 +0000 (03:08 -0800)]
Fix live migrate with XenServer

Live migration with XenServer as hypervisor failed with xapi
errors "VIF_NOT_IN_MAP". There are two reasons for this
problem:

(1) Before XS7.0, it supports VM live migration without
setting vif_ref and network_ref explicitly if the destination
host has same network, but since XS7.0, it doesn't support
this way, we must give vif_ref and network_ref mapping.

(2) In nova, XenServer has introduced interim network for
fixing ovs updating wrong port in neutron, see bug 1268955
and also interim network can assist support neutron security
group (linux bridge) as we cannot make VIF connected to
linux bridge directly via XAPI

To achieve this, we will add {src_vif_ref: dest_network_ref}
mapping information, in pre_live_migration, we first create
interim network in destination host and store
{neutron_vif_uuid: dest_network_ref} in migrate_data, then in
source host, before live_migration, we will calculate the
{src_vif_ref: dest_network_ref} and set it as parameters to
xapi when calling VM.migrate_send. Also, we will handle the
case where the destination host is running older code that
doesn't have this new src_vif_ref mapping, like live migrating
from an Ocata compute node to a Newton compute node.

Closes-bug: 1658877

Change-Id: If0fb5d764011521916fbbe15224f524a220052f3
(cherry picked from commit 4cd32645fb26d39a900433c4c1dfecaac1767522)

8 years agoMerge "Cleanup some issues with CONF.placement.os_interface" into stable/ocata
Jenkins [Wed, 15 Feb 2017 23:58:44 +0000 (23:58 +0000)]
Merge "Cleanup some issues with CONF.placement.os_interface" into stable/ocata

8 years agoEnable defaults for cell_v2 update_cell command
Corey Bryant [Wed, 15 Feb 2017 21:43:50 +0000 (16:43 -0500)]
Enable defaults for cell_v2 update_cell command

Initialize optional parameters for update_cell() to None and
enable getting the transport_url and db_connection from
nova.conf if not specified as arguments.

Change-Id: Ib20cfeb7b17dba06f9f2db5eca1fa194d2795767
Closes-Bug: 1665145
(cherry picked from commit b276e84103333c91c32b6ccb229104dd87b8167d)

8 years agoMerge "Allow placement endpoint interface to be set" into stable/ocata
Jenkins [Wed, 15 Feb 2017 21:12:25 +0000 (21:12 +0000)]
Merge "Allow placement endpoint interface to be set" into stable/ocata

8 years agoMerge "allocations.consumer_id is not used in query." into stable/ocata
Jenkins [Wed, 15 Feb 2017 14:37:54 +0000 (14:37 +0000)]
Merge "allocations.consumer_id is not used in query." into stable/ocata

8 years agoCleanup some issues with CONF.placement.os_interface
Matt Riedemann [Mon, 13 Feb 2017 20:48:43 +0000 (15:48 -0500)]
Cleanup some issues with CONF.placement.os_interface

This change fixes a few things with the recently added
"os_interface" option in the [placement] config group.

1. It adds tests for the scheduler report client that
   were missing in the original change that added the
   config option.

2. It uses the option in the "nova-status upgrade check"
   command so it is consistent with how the scheduler
   report client uses it.

3. It removes the restrictive choices list from the
   config option definition. keystoneauth1 allows an
   "auth" value for the endpoint interface which means
   don't use the service catalog to find the endpoint
   but instead just read it from the "auth_url" config
   option. Also, the Keystone v3 API performs strict
   validation of the endpoint interface when creating
   an endpoint record. The list of supported interfaces
   may change over time, so we shouldn't encode that
   list within Nova.

4. As part of removing the choices, the release note
   associated with the new option is updated and changed
   from a 'feature' release note to simply 'other' since
   it's not really a feature as much as it is a bug fix.

Change-Id: Ia5af05cc4d8155349bab942280c83e7318749959
Closes-Bug: #1664334
(cherry picked from commit 2c1e1341214356808936c4a812c89d4008cdb284)

8 years agoAllow placement endpoint interface to be set
Andy McCrae [Fri, 27 Jan 2017 10:54:02 +0000 (10:54 +0000)]
Allow placement endpoint interface to be set

This patch exposes the "interface" option for ks_filter to allow
the placement API to be connected on a specific endpoint interface.

The previous was to force "public", which is default for keystoneauth.
The default for the placement service mirrors this value.

Change-Id: Ic996e596f8473c0b8626e8d0e92e1bf58044b4f8
(cherry picked from commit 1257d338db480ba237f6878cc478d072b28f7695)

8 years agoFix misuse of assertTrue
Takashi NATSUME [Tue, 14 Feb 2017 05:23:46 +0000 (14:23 +0900)]
Fix misuse of assertTrue

Fix misuse of assertTrue in the following files.

* nova/tests/unit/api/openstack/compute/test_hypervisors.py
* nova/tests/unit/objects/test_instance_device_metadata.py
* nova/tests/unit/scheduler/client/test_report.py

Change-Id: I5dd869ddec53cf0b9d27d99cb01d780e361a5810
Closes-Bug: #1664446
(cherry-picked from commit 5b49f4dfd288b02fd2b361dcc29f4a83f1468d3a)

8 years agoMerge "Remove straggling use of main db flavors in cellsv1 code" into stable/ocata
Jenkins [Wed, 15 Feb 2017 00:43:22 +0000 (00:43 +0000)]
Merge "Remove straggling use of main db flavors in cellsv1 code" into stable/ocata

8 years agoMerge "Default live_migration_progress_timeout to off" into stable/ocata
Jenkins [Wed, 15 Feb 2017 00:33:06 +0000 (00:33 +0000)]
Merge "Default live_migration_progress_timeout to off" into stable/ocata

8 years agoallocations.consumer_id is not used in query.
smccully [Sun, 5 Feb 2017 21:43:31 +0000 (21:43 +0000)]
allocations.consumer_id is not used in query.

PostGreSQL required consumer_id in group by clause, but
consumer_id is not being used in the query and is superfluous.

Change-Id: I47b758b949b7fbed70906e9a95cbe7bb99da13c2
Closes-Bug: 1662012
(cherry picked from commit 85c76a7f0827ff8f278d071a0b3f721847079711)

8 years agoSkip test_stamp_pattern in cells v1 job
Matt Riedemann [Tue, 14 Feb 2017 15:25:24 +0000 (10:25 -0500)]
Skip test_stamp_pattern in cells v1 job

test_stamp_pattern was recently unskipped:

I2c13099595d8ee8099e02e3f06096078c7d27c34

It uses security groups which cells v1 does
not support, so we have to skip this test in
the cells v1 job.

Change-Id: Id7e8351026ca86694fc9814002b96260f6ba10f9
Closes-Bug: #1664607
(cherry picked from commit d12535839817c4385986ccaffe52b5903d3088ca)

8 years agoRemove straggling use of main db flavors in cellsv1 code
Dan Smith [Fri, 10 Feb 2017 15:37:51 +0000 (07:37 -0800)]
Remove straggling use of main db flavors in cellsv1 code

This remaining use of the flavor query routine from the cellsv1 code
still looks at the main database. This patch converts it to use the
object which looks in the right place.

Closes-Bug: #1663729
Change-Id: I418988ae1d72d541ace867a22b2c9267164bf61b
(cherry picked from commit 6e5b1d289b68f635d369dc092eff5595fb12c331)

8 years agoAdd Cells V1 -> Cells V2 step-by-step example
melanie witt [Fri, 3 Feb 2017 23:10:45 +0000 (23:10 +0000)]
Add Cells V1 -> Cells V2 step-by-step example

This adds an example for: upgrade with Cells V1.

Change-Id: I05c48152eb66148c6f247a71f70f65d2e077bd7d
(cherry picked from commit ae3f3c4acccde3b6ce73222bb87f3fd6d817187b)

8 years agoMerge "Edits for Cells V2 step-by-step examples" into stable/ocata
Jenkins [Fri, 10 Feb 2017 18:48:11 +0000 (18:48 +0000)]
Merge "Edits for Cells V2 step-by-step examples" into stable/ocata

8 years agoMerge "Add step-by-step examples for Cells V2 setup" into stable/ocata
Jenkins [Fri, 10 Feb 2017 18:43:59 +0000 (18:43 +0000)]
Merge "Add step-by-step examples for Cells V2 setup" into stable/ocata

8 years agoMerge "Add an update_cell command to nova-manage" into stable/ocata
Jenkins [Fri, 10 Feb 2017 14:02:54 +0000 (14:02 +0000)]
Merge "Add an update_cell command to nova-manage" into stable/ocata

8 years agoMerge "Allow None for block_device_mapping_v2.boot_index" into stable/ocata
Jenkins [Fri, 10 Feb 2017 14:02:32 +0000 (14:02 +0000)]
Merge "Allow None for block_device_mapping_v2.boot_index" into stable/ocata

8 years agoEdits for Cells V2 step-by-step examples
melanie witt [Wed, 8 Feb 2017 18:57:15 +0000 (18:57 +0000)]
Edits for Cells V2 step-by-step examples

This addresses comments from the original patch set to add more
detail to the steps.

Change-Id: Ibebef30b499dc9b4c6ce8d43f4d8faf9eb93f809
(cherry picked from commit 59f6423549c6a54adb8ac49e814bb07d11d394a7)

8 years agoPrepare for using standard python tests
Andreas Jaeger [Sun, 5 Feb 2017 14:56:27 +0000 (15:56 +0100)]
Prepare for using standard python tests

Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Update devref for this.

Needed-By: Iea42a0525b2c5a5cdbf8604eb23a6e7b029f6b48
Change-Id: Ie9bae659077dbe299eea131572117036065bdccf
(cherry picked from commit d60dffc6bef4d2de32b9509a62f894136c434c3c)

8 years agoDefault live_migration_progress_timeout to off
John Garbutt [Mon, 6 Feb 2017 17:42:59 +0000 (17:42 +0000)]
Default live_migration_progress_timeout to off

live_migration_progress_timeout aims to timeout a live-migration well
before the live_migration_completion_timeout limit, by looking for when
it appears that no progress has been made copying the memory between the
hosts. However, it turns out there are several problems with the way we
monitor progress. In production, and stress testing, having
live_migration_progress_timeout > 0 has caused random timeout failures
for live-migrations that take longer than live_migration_progress_timeout

One problem is that block_migrations appear to show no progress, as it
seems we only look for progress in copying memory. Also the way we query
QEMU via libvirt breaks when there are multiple iterations of memory
copying.

We need to revisit this bug and either fix the progress mechanism or
remove the all the code that checks for the progress (including the
automatic trigger for post-copy). But in the mean time, lets default to
having no timeout, and warn users that have overridden this
configuration by deprecating the live_migration_progress_timeout
configuration option.

For users concerned about live-migration timeout errors, I have
cleaned up the configuration option descriptions, so they have a better
chance of stopping the live-migration timeout errors they may come
across.

Related-Bug: #1644248

Change-Id: I1a1143ddf8da5fb9706cf53dbfd6cbe84e606ae1
(cherry picked from commit 510fe1353d25affc3eee72e10b7756904f8748e9)

8 years agoAllow None for block_device_mapping_v2.boot_index
Matt Riedemann [Wed, 8 Feb 2017 01:28:13 +0000 (20:28 -0500)]
Allow None for block_device_mapping_v2.boot_index

The legacy v2 API allowed None for the boot_index [1]. It
allowed this implicitly because the API code would convert
the block_device_mapping_v2 dict from the request into a
BlockDeviceMapping object, which has a boot_index field that
is nullable (allows None).

The API reference documentation [2] also says:

"To disable a device from booting, set the boot index
to a negative value or use the default boot index value,
which is None."

It appears that with the move to v2.1 and request schema
validation, the boot_index schema was erroneously set to
not allow None for a value, which is not backward compatible
with the v2 API behavior.

This change fixes the schema to allow boot_index=None again
and adds a test to show it working.

This should not require a microversion bump since it's fixing
a regression in the v2.1 API which worked in the v2 API and
is already handled throughout Nova's block device code.

Closes-Bug: #1662699

[1] https://github.com/openstack/nova/blob/13.0.0/nova/compute/api.py#L1268
[2] http://developer.openstack.org/api-ref/compute/#create-server

Change-Id: Ice78a0982bcce491f0c9690903ed2c6b6aaab1be
(cherry picked from commit e34f05edb2efc79bfdd8e73cca8fa02ea6ef2d60)

8 years agoAdd an update_cell command to nova-manage
Dan Smith [Tue, 7 Feb 2017 16:43:42 +0000 (08:43 -0800)]
Add an update_cell command to nova-manage

In case a cell record was incorrectly created, or needs to be updated
to point to a new database or mq endpoint, we need a way for users to
be able to update a CellMapping record. Since deleting and re-creating
is definitely not an option, this patch adds an update_cell which
allows updating the mutable fields if necessary.

(cherry picked from commit 1102441a4259fe155eb2a61cd16c6e015787472c)

Change-Id: I75ddfa458a6fb650f1098505193398984f2be596

8 years agolibvirt: Remove redundant bdm serial mangling and saving during swap_volume
Lee Yarwood [Tue, 31 Jan 2017 18:39:15 +0000 (18:39 +0000)]
libvirt: Remove redundant bdm serial mangling and saving during swap_volume

During an initial swap_volume call the serial of the original volume was
previously stashed in the connection_info of the new volume by the
compute layer. This was used by I19d5182d11 to allow the virt driver to
lookup and update the existing BDM with the new volume's connection_info
after it had been used by connect_volume.

Future calls to swap_volume in the compute layer would not
update the serial found in the old volume connection_info. This would
result in an invalid serial being copied into the new volume
connection_info and used to preform a lookup of a BDM that didn't exist.

To correct this we now explicitly set the serial of the new volume to
that of the new volume id. While the correct serial id should already be
present in the connection_info provided by most backend Cinder volume
drivers the act of updating this dict is required by our own functional
tests to invoke a failure case :

https://git.io/vDmRE

The serial is updated once more to match the volume id returned
by os-migrate-volume-completion prior to the BDM being updated in the
compute layer.

The BDM lookup and save from the virt layer is also removed as the
compute layer retains a reference to new_cinfo and will update the BDM
with this, including any modifications, at the end of swap_volume.

Finally, the associated Tempest admin test is also extended by the
following change to now attempt a second volume swap to verify these
changes :

I2a2c80a164b9f75d0e7e0503a24194bedfc0e66b

Closes-bug: #1661016
Change-Id: If74dd9d8e7191047b6f1cd7e35b6fc667f004f91
(cherry picked from commit 1bf7ac804808eb0d4a68847e466f5fa7d1dcd55e)

8 years agoMerge "Clarify the deployment of placement for cellsv1 users" into stable/ocata
Jenkins [Wed, 8 Feb 2017 18:11:00 +0000 (18:11 +0000)]
Merge "Clarify the deployment of placement for cellsv1 users" into stable/ocata

8 years agoMerge "Update the upgrades part of devref" into stable/ocata
Jenkins [Wed, 8 Feb 2017 18:10:34 +0000 (18:10 +0000)]
Merge "Update the upgrades part of devref" into stable/ocata

8 years agohyperv: make sure to plug OVS VIFs after resize/migrate
Matt Riedemann [Wed, 18 Jan 2017 23:47:24 +0000 (18:47 -0500)]
hyperv: make sure to plug OVS VIFs after resize/migrate

Since the network_info wasn't getting passed to vmops.power_on
after a resize/cold migrate confirmation, the OVS VIFs weren't
getting plugged.

Change-Id: Ia9b7dc11cd74ba896a7254c16a95b7a834a28475
Closes-Bug: #1657424
(cherry picked from commit 568a682e5efa6e4fd49b69e02cbd80f1d8a96c63)

8 years agoAdd step-by-step examples for Cells V2 setup
melanie witt [Thu, 2 Feb 2017 02:01:48 +0000 (02:01 +0000)]
Add step-by-step examples for Cells V2 setup

This starts off with two examples: fresh install and minimal upgrade.

Change-Id: Id6a1fe694abc6069b6728434b5400f13f8f24c0e
(cherry picked from commit dd198d11f8d7a5211d5e8ff27d6dacdb54056a43)

8 years agoClarify the deployment of placement for cellsv1 users
Dan Smith [Fri, 3 Feb 2017 21:59:09 +0000 (13:59 -0800)]
Clarify the deployment of placement for cellsv1 users

Change-Id: I86818968b8d01c4b8297aa091d875d5df9eeb55c
(cherry picked from commit 56d982851abfd81ce479400d9199893efbc946a8)

8 years agoUpdate the upgrades part of devref
Dan Smith [Fri, 3 Feb 2017 17:20:11 +0000 (09:20 -0800)]
Update the upgrades part of devref

This removes some references to "online schema migrations", as well
as some references to in-progress things that have been (long since)
completed. It also clarifies some of the upgrade steps, and unifies
the notion of "offline" and "live" upgrades, calling out only a couple
places where the process differs.

This came from me explaining the document to someone and calling out
things that were no longer accurate.

Change-Id: Iec1d73c3fd0038d9bca7e7fa746caad06c329ed3
(cherry picked from commit 4f86207285abfba7b87d5b477d99763203a03c53)

8 years agoUpdate UPPER_CONSTRAINTS_FILE for stable/ocata
OpenStack Release Bot [Fri, 3 Feb 2017 19:10:44 +0000 (19:10 +0000)]
Update UPPER_CONSTRAINTS_FILE for stable/ocata

Change-Id: I2f50b1c9e2a8ed1e53e29c6ef1420b3fec79c223

8 years agoUpdate .gitreview for stable/ocata
OpenStack Release Bot [Fri, 3 Feb 2017 19:10:42 +0000 (19:10 +0000)]
Update .gitreview for stable/ocata

Change-Id: I96f2afd1f8904618b4825eea8363508bf3e52d35

8 years agoMerge "Delete a compute node's resource provider when node is deleted"
Jenkins [Fri, 3 Feb 2017 18:08:56 +0000 (18:08 +0000)]
Merge "Delete a compute node's resource provider when node is deleted"

8 years agoDelete a compute node's resource provider when node is deleted
EdLeafe [Thu, 2 Feb 2017 18:48:35 +0000 (18:48 +0000)]
Delete a compute node's resource provider when node is deleted

Currently when a compute node is deleted, its record in the cell DB is
deleted, but its representation as a resource provider in the placement
service remains, along with any inventory and allocations. This could
cause the placement engine to return that provider record, even though
the compute node no longer exists. And since the periodic "healing" by
the resource tracker only updates compute node resources for records in
the compute_nodes table, these old records are never removed.

This patch adds a call to delete the resource provider when the compute
node is deleted. It also adds a method to the scheduler report client
to make these calls to the placement API.

Partial-Bug: #1661258
Closes-Bug: #1661014

Change-Id: I6098d186d05ff8b9a568e23f860295a7bc2e6447

8 years agoMerge "libvirt: workaround findmnt behaviour change"
Jenkins [Fri, 3 Feb 2017 13:37:23 +0000 (13:37 +0000)]
Merge "libvirt: workaround findmnt behaviour change"

8 years agoMerge "Removes unnecessary utf-8 encoding"
Jenkins [Fri, 3 Feb 2017 06:00:47 +0000 (06:00 +0000)]
Merge "Removes unnecessary utf-8 encoding"