Commit Graph

50653 Commits

Author SHA1 Message Date
Zuul 25a1a0c61a Merge "Update ImageMetaProp object to expose traits" 2018-04-11 13:50:22 +00:00
Zuul 4d217016da Merge "libvirt: handle DiskNotFound during update_available_resource" 2018-04-11 13:50:09 +00:00
jichen 62edffcff3 uncap eventlet in nova
per commit 00eca5fdd352be7db52bbf89496762023db4a951
nova is failing here:
logs.openstack.org/87/523387/32/check/requirements-check/408e28c/job-output.txt.gz

Change-Id: Ie63f47fc403704af7ba16a29cc58cd914172f6bd
2018-04-11 21:35:49 +08:00
Zuul 80fa0ff912 Merge "Cleanup _get_request_spec_for_select_destinations for live migrate" 2018-04-11 13:15:12 +00:00
Zuul cd144f7f3b Merge "Cleanup tempest-dsvm-cells-rc blacklist" 2018-04-11 13:05:23 +00:00
Zuul 8f5e90f0a1 Merge "Update the Cell filters section of the scheduler docs" 2018-04-11 11:11:20 +00:00
Zuul 7938d2669b Merge "Move test_report_client out of placement namespace" 2018-04-11 11:11:08 +00:00
Zuul 881103c9bf Merge "Log a more useful error when cinder auth isn't configured" 2018-04-11 11:10:56 +00:00
Zuul 964d2fb184 Merge "doc: add a link in the install guides about configuring neutron" 2018-04-11 11:10:37 +00:00
Zuul 37f9e99e48 Merge "Log a more useful error when neutron isn't configured" 2018-04-11 11:10:21 +00:00
Zuul 60b5cce9cf Merge "make metadata doc up to date" 2018-04-11 11:10:11 +00:00
naichuans c0187a010c xenapi: Support live migration in pooled multi-nodes environment
The previous implementation doesn't support live migration in
pool-based multi-hosts OpenStack environments. Modify code to
support it.
In this patch we will,
1. Support live migration in XAPI pool:
    -Add code to support resource pre-check before live migration.
    -Add code to support resource clean after live migration.
    -Add code to support using local storage in xapi pool.

Depends-On: I80007bb897a1f7eda47ebda82e08fe270f97ff40
Implements: blueprint live-migration-in-xapi-pool
Change-Id: I6437a315f1400a73f7a149bed5550f6d6dd1406f
2018-04-11 10:44:21 +00:00
Chen Hanxiao 3176f21500 trivial: fix a comment typo
s/ned/need

TrivialFix

Change-Id: I3527fe145720e280151c378991dff451afa7014e
Signed-off-by: Chen Hanxiao <chenhx@certusnet.com.cn>
2018-04-11 18:05:46 +08:00
Yikun Jiang 0baba40b1b Add microversion to support extra_specs in flavor API.
Exposes flavor extra_specs in the flavor representation since
microversion 2.61. Now users can see the flavor extra-specs
in flavor APIs response only and do not need to call
``GET /flavors/{flavor_id}/extra_specs`` API.

Flavor extra_specs will be included in Response body of the
following APIs:

* ``GET /flavors/detail``
* ``GET /flavors/{flavor_id}``
* ``POST /flavors``
* ``PUT /flavors/{flavor_id}``

Part of blueprint add-extra-specs-to-flavor-list

Change-Id: I048747633babf690a63c6de9773bff5547872053
2018-04-11 17:47:57 +08:00
OpenStack Proposal Bot dee8de3fab Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I65a0342bf82f9dd99e79ec5640513b48543fce69
2018-04-11 06:17:52 +00:00
Zuul 15f1caf98a Merge "PowerVM: Add proc_units_factor conf option" 2018-04-11 03:21:16 +00:00
Takashi NATSUME 4a78dccf70 Remove mox in tests/unit/test_utils.py
Replace mox with mock in nova/tests/unit/test_utils.py.
The 'test_supports_direct_io' method is
in the 'GetEndpointTestCase' class currently.
But it should be in an isolated test class.
So add the test class and move the method into it.

Then split the method into methods for each test case
to improve readability.

Change-Id: Id2350529b3322dfa8f7c13ac8e5f85aaf3041082
Implements: blueprint mox-removal
Closes-Bug: #1760017
2018-04-11 00:34:56 +00:00
Takashi NATSUME a77af0076f api-ref: Fix parameter order in rebuild
It is a follow-up for If01b2dcfa9df8c0e80ad1da65115204fe321891b.
The 'progress' parameter has been changed to an optional parameter
in If01b2dcfa9df8c0e80ad1da65115204fe321891b.
Optional parameters should be after required parameters.
So fix parameter order in rebuild action.

And fix 'adminPass' as well.

Change-Id: I38e0cdd73e9b81b5c4c8bd69c1139f99db3c7773
2018-04-11 00:34:14 +00:00
Takashi NATSUME 39fbcfd518 api-ref: Parameter verification for servers.inc (3/3)
This patch completes parameter verification for servers.inc.

* Verifies remaining parameters
* Sorts parameters
* Adds missing parameters
* Removing unncessary parameters

Change-Id: If01b2dcfa9df8c0e80ad1da65115204fe321891b
Closes-Bug: #1738930
2018-04-11 00:33:52 +00:00
Takashi NATSUME bab3184ced api-ref: Parameter verification for servers.inc (2/3)
This patch verifies BDM, fault and scheduler hint parameters.
A subsequent patch will verify other parameters.

Change-Id: If57aa3e37ebaa6fa13718480bb216d10664aa5b1
Partial-Bug: #1738930
2018-04-11 00:33:40 +00:00
Takashi NATSUME b11c573174 Remove mox in test_virt_drivers.py
Replace stubs.Set with stub_out or mock in
nova/tests/unit/virt/test_virt_drivers.py.

Change-Id: I3af68f745ffb23ef2b5407ccec0bebf4b2645734
Implements: blueprint mox-removal
2018-04-11 09:26:22 +09:00
Zuul c2c6502d2a Merge "Don't persist RequestSpec.retry" 2018-04-10 20:38:59 +00:00
Zuul 8218eb0c96 Merge "Add regression test for persisted RequestSpec.retry from failed resize" 2018-04-10 20:30:10 +00:00
Zuul 3c0911f0dd Merge "Pick next minimum libvirt / QEMU versions for "Stein"" 2018-04-10 20:29:40 +00:00
Eric Fried 7fd2de85b6 Make ResourceClass.normalize_name handle sharp S
Fixes ResourceClass.normalize_name to produce the same result in py2 and
py3 even when sharp S ('ß') is part of the input.

We do this by waiting until after replacing non-alphanumerics to upcase.

Change-Id: I431fa29d36d0d633374973fc25168344042d6c1a
Closes-Bug: #1762789
2018-04-10 12:24:40 -05:00
Eric Fried 443980399b Test case: ResourceClass.normalize_name with ß
Demonstrates the cited bug by invoking ResourceClass.normalize_name on a
string containing sharp S ('ß').  The result is different for py2 and
py3.

Change-Id: I632995c1a234f26f05ef0b5675e0e22b9866b03d
Related-Bug: #1762789
2018-04-10 12:17:17 -05:00
esberglu 8a67fcd1c2 PowerVM: Add proc_units_factor conf option
This introduces a new PowerVM conf option, proc_units_factor, which can
range from 0.05 to 1.0 and will default to 0.1. It is used to calculate
the physical processing power to assign per vCPU, where 1.0 is a whole
physical processor and 0.05 is 1/20th of a physical processor.

Change-Id: I67bfe2a6eff86f1947ada7661fc7c3fed81ed28f
2018-04-10 11:24:20 -05:00
Zuul 836c3913cc Merge "Remove mox in unit/api/*/test_server_password.py" 2018-04-10 15:01:58 +00:00
Zuul 031ceab2c1 Merge "Remove mox in unit/api/*/test_server_metadata.py" 2018-04-10 15:01:43 +00:00
Zuul e792ecc63b Merge "Remove mox in test_user_data.py" 2018-04-10 15:01:33 +00:00
Zuul 664ff194b0 Merge "Remove mox in unit/api/*/test_instance_actions.py" 2018-04-10 14:36:02 +00:00
Matt Riedemann 6abca80fb5 Update wording in @safe_connect placement warnings
We're well past the point of Placement being required,
so this drops the wording about Newton and Ocata and
just makes the warnings say that Placement is required.

Change-Id: I42730e6ef0ac66efe9122ac3078ca15c1071b080
2018-04-10 10:33:11 -04:00
Raoul Hidalgo Charman 197539d7a0 Expose shutdown retry interval as config setting
This option is in the driver interface but was hard coded in the manager
class.

Defaults to old value (10 seconds) if not set in configuration file.

Change-Id: I0c8db2efec6098c017aad2f6588938bc548db139
2018-04-10 14:36:01 +01:00
Kashyap Chamarthy 28d337bf74 Pick next minimum libvirt / QEMU versions for "Stein"
The last time we incremented versions for libvirt and QEMU was during
the "Pike" release (commit: b980df0, 11-Feb-2017); for "Queens" we
didn't do any.  The advertized NEXT_MIN_{LIBVIRT,QEMU} versions during
"Pike" release were set to: libvirt 1.3.1 and QEMU 2.5.0 -- but they
weren't actually bumped for "Queens".  They will be applied for the
"Rocky" release.

Based on the LibvirtDistroSupportMatrix[*], this patch announces a
version increment for libvirt and QEMU that will be applied for the
"Stein" release, with predicted minimum versions setting libvirt to
3.0.0 and QEMU to 2.8.0.

[*] https://wiki.openstack.org/wiki/LibvirtDistroSupportMatrix

Change-Id: I872304f99e3401f9c09d61b5511300ef9c5c7e8d
2018-04-10 09:13:27 +02:00
Takashi NATSUME 0abdd78b29 Remove mox in unit/virt/xenapi/test_vm_utils.py (3)
This patch removes using mox in the following test classes.

* GenerateEphemeralTestCase
* StreamDiskTestCase
* VMUtilsSRPath
* CreateKernelRamdiskTestCase

This patch completes removing using mox
except where 'stubout_session' is used
in nova/tests/unit/virt/xenapi/test_vm_utils.py.

The 'stubout_session' will be modified
at the same time when nova/tests/unit/virt/xenapi/stubs.by
is modified in another patch.

Change-Id: I138657464aecf6712804a87f102a430c242d85a4
Implements: blueprint mox-removal
2018-04-10 03:53:18 +00:00
Takashi NATSUME 09fb0748be Remove mox in unit/virt/xenapi/test_vm_utils.py (2)
This patch removes using mox in the following test classes.

* ResizeHelpersTestCase
* CheckVDISizeTestCase
* ShutdownTestCase
* CreateVBDTestCase

Subsequent patches will remove using mox in another test class
in nova/tests/unit/virt/xenapi/test_vm_utils.py.

Change-Id: Ie3376145c1779b4163537194727c4541db38cfaf
Implements: blueprint mox-removal
2018-04-10 12:32:06 +09:00
Takashi NATSUME 6be4fd0f63 Remove mox in unit/virt/xenapi/test_vm_utils.py (1)
This patch removes using mox in the following test classes.

* LookupTestCase
* XenAPIGetUUID
* FetchVhdImageTestCase

Subsequent patches will remove using mox in another test class
in nova/tests/unit/virt/xenapi/test_vm_utils.py.

Change-Id: Ie40f36b717d935d010e40d2ab29bac647c77b02d
Implements: blueprint mox-removal
2018-04-10 02:16:19 +00:00
jichen a53dbc0c23 make metadata doc up to date
currently we have following output:

$ curl http://169.254.169.254/openstack
2012-08-10
2013-04-04
2013-10-17
2015-10-15
2016-06-30
2016-10-06
2017-02-22
latest

Change-Id: I6b4aed63d5c981abc9374baf929f05b26760e645
2018-04-10 09:41:22 +08:00
Zuul 6d4958b5c2 Merge "Replace mox stubs with stub_out in test_extended_volumes.py" 2018-04-10 01:21:29 +00:00
Zuul f2c4680f08 Merge "Fix cancel_all_events event name parsing" 2018-04-09 20:09:44 +00:00
Zuul 3dbcbe42ee Merge "Fix comments at the 'save' method of objects.Instance" 2018-04-09 19:56:06 +00:00
Zuul ebb4817ce3 Merge "Avoid dumping stack on BuildAbortException" 2018-04-09 18:33:34 +00:00
Zuul 5d8244b3d2 Merge "libvirt: Block swapping to an encrypted volume when using QEMU to decrypt" 2018-04-09 18:24:11 +00:00
Zuul e2d5dc4e2c Merge "Support extending attached ScaleIO volumes" 2018-04-09 15:18:22 +00:00
Dan Smith 32f5c5075c Avoid dumping stack on BuildAbortException
While debugging something I noticed that we are dumping stack when we
intentionally abort a build. When we raise BuildAbortException, it means
we have caught some situation and are handling it, setting error states
and such. We do not need to dump stack in that situation, and doing so
pollutes the logs. We already dump stack when we catch an unexpected
exception in the same path, which makes sense.

This just changes that LOG.exception to LOG.error and adds a trivial
test verification to make it clear that it is the behavior we want.

Change-Id: I4e3343f250ee563e87001b0e17ab19dc872caa66
2018-04-09 07:27:04 -07:00
Takashi NATSUME ecea14d4a9 Fix comments at the 'save' method of objects.Instance
* Remove unnecessary parameter description
* Fix a format of the comments
* Fix a wrong method name (self.obj_what_changed())

TrivialFix
Change-Id: If5db63bf1b63ca8f1ef7b73c5f798122275b7cd3
2018-04-09 22:59:42 +09:00
Lee Yarwood 7ceccee056 libvirt: Block swapping to an encrypted volume when using QEMU to decrypt
The original check in Ibfa64f18bbd2fb70db7791330ed1a64fe61c1355 only
blocked swap volume _from_ an encrypted LUKS volume while using native
QEMU decryption. This change expands that check to also block swap
volume when swapping _to_ an encrypted LUKS volume while using native
QEMU decryption, regardless of the original volume being encrypted.

Change-Id: I258127fdcd011ccec721d5ff62eb7f128f130336
Closes-bug: #1749418
2018-04-09 14:41:15 +01:00
Zuul 8e6ecdb9dd Merge "conf: Remove 'db_driver' config opt" 2018-04-09 11:46:46 +00:00
Takashi NATSUME 61a30a1cf5 Remove mox in unit/api/*/test_server_metadata.py
Replace stubs.Set with stub_out in
nova/tests/unit/api/openstack/compute/test_server_metadata.py.

Change-Id: I9e69505416397f254b07ec2ab13bc03f8da9045a
Implements: blueprint mox-removal
2018-04-09 18:24:04 +09:00
Takashi NATSUME d65d890399 Remove mox in unit/api/*/test_server_password.py
Replace stubs.Set with stub_out in
nova/tests/unit/api/openstack/compute/test_server_password.py.

Change-Id: I34e41f164e5a784cdec5d90fc10ff8f7393e9454
Implements: blueprint mox-removal
2018-04-09 16:28:08 +09:00