Commit Graph

45424 Commits

Author SHA1 Message Date
Jenkins 579931af59 Merge "Make consoleauth target the proper cell" 2017-03-08 18:32:01 +00:00
Jenkins 347808c0a8 Merge "Log with cell.uuid if cell.name is not set" 2017-03-08 17:04:43 +00:00
Jenkins dbd114a945 Merge "autospec the virt driver mock in test_resource_tracker" 2017-03-08 14:07:46 +00:00
Jenkins 4e53a1cbe8 Merge "Add functional test for bad res class in set_inventory_for_provider" 2017-03-08 14:07:12 +00:00
Jenkins 094b09d4a9 Merge "Remove mox from nova.tests.unit.api.openstack.compute.test_create_backup" 2017-03-08 13:32:06 +00:00
Jenkins 0be6bdfc36 Merge "Enlighten server tags API about cells" 2017-03-08 03:04:16 +00:00
Jenkins 12168858fd Merge "Placement api: set custom json_error_formatter in resource_provider" 2017-03-08 03:03:42 +00:00
Dan Smith 4f2b97c30e Make consoleauth target the proper cell
Since we look up the instance and call to its cell in consoleauth,
we need to look up the InstanceMapping and properly target the
database and rpc operation.

Related to blueprint cells-aware-api

Change-Id: I80013fa59b221f70376d6e1d4080ca699ff6caeb
2017-03-07 15:33:50 -08:00
Dan Smith 2e240d70d3 Enlighten server tags API about cells
Related to blueprint cells-aware-api

Change-Id: Iff71a1bc1762f864d93bace974ad36136347dfdf
2017-03-07 14:17:35 -08:00
Jenkins 170b24aa4a Merge "libvirt: Fix misleading error in Ploop imagebackend" 2017-03-07 20:13:58 +00:00
Jenkins f9df69e511 Merge "Revert "Add some metadata logging to root cause ssh failure"" 2017-03-07 20:13:22 +00:00
Jenkins 31a90c16ab Merge "Revert "fix usage of opportunistic test cases with enginefacade"" 2017-03-07 20:12:44 +00:00
Jenkins 664aeac944 Merge "Skip unit tests for SSL + py3" 2017-03-07 20:12:07 +00:00
Jenkins 7ceacb0542 Merge "Remove unused variable" 2017-03-07 20:11:35 +00:00
Jenkins f1a0aad23e Merge "Remove unused placement_database config options" 2017-03-07 20:10:50 +00:00
Jenkins 56ce730a1a Merge "Remove mox from unit/api/openstack/compute/test_aggregates.py" 2017-03-07 20:06:24 +00:00
Jenkins 91f3869af8 Merge "Remove mox from api/openstack/compute/test_deferred_delete.py" 2017-03-07 18:58:43 +00:00
Jenkins b9d66cdd58 Merge "Stop using mox in test_compute_cells.py" 2017-03-07 18:58:12 +00:00
Jenkins 3a0baffaf5 Merge "Remove mox from nova/tests/unit/test_configdrive2.py" 2017-03-07 18:55:47 +00:00
Jenkins 0d04e2fbc8 Merge "Stop using mox in virt/xenapi/image/test_glance.py" 2017-03-07 18:55:18 +00:00
Jenkins 4eb87fdb01 Merge "Remove mox from nova/tests/unit/virt/vmwareapi/test_vif.py" 2017-03-07 18:54:53 +00:00
Jenkins 5835875104 Merge "Stop using mox from tests/unit/test_service.py" 2017-03-07 18:54:23 +00:00
Jenkins c33faf3ed0 Merge "libvirt: fix and break up _test_attach_detach_interface" 2017-03-07 18:53:41 +00:00
Jenkins 5f16ce546f Merge "libvirt: check if we can quiesce before volume-backed snapshot" 2017-03-07 18:53:08 +00:00
Jenkins 0c5d734fa6 Merge "libvirt: pass log_path to _create_pty_device for non-kvm/qemu" 2017-03-07 16:16:38 +00:00
Jenkins f16ae7cc6b Merge "trivial: Standardize naming of variables" 2017-03-07 15:40:57 +00:00
Jenkins a54393338d Merge "trivial: Standardize indentation of test_vif" 2017-03-07 13:56:32 +00:00
Jenkins d3cb8bbc18 Merge "Default firewall_driver to nova.virt.firewall.NoopFirewallDriver" 2017-03-07 12:54:49 +00:00
Jenkins 6c0ca525e5 Merge "Use flake8-import-order" 2017-03-07 12:45:17 +00:00
Stephen Finucane 70daf81be9 trivial: Standardize naming of variables
Again, this is to ease cognitive overhead of comparing different tests.

Change-Id: I5f48d9d04601bf7dd0bd3b80d5b0fd6a476f1ada
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2017-03-07 10:40:22 +00:00
Stephen Finucane 2301fb68b0 trivial: Standardize indentation of test_vif
Make it easier to compare the various VIF types side-by-side.

Change-Id: Icd8d830a618c2ac56f17e8cf6d2d66051615908e
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2017-03-07 10:40:21 +00:00
Jenkins 9f313a1a30 Merge "virt: add get_inventory() virt driver API method" 2017-03-07 05:17:10 +00:00
Matt Riedemann 2358005e52 autospec the virt driver mock in test_resource_tracker
This came up while reviewing change
I921daea7f6d5776b19561f0ca457e604a372eb9e but it was
noted that we're just stubbing out methods on a fake
virt driver object in these tests, so we should at the
very least autospec the mock so we don't mess up the
actual methods being stubbed.

Change-Id: I62e1c3e86394c8a6e815b1ea41ba005019026330
2017-03-06 22:53:16 -05:00
Matt Riedemann 70b141968e Add functional test for bad res class in set_inventory_for_provider
The unit tests covering the case that an invalid resource class
name was passed to set_inventory_for_provider were a bit too
unit-y and we can get the same coverage down the full stack with
a simple addition to the existing functional tests for the report
client. This adds the simple change to the functional test and removes
the now redundant unit tests.

Change-Id: Idb579acf6852650d4d5a6bc7704f123a40258f2d
2017-03-06 22:48:00 -05:00
Matt Riedemann 7439e94736 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
39fb302fd9 anyway.

Change-Id: I31293ac4689630e4113588ab2c6373cf572b8f38
Closes-Bug: #1670419
2017-03-06 20:25:55 -05:00
Jenkins c6456d7ebe Merge "Add RPC version aliases for Ocata" 2017-03-07 00:23:19 +00:00
Matt Riedemann ac61abb7c7 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
2017-03-06 19:00:31 -05:00
Jenkins 5f60f31c55 Merge "[placement] Use modern attributes of oslo_context" 2017-03-06 23:46:40 +00:00
Jenkins 16e9bd053f Merge "Remove GlanceImageService" 2017-03-06 23:46:10 +00:00
Jenkins c3bfbcf5cc Merge "Add rudimentary CORS support to placement API" 2017-03-06 23:39:30 +00:00
Jay Pipes fbc5a67de9 virt: add get_inventory() virt driver API method
Adds a new get_inventory() method to the virt driver API for returning a
dict of inventory records in a format that the placement API
understands.

We also move the ComputeNode.save() call out of the scheduler reporting
client and into the resource tracker. The resource tracker's _update()
method now attempts to call the new get_inventory() virt driver method
and falls back on the existing update_resource_stats() (renamed to
update_compute_node() in this patch) method when get_inventory() is not
implemented.

The next patch implements get_inventory() for the Ironic virt driver.

Change-Id: I921daea7f6d5776b19561f0ca457e604a372eb9e
blueprint: custom-resource-classes-pike
2017-03-06 16:01:52 -05:00
Jenkins 409f04b218 Merge "Update placement_dev with info about new decorator" 2017-03-06 16:59:14 +00:00
Jenkins eca9675d54 Merge "Use Sphinx 1.5 warning-is-error" 2017-03-06 16:58:51 +00:00
Jenkins b8f18c7460 Merge "Explain how allow_resize_to_same_host is useful" 2017-03-06 16:54:05 +00:00
Jenkins 0f7a3b4249 Merge "Add comment to instance_destroy()" 2017-03-06 15:48:39 +00:00
John L. Villalovos 66866b3ce6 Use flake8-import-order
Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: Ia3d81bbbb44b40804b3268c0e648276a36cb4805
2017-03-06 06:50:23 -08:00
Kevin Benton 95ffbb1df4 Revert "Add some metadata logging to root cause ssh failure"
This reverts commit 99989cb652.

The bug this was added for (bug 1668958) has been resolved
so logging metadata contents is no longer necessary.

Change-Id: Ifd05aaacafaafc3ff01cd6c7323f57c0028e38ff
Related-Bug: #1668958
2017-03-05 15:36:39 +00:00
Jenkins 5cf6bbf374 Merge "Add warning on setting secure_proxy_ssl_header" 2017-03-03 23:07:41 +00:00
Jenkins 8776862d48 Merge "conf: Deprecate 'firewall_driver'" 2017-03-03 23:05:34 +00:00
Jenkins 841a9b9251 Merge "Imported Translations from Zanata" 2017-03-03 21:32:00 +00:00