Commit Graph

43330 Commits

Author SHA1 Message Date
Jenkins 6b62b0f228 Merge "Remove the sample policy file" 2016-10-10 12:18:21 +00:00
Jenkins 0b59a2d9dc Merge "Patch mkisofs calls" 2016-10-07 20:46:40 +00:00
Jenkins 948f57d832 Merge "Annotate online db migrations with cycle added" 2016-10-07 20:41:59 +00:00
Diana Clarke b90df7c9c7 Patch mkisofs calls
The nova unit tests recently started to fail on systems lacking mkisofs
(like mac osx). Skip these mkisofs calls by patching _make_iso9660.

Change-Id: I350aafa878616f74df506c1bc9ee5f26ea06fe97
Closes-Bug: #1630420
2016-10-07 12:14:30 -04:00
Jenkins 0967572f1e Merge "Fix drop_move_claim() on revert resize" 2016-10-07 16:13:34 +00:00
Jenkins 38c4516f8a Merge "Change log level to debug for migrations pairing" 2016-10-07 16:00:42 +00:00
Jenkins f57cc519fd Merge "[placement] reorder middleware to correct logging context" 2016-10-07 12:11:29 +00:00
Jenkins 1feda57285 Merge "[placement] Allow both /placement and /placement/ to work" 2016-10-07 12:10:49 +00:00
Jenkins 51486d183b Merge "Remove unnecessary credential sanitation for logging" 2016-10-07 12:10:09 +00:00
Jenkins 3f98e025eb Merge "[placement] ensure that allow headers are native strings" 2016-10-07 12:09:26 +00:00
Jenkins 152d5e45ef Merge "Delete traces of in-progress snapshot on VM being deleted" 2016-10-07 11:38:35 +00:00
Jenkins 582017212d Merge "Catch DevicePathInUse in attach_volume" 2016-10-06 22:47:20 +00:00
Jenkins cd44884e7b Merge "conf: Trivial cleanup of console.py" 2016-10-06 22:03:53 +00:00
Jenkins 2e65c58462 Merge "conf: Trivial cleanup of compute.py" 2016-10-06 22:03:15 +00:00
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
Prateek Arora d8e695cb90 Delete traces of in-progress snapshot on VM being deleted
When user tries to create snapshot of instance and at the same time
if another request tries to delete the instance, at that time image
goes in saving status for forever because of race  between instance
delete and snapshot requests.

Caught exceptions(InstanceNotFound and UnexpectedDeletingTaskStateError)
in except block and deleting the image which got stuck in saving state.

Closes-Bug: #1555065
Change-Id: If0b918dc951030e6b6ffba147443225e0e4a370a
2016-10-06 21:25:20 +00:00
jichenjc 6051499a85 Catch DevicePathInUse in attach_volume
DevicePathInUse might be raised in attach action,
we didn't catch it so a 500 error might be returned
to end user.

Change-Id: Ic9f0979b5adef28bb47756e7fc2ce5a3d6493298
Closes-Bug: 1621452
2016-10-06 21:03:16 +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
Ludovic Beliveau 2f073fd8df Fix drop_move_claim() on revert resize
On revert_resize(), the migration context was dropped hence setting it
to None.  The problem is that the migration context is needed when
executing finish_revert_resize() so that the neutron port can be updated
with the right binding profile.

This patch moves the instance.drop_migration_context() call out from the
resource tracker so that the migration context can be dropped at the
appropriate times: after RT.drop_move_claim() is called in the compute
manager's confirm_resize() call and after the virt driver's
finish_revert_resize() in the compute manager's finish_revert_resize()
call.

Change-Id: I1b7b2573de4380576dd8b801ed59d8955b0ab72a
Partial-bug: #1512880
2016-10-06 18:13:42 +00: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
Andrew Laski b713a62740 Remove unnecessary credential sanitation for logging
Now that the credentials dict is the return from
context.to_policy_values() and not the context object itself there's no
need to attempt to pop the 'auth_token' key out before logging.

Change-Id: I3b4eacf6c7d97a4243aff026aefbb53017d5e840
2016-10-05 12:54:23 -04: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
Timofey Durakov f085fbd7d3 Change log level to debug for migrations pairing
For resize/cold-migration it's possible that instance
already changed host to destination, but no confirm/revert
has happened yet. In that case resource tracked starts spamming
errors, because it's impossible to match migration and instance.
It's safe to lower log level to debug in that case.

Change-Id: I70cb7426e0e2849ee7d01205ce7b2d883a126d66
Closes-Bug: #1555320
2016-10-05 11:50:19 +03: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