Commit Graph

43304 Commits

Author SHA1 Message Date
Jenkins a63ed42e3a Merge "conf: Trivial cleanup of 'cells'" 2016-10-06 22:02:27 +00:00
Jenkins f13f1fcd0d Merge "conf: Deprecate all topic options" 2016-10-06 21:38:33 +00:00
Jenkins a4530d713a Merge "Remove unused conf" 2016-10-06 20:57:28 +00:00
Jenkins 358ee783f6 Merge "Move notification_format and delete rpc.py" 2016-10-06 20:56:47 +00:00
Jenkins 290c31beaa Merge "Make releasenotes reminder detect added and untracked notes" 2016-10-06 19:55:00 +00:00
Jenkins 11ca00a772 Merge "tests: avoid creation of instances dir in the working directory" 2016-10-06 19:54:16 +00:00
Jenkins 7bea64e749 Merge "Enable release notes translation" 2016-10-06 19:53:42 +00:00
Jenkins bf3035506f Merge "Fix typo on api-ref parameters" 2016-10-06 19:53:06 +00:00
Jenkins 1e7dc26713 Merge "Fix small RST markup errors" 2016-10-06 19:52:27 +00:00
Jenkins 99ae65d1c4 Merge "[Trivial] changes tiny RST markup error" 2016-10-06 19:51:50 +00:00
Jenkins bd638af2f5 Merge "Remove the duplicated test function" 2016-10-06 19:51:09 +00:00
Jenkins 79ea8f3d2f Merge "Remove mox in nova/tests/unit/compute/test_shelve.py (1)" 2016-10-06 19:43:23 +00:00
Jenkins f680f2810b Merge "Mock.side_effects does not exist, use Mock.side_effect instead" 2016-10-06 19:42:47 +00:00
Andreas Jaeger f9a0f6f6df Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Change-Id: Ibf005a434417c7b6ad7b7bada27d45f3bf238db1
2016-10-06 20:17:01 +02:00
OpenStack Proposal Bot 9c39f37968 Updated from global requirements
Change-Id: Ib4348d9d2aa75cb93fd77d10bafd8e8268f22756
2016-10-06 16:59:36 +00:00
Roman Podoliaka 1f66c2e7fa tests: avoid creation of instances dir in the working directory
These tests did not mock imagebackend and left a temporary instances/
directory after completion. As imagebackend is not really used, just
mock it entirely instead of using a tempdir fixture.

TrivialFix

Change-Id: I5f084112757bedf9a5da546033d3a5fc68e68991
2016-10-06 17:00:21 +03:00
Sahid Orentino Ferdjaoui 407e659eb9 libvirt: fix DiskSmallerThanImage when block migrate ephemerals
When block live migrate an instance with ephemerals an exception
FlavorDiskSmallerThanImage can be raised because the size used to
create the base ephemeral disk is the total size allowed by flavor
which can be greater than the size effectively requested by the
instance when spwaned.

Closes-Bug: #1628449
Change-Id: I264f5beb73d9b8ba441aec8f8a317b553a7e22c0
2016-10-06 08:49:32 -04:00
Jenkins 7a9eb10d0d Merge "Fix periodic-nova-py{27,35}-with-oslo-master" 2016-10-05 18:27:22 +00:00
Jenkins b796673f39 Merge "Unwind circular import issue with api / utils" 2016-10-05 15:57:24 +00:00
Jenkins 39e41c12ec Merge "libvirt: Fix BlockDevice.wait_for_job when qemu reports no job" 2016-10-05 11:11:56 +00:00
qiaomin ff14503ca2 Remove the duplicated test function
Change-Id: Id9aa3f35f8c367d6a6a4f1931611b4c76f16f61c
2016-10-05 07:55:09 +00:00
Jenkins 9c89e07d17 Merge "Add some extra logging around external event handling" 2016-10-05 01:35:48 +00:00
Jenkins 870a77f571 Merge "Allow running db archiving continuously" 2016-10-05 00:56:53 +00:00
Dan Smith 6f00d3be95 Allow running db archiving continuously
This adds a --until_complete flag to the db archive command, which will
attempt to run batches of max_rows continuously until archiving has
completed (or stops being able to archive anything). We also take care
to catch KeyboardInterrupt so that it will, if stopped, still print
the verbose report at the end. Instead of printing the table on each
iteration, we print some progress information and then provide a completed
summary table at the end of the run.

This also defaults max_rows to a sane value. The previous meaning of not
providing a value was "archive a whole table in a single operation",
which was useful only in the most simple of cases. Now that we have
a more reasonable "do it until you are done" mechanism, we default this
to 1000 rows for sanity, which also serves as the batch size for the
continuous mode.

Implements blueprint archive-deleted-rows-all
Change-Id: I2929c2f5b3116b63a4666b258bf078bc51d4e45a
2016-10-04 12:30:14 -07:00
Jenkins 1361ee587a Merge "Improve help text for xenapi_session_opts" 2016-10-04 16:22:55 +00:00
Dan Smith 453e71d76e Add some extra logging around external event handling
While debugging a failed event delivery bug, I realized that our
logging of the event path leaves some ambiguity which makes it
difficult to follow. This adds the instance host to the existing
debug message on the API side, which helps to identify that events
are being sent to the right (or wrong) host. Further, which logs
a warning in the case where a compute host receives an instance
message when no thread was waiting for it.

Change-Id: I9a1461493a19750fe5dc11869cfa33d2e6fd3c6f
2016-10-04 07:29:50 -07:00
Jenkins 434c0a31ac Merge "refresh instances_path when shared storage used" 2016-10-04 11:32:36 +00:00
Jenkins 7b7dba30d7 Merge "Fix error status code on update-volume API" 2016-10-04 00:17:24 +00:00
Jenkins 912b49b54c Merge "Prevent us from sleeping during DB retry tests" 2016-10-03 20:30:03 +00:00
Jenkins 6eaf681fde Merge "Remove scheduled_at attribute from instances table" 2016-10-03 20:29:33 +00:00
Jenkins 8eb1a2816d Merge "Fix calling super function in setUp method" 2016-10-03 20:26:46 +00:00
Jenkins 0775d799a8 Merge "Make db archival return a meaningful result code" 2016-10-03 20:00:59 +00:00
Jenkins dfb2af0f8e Merge "numa: Fixes NUMA topology related unit tests" 2016-10-03 16:57:20 +00:00
Jenkins 2631cc3d45 Merge "Updated from global requirements" 2016-10-03 16:51:42 +00:00
Jenkins 2b6a2767bc Merge "Disable 'supports_migrate_to_same_host' HyperV driver capability" 2016-10-03 15:27:18 +00:00
Jenkins 11fd1470d3 Merge "Removing duplicates from columns_to_join list" 2016-10-03 15:24:56 +00:00
Jenkins 911bc66c59 Merge "Fixes RST markup error to create a code-box." 2016-10-03 15:14:09 +00:00
Jenkins efd9c7d587 Merge "Hyper-V: Fixes os_type image property requirement" 2016-10-03 15:12:04 +00:00
Jenkins 828f27ea52 Merge "Add destroy method to the RequestSpec object" 2016-10-03 15:11:24 +00:00
Jenkins af78a00311 Merge "Add get_context helper method" 2016-10-03 15:10:50 +00:00
Jenkins 5bdcfda5aa Merge "Remove context object in oslo.log method" 2016-10-03 14:52:20 +00:00
Matthew Booth 0f4bd24166 libvirt: Fix BlockDevice.wait_for_job when qemu reports no job
We were misinterpreting the return value of blockJobInfo. Most
immediately we were expecting it to return an integer, which has never
been the case. blockJobInfo also raises an exception on error. Note
that the implementation of abort_on_error has always expected an
integer return value, and exceptions have never been handled, which
means that abort_on_error has always been a no-op, and exceptions have
never been swallowed. As this is also the most intuitive behaviour, we
make it explicit by removing abort_on_error. Any exception raised by
blockJobInfo will continue to propagate unhandled.

We were obfuscating the return value indicating that the job did not
exist, {}, by populating a BlockDeviceJobInfo with fake values. We
de-obfuscate this by returning None instead, which is unambiguous.

wait_for_job() was misnamed, as it does not wait. This is renamed to
is_job_complete() to be less confusing. Note that the logic is
reversed.

After discussion with Eric Blake of the libvirt team (see review
comments: https://review.openstack.org/#/c/375652/), we are now
confident asserting that if no job exists then it has completed
(although we are still not sure that it succeeded). Consequently we
remove the wait_for_job_clean parameter, and always assume that no job
means it has completed. Previously this was implicit because no job
meant a defaulted BlockDeviceJobInfo.job value of 0.

Co-authored-by: Sławek Kapłoński <slawek@kaplonski.pl>
Closes-Bug: #1627134
Change-Id: I2d0daa32b1d37fa60412ad7a374ee38cebdeb579
2016-10-03 14:47:52 +01:00
OpenStack Proposal Bot d4cbc2b9da Updated from global requirements
Change-Id: I277c18ef272b4e3c73d3eaa13937de7fd934dd0e
2016-10-02 20:16:53 +00:00
Takashi NATSUME 7e4082d271 Fix calling super function in setUp method
TrivialFix
Change-Id: Ia45af0923c467d373b87f4f81f89ceb7d6bf2728
2016-10-01 15:47:46 +09:00
Jenkins 27955dd459 Merge "VMware: Enforce minimum vCenter version of 5.5" 2016-10-01 02:46:44 +00:00
Tom Patzig 1af73d1fb3 refresh instances_path when shared storage used
When doing Live migration with shared storage, it happens erratically,
that the check for the shared storage test_file fails. Because the shared
volume is under heavy IO (many instances on many compute nodes) the client
does not immediately sees the new content of the folder. This delay
could take up to 30s.
This can be fixed if the client is forced to refresh the directories
content, which can be achieved by 'touch' on the directory. Doing so,
the test_file is visibile instantly, within ms.
The patch adds a 'touch' on instances_path in check_shared_storage_test_file,
before checking the existence of the file.

Change-Id: I16be39142278517f43e6eca3441a56cbc9561113
Closes-Bug: #1617299
2016-09-30 20:50:01 -04:00
Jenkins ca8bed829a Merge "Updated from global requirements" 2016-09-30 18:57:00 +00:00
Dan Smith c8e3cbc4d1 Prevent us from sleeping during DB retry tests
Unit tests should never *actually* sleep. Some of the DB API tests
that poke the retry wrapper in oslo.db trigger situations that would
call time.sleep(). This is part of a desirable exponential backoff
timer in oslo.db, but there's no reason to actually wait to call
the next mock in a unit test. So, mock out sleep for those tests.
Before this, the single-thread time to run test_db_api was 289s,
and afterwards it is 133s.

Change-Id: I0492b497000585f079691ae863b2b2ebf078795d
2016-09-30 11:49:17 -07:00
Ken'ichi Ohmichi edd86d9dac Fix error status code on update-volume API
As the following part of API-WG guidline[1],

  If a request contains a reference to a nonexistent resource in the
  body (not URI), the code should be 400 Bad Request. Do not use 404
  NotFound because :rfc:`7231#section-6.5.4` (section 6.5.4) mentions
  the origin server did not find a current representation for the
  target resource for 404 and representation for the target resource
  means a URI

Nova should return a BadRequest response(400) in this case, because
new_volume_id is specified in a request body. old_volume_id is not
necessary to be changed because the value is specified with URI.
So it is valid to return NotFound response if that is not existent.

[1]: https://github.com/openstack/api-wg/blob/master/guidelines/http.rst#failure-code-clarifications

Close-Bug: #1629110
Change-Id: Ib781b116f5af713d64b5880858cc4f81c3da3977
2016-09-30 10:58:27 -07:00
Stephen Finucane c7d0db445f conf: Trivial cleanup of 'cells'
* Fix indentation
* Add TODOs for items that still need attention
* Place items that are deprecated to the top to ease grouping in the
  future

Change-Id: I5283f8eb7c4906f974a76af0a154711b3b1aeac5
blueprint centralize-config-options-ocata
2016-09-30 13:39:51 +01:00