Commit Graph

43358 Commits

Author SHA1 Message Date
Jenkins 79eacfdda6 Merge "config options: improve libvirt smbfs" 2016-10-11 15:01:42 +00:00
Jenkins 55db69f2c0 Merge "Replace uuid4() with uuidsentinel" 2016-10-11 15:01:09 +00:00
Jenkins 0583bb5a84 Merge "docs: update code-review guide for config options" 2016-10-11 15:00:24 +00:00
Jenkins 0ceb0a712a Merge "Don't attempt to escalate nova-manage privileges" 2016-10-11 14:59:46 +00:00
Jenkins 72644e143f Merge "Config options consistency of ephemeral_storage.py" 2016-10-11 14:56:09 +00:00
Jenkins 6961ac9972 Merge "Fix invalid import order and remove import *" 2016-10-11 14:50:50 +00:00
Jenkins 3d66738373 Merge "Cleanup instance device metadata object code" 2016-10-11 14:50:15 +00:00
Jenkins a63a45805a Merge "Replace fake_utils by using Fixture" 2016-10-11 14:00:57 +00:00
Jenkins 3d7ff766a7 Merge "Tests: fix a typo" 2016-10-11 07:38:43 +00:00
Jenkins 3d5d66d588 Merge "Remove dead link from notification devref" 2016-10-10 22:01:51 +00:00
Jenkins e5bfc26f64 Merge "Add error handling for delete-volume API" 2016-10-10 19:56:36 +00:00
Markus Zoeller 87530b6e67 Don't attempt to escalate nova-manage privileges
Remove code which allowed nova-manage to attempt to escalate
privileges so that configuration files can be read by users who
normally wouldn't have access, but do have sudo access.

The privilege escalation came into nova-manage with commit e9fd01e
to solve bug 805695. That bug report didn't describe a faulty behavior
but a change request.

NOTE: This is related to change I03063d2 from Kiall Mac Innes who did
this for the "designate" project. I'm reusing the change-id from his
change to make it clear that they are related to each other.

NOTE: I removed the try-except block completely, as it doesn't make
sense to continue when we cannot read the config file (due to a wrong
path or permission errors). That's the same approach we used in the
recent "nova/cmd/policy_check" module.
https://github.com/openstack/nova/blob/master/nova/cmd/policy_check.py#L158

Co-Authored-By: Kiall Mac Innes <kiall@macinnes.ie>
Closes-Bug: 1611171
Change-Id: I03063d2af14015e6506f1b6e958f5ff219aa4a87
2016-10-10 17:54:07 +02:00
Jenkins 354630e681 Merge "Stop using mox stubs in test_evacuate.py" 2016-10-10 14:39:15 +00:00
Balazs Gibizer 39af8d5d70 Remove dead link from notification devref
The auto generated class documentation link was 404 in the notification
devref as that documenation is not generated automatically any more.

This patch modifies the notification devref to include the interesting
part of the class documentation inline.

Change-Id: I7cbea16fc9682fa3c00eac16a51c4ed8588ba45c
2016-10-10 16:37:13 +02:00
Anh Tran 493a3135ed Stop using mox stubs in test_evacuate.py
Replace 'stubs.Set' with 'stub_out' in
nova/tests/unit/api/openstack/compute/test_evacuate.py

Part of blueprint remove-mox-ocata

Change-Id: I5c9180d0424042d7e966287d2ac7faf9271c136f
2016-10-10 13:15:41 +00:00
Jenkins 26fd2eabb0 Merge "Fix API doc for os-console-auth-tokens" 2016-10-10 12:38:49 +00:00
Jenkins fa4dc18e41 Merge "Add Apache 2.0 license to source file" 2016-10-10 12:38:13 +00:00
Jenkins 6b62b0f228 Merge "Remove the sample policy file" 2016-10-10 12:18:21 +00:00
Gary Kotton e2635584a7 Tests: fix a typo
TrivialFix

Change-Id: I83ea75257d5b900a37f024fe29427d33c4f2b17e
2016-10-10 00:45:11 -07: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
Ken'ichi Ohmichi 2afc4e4669 Add error handling for delete-volume API
Due to lack of an error handling, delete-volume API returns HTTP500
error when deleting an attached volume.
This patch adds the error handling.

The corresponding Tempest test is Idb6267be770bcf2541595babebf269cdc71c2b8d

Closes-Bug: #1630783
Change-Id: Ia07556b2dc18678baa4c8fbd65820d8047362ef9
2016-10-06 21:20:31 +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