]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
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 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 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 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"

8 years agoMerge "libvirt: Limit destroying disks during cleanup to spawn"
Jenkins [Fri, 3 Feb 2017 04:21:45 +0000 (04:21 +0000)]
Merge "libvirt: Limit destroying disks during cleanup to spawn"

8 years agoMerge "Clarify the language in the apache wsgi sample"
Jenkins [Fri, 3 Feb 2017 04:20:59 +0000 (04:20 +0000)]
Merge "Clarify the language in the apache wsgi sample"

8 years agoMerge "Mark compute/placement REST API max microversions for Ocata"
Jenkins [Fri, 3 Feb 2017 03:43:34 +0000 (03:43 +0000)]
Merge "Mark compute/placement REST API max microversions for Ocata"

8 years agoMerge "Add release note for filter/sort whitelist"
Jenkins [Fri, 3 Feb 2017 03:43:02 +0000 (03:43 +0000)]
Merge "Add release note for filter/sort whitelist"

8 years agoMerge "Clarify the [cells] config option help"
Jenkins [Fri, 3 Feb 2017 03:35:48 +0000 (03:35 +0000)]
Merge "Clarify the [cells] config option help"

8 years agoMerge "nova-status: relax the resource providers check"
Jenkins [Fri, 3 Feb 2017 03:35:16 +0000 (03:35 +0000)]
Merge "nova-status: relax the resource providers check"

8 years agoMerge "Stop swap allocations being wrong due to MB vs GB"
Jenkins [Fri, 3 Feb 2017 02:38:46 +0000 (02:38 +0000)]
Merge "Stop swap allocations being wrong due to MB vs GB"

8 years agoMark compute/placement REST API max microversions for Ocata
Matt Riedemann [Fri, 3 Feb 2017 01:15:18 +0000 (20:15 -0500)]
Mark compute/placement REST API max microversions for Ocata

Change-Id: I39405b99618ec31b5d3029fc28c250f1a84dc49c

8 years agoAdd release note for filter/sort whitelist
Kevin_Zheng [Tue, 17 Jan 2017 13:56:36 +0000 (21:56 +0800)]
Add release note for filter/sort whitelist

Add a release note for the filter/sort whitelist.

Part of blueprint add-whitelist-for-server-list-filter-sort-parameters

Change-Id: I0369407aced56384783b7a8bb10e06e80530854f
Co-Authored-By: ghanshyam <ghanshyammann@gmail.com>
Co-Authored-By: Alex Xu <hejie.xu@intel.com>
8 years agoClarify the language in the apache wsgi sample
Dan Smith [Thu, 2 Feb 2017 20:47:29 +0000 (12:47 -0800)]
Clarify the language in the apache wsgi sample

Change-Id: I78fa8d4d53f2603da3e392877645202856eecfce

8 years agoMerge "Report reserved_host_disk_mb in GB not KB"
Jenkins [Thu, 2 Feb 2017 20:33:31 +0000 (20:33 +0000)]
Merge "Report reserved_host_disk_mb in GB not KB"

8 years agoMerge "Fix access_ip_v4/6 filters params for servers filter"
Jenkins [Thu, 2 Feb 2017 19:55:49 +0000 (19:55 +0000)]
Merge "Fix access_ip_v4/6 filters params for servers filter"

8 years agoStop swap allocations being wrong due to MB vs GB
John Garbutt [Thu, 2 Feb 2017 18:41:46 +0000 (18:41 +0000)]
Stop swap allocations being wrong due to MB vs GB

Swap is in MB, but allocations for disk are in GB.

We totally should claim disk in GB, for now lets just round up the swap
allocation to the next GB. While this is wasteful, its the only safe
answer to ensure you don't over commit resources on the node.

Updated the test so the swap is 1023MB, after rounding up this should
claim the same 1GB extra space for swap.

Closes-Bug: #1659266

Change-Id: If50eab870b2c50f4055668143780574e1350a438

8 years agoClarify the [cells] config option help
Matt Riedemann [Thu, 2 Feb 2017 18:34:32 +0000 (13:34 -0500)]
Clarify the [cells] config option help

People are easily confused into thinking that for cells v2
they need to configure things in the [cells] group in
nova.conf, but the cells options are strictly for cells v1
functionality, which we don't want people using anymore.

This change adds some wording to those options to make it
clear that they are for cells v1 and that is not a
recommended way to deploy Nova.

Change-Id: Ib1f0caf956d0bbb76d2e5a8e6d5ce7de12e240b2

8 years agoMerge "Fix typo in cells v2 ocata reno"
Jenkins [Thu, 2 Feb 2017 17:34:08 +0000 (17:34 +0000)]
Merge "Fix typo in cells v2 ocata reno"

8 years agoReport reserved_host_disk_mb in GB not KB
John Garbutt [Thu, 2 Feb 2017 12:51:36 +0000 (12:51 +0000)]
Report reserved_host_disk_mb in GB not KB

We were reporting reserved_host_disk_mb as GB not KB.

This created this log message:
  Invalid inventory for 'DISK_GB' on resource provider <uuid>.
  The reserved value is greater than or equal to total.

This corrects the reporting of reserved_host_disk_mb to the placement
API when updating the compute node inventory.

Closes-Bug: #1661243

Change-Id: I5573c82eb99cde13c407c8d6a06ecb04165ab9c5

8 years agoMerge "doc: add upgrade notes to the placement devref"
Jenkins [Thu, 2 Feb 2017 16:45:11 +0000 (16:45 +0000)]
Merge "doc: add upgrade notes to the placement devref"

8 years agoMerge "Ensure build request exists before creating instance"
Jenkins [Thu, 2 Feb 2017 16:44:26 +0000 (16:44 +0000)]
Merge "Ensure build request exists before creating instance"

8 years agoFix access_ip_v4/6 filters params for servers filter
ghanshyam [Thu, 2 Feb 2017 10:02:53 +0000 (10:02 +0000)]
Fix access_ip_v4/6 filters params for servers filter

While adding the json schema for servers filter query,
we added 'accessIPv4' and 'accessIPv6' as allowed params
but they do not match with what DB has. It is 'access_ip_v4'
and 'access_ip_v6' in DB.
This makes  'access_ip_v4' and 'access_ip_v6' filter stop working.

The schema should be fixed accordingly to allow the 'access_ip_v4'
and 'access_ip_v6' as valid filter.

'accessIPv4' and 'accessIPv6' are something the API accepts
and returns and internally API layer translate those param
to their respective field('access_ip_v4' and 'access_ip_v6')
present in DB.
So user does not know anything about 'access_ip_v4' and
'access_ip_v6'. They are not in API representation actually.

Later list filter and sort param should be same as field return
in GET or accepted in POST/PUT which are 'accessIPv4' and 'accessIPv6'.
But that is something new attribute support in filter and can be
done later after more discussion.

Change-Id: Idc12de0062d298259e25c8b4c0dde889054a9ae5
Closes-Bug: #1661195

8 years agoFix typo in cells v2 ocata reno
Matt Riedemann [Thu, 2 Feb 2017 15:19:19 +0000 (10:19 -0500)]
Fix typo in cells v2 ocata reno

Change-Id: I0ad4a0431c4131c655ab47b42c4f78141383ee64

8 years agodoc: add upgrade notes to the placement devref
Matt Riedemann [Tue, 31 Jan 2017 19:20:55 +0000 (14:20 -0500)]
doc: add upgrade notes to the placement devref

This just adds some more detailed docs for upgrading
to Ocata and notable things for the Placement service
and related components as part of that upgrade.

The Ocata release notes will have some of this
information too, but I think it's good to also have
a single place for some of this, like an install/upgrade
guide for Placement.

Change-Id: Id33b9c852bb36ae80a6f29ae33d963a78cbff193
Depends-On: Ie12acb76ec5affba536c3c45fbb6de35d64aea1b

8 years agoMerge "Fix the terminated_at field in the server query params schema"
Jenkins [Thu, 2 Feb 2017 13:17:12 +0000 (13:17 +0000)]
Merge "Fix the terminated_at field in the server query params schema"

8 years agoMerge "Add release note for nova-status upgrade check CLI"
Jenkins [Thu, 2 Feb 2017 13:15:13 +0000 (13:15 +0000)]
Merge "Add release note for nova-status upgrade check CLI"

8 years agoMerge "Add prelude section for Ocata"
Jenkins [Thu, 2 Feb 2017 13:14:37 +0000 (13:14 +0000)]
Merge "Add prelude section for Ocata"

8 years agoMerge "Collected release notes for Ocata CellsV2"
Jenkins [Thu, 2 Feb 2017 13:10:27 +0000 (13:10 +0000)]
Merge "Collected release notes for Ocata CellsV2"

8 years agoMerge "Fix typo in help for discover_hosts_in_cells_interval"
Jenkins [Thu, 2 Feb 2017 10:49:22 +0000 (10:49 +0000)]
Merge "Fix typo in help for discover_hosts_in_cells_interval"

8 years agoMerge "doc: update the man page entry for nova-manage db sync"
Jenkins [Thu, 2 Feb 2017 09:52:37 +0000 (09:52 +0000)]
Merge "doc: update the man page entry for nova-manage db sync"

8 years agoMerge "doc: refer to the cell_v2 man pages from the cells v2 doc"
Jenkins [Thu, 2 Feb 2017 09:52:02 +0000 (09:52 +0000)]
Merge "doc: refer to the cell_v2 man pages from the cells v2 doc"