Commit Graph

45450 Commits

Author SHA1 Message Date
Jenkins 08091c49ee Merge "Change MQ targeting to honor only what is in the context" 2017-03-10 19:00:16 +00:00
Dan Smith 159062882e Change MQ targeting to honor only what is in the context
Previously we had aimed to make things like compute RPC automatically
look up the InstanceMapping or HostMapping for the call being performed
to target appropriately. However, we cannot do that within the cell,
and even trying incurs some overhead. For now, just deprecate the
by_instance() and by_host() methods and honor what is in the context
(if set) and otherwise fall back to the default client. Make the context
target routines create and store the RPC transport and remove the caching
logic from the ClientRouter since we're removing its ability to do that.

Related to blueprint cells-aware-api
Change-Id: I10f374adca672576058c4dbab708c040d166df47
2017-03-10 07:00:32 -08:00
Jenkins 6ab498e16d Merge "Fix API doc about server attributes (2.3 API)" 2017-03-10 13:49:39 +00:00
Jenkins 44937abe3d Merge "Remove usage of config option verbose" 2017-03-10 13:43:12 +00:00
Jenkins 4cd8ab5bdc Merge "Teach simple_tenant_usage about cells" 2017-03-09 23:44:26 +00:00
Jenkins 73fc7f8056 Merge "Teach os-migrations about cells" 2017-03-09 23:15:22 +00:00
Jenkins a6807d7f58 Merge "Teach os-aggregates about cells" 2017-03-09 21:55:11 +00:00
Jenkins 54629ff944 Merge "Use Cinder API v3 as default" 2017-03-09 21:14:58 +00:00
Jenkins 2a5674b544 Merge "Avoid using fdatasync() when fetching images" 2017-03-09 17:04:32 +00:00
Dan Smith f061579f00 Teach simple_tenant_usage about cells
Related to blueprint cells-aware-api

Change-Id: Icd5e46e0276df6cf7ffbbb57abb1dddc46678e11
2017-03-09 07:44:27 -08:00
Dan Smith 8dbefb4a92 Teach os-migrations about cells
Related to blueprint cells-aware-api

Change-Id: Id9d255f4338e4812a10b410edf91b8d9f4f5c35e
2017-03-09 07:44:27 -08:00
Dan Smith 3f36897f36 Teach os-aggregates about cells
Related to blueprint cells-aware-api
Change-Id: I6850534b7d2729c7b40d9f0afe10a440025b5123
2017-03-09 07:44:22 -08:00
Lucian Petrut d9ed8a7235 Avoid using fdatasync() when fetching images
fdatasync is not available on Windows, for which reason this
operation now fails.

This change switches to fsync, which is platform independent.

Closes-Bug: #1671435

Change-Id: I71ac19160f198a97bb1834c5c81684758f129bcc
2017-03-09 13:20:10 +02:00
Jenkins 80af8a9dac Merge "numa: add numa constraints for emulator threads policy" 2017-03-09 11:15:57 +00:00
tengqm 9092207b9a Fix API doc about server attributes (2.3 API)
The attribute names added in version 2.3 API was incorrectly documented.

Change-Id: Ib2cdb5191fc23ba87b1528c95afc019ec57b4103
2017-03-09 03:50:48 -05:00
Jenkins fa2b4a8264 Merge "Refactor cell loading in compute/api" 2017-03-09 02:42:33 +00:00
Jenkins ae0c1bdc5e Merge "Target cell in super conductor operations" 2017-03-09 01:15:49 +00:00
Dan Smith 324768752f Refactor cell loading in compute/api
This merely pulls out the loading of the global cells cache
into a helper function that can be used by later patches that
will also depend on this. Since it's the same code, existing
tests exercise this path just like they did before it was moved.

This was moved out of another patch to re-order some dependencies.

Related to blueprint cells-aware-api
Change-Id: Idb25f5905f3e33cec3c7887d08408251fef5b262
2017-03-08 14:06:13 -08:00
Jenkins bade19631b Merge "fdatasync() downloaded images before use" 2017-03-08 21:38:24 +00:00
Dan Smith 30172f6e30 Target cell in super conductor operations
This adds a decorator that lets us auto-target cells for methods in
conductor that are supposed to run at super-conductor level and thus
need to look up the instance mapping.

Related to blueprint cells-aware-api

Change-Id: I1c9a16b90774fb76e96b36259327dc0f273ab3c8
2017-03-08 12:49:55 -08:00
Jenkins 17fbd245cb Merge "Update docstrings for legacy notification methods" 2017-03-08 19:49:30 +00:00
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
Matthew Booth 1c657cda5a fdatasync() downloaded images before use
Image download closes the filehandle of the downloaded image before
use, but doesn't fdatasync it. This means that in the event of a host
crash we may be left with only the file metadata when the host comes
back up: i.e. an empty file of the correct size. Nova cannot detect
this data corruption, so operator intervention is required.

By adding an fdatasync() before closing the file handle we ensure that
the downloaded file is either entirely present, or entirely not
present.

See also change I33bd99b0, which fixes this issue for downloads
requiring a subsequent conversion step.

Partial-Bug: #1669844
Change-Id: Id9905a87f16f66530623800e33e2581c555ae81d
2017-03-08 16:47:41 +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
Matt Riedemann af5ec75890 Update docstrings for legacy notification methods
It's not particularly clear which methods send legacy
unversioned notifications since the docstrings are not
clear about that, nor is the method name.

I came across this while trying to figure out what
puts the "compute." prefix on the legacy unversioned
notifications and whether or not that was on the
versioned notifications (it's not).

This just updates the docstrings to be more clear.

Change-Id: Ic85f4f9d31a719368495fc0dcd07ace043816693
2017-03-07 14:20:20 -05: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