Commit Graph

40176 Commits

Author SHA1 Message Date
Hieu LE e691edf52e Config options: centralize aoe vol libvirt options (8)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the 8th patch in a long-chain patchs.

Change-Id: I8a071d24ba3e523fd269ddadfa8f2922b7ba0089
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-06 08:29:22 +00:00
Hieu LE 43caf37084 Config options: centralize volume libvirt options (7)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the 7th patch in a long-chain patchs.

Change-Id: I421d418d4b10d23f8ab640b6fc015611545322e8
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-06 08:29:13 +00:00
Hieu LE 15abb39ef2 Config options: centralize vif libvirt options (6)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the 6th patch in a long-chain patchs.

Change-Id: I9c182f49711a54e140c6321aa56c72850bc4d1a3
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-06 08:29:03 +00:00
Hieu LE 27fcf2a6cf Config options: centralize utils libvirt options (5)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the 5th patch in a long-chain patchs.

Change-Id: Iba3a4a487b73eb09fe67988e614c4811514e932f
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-06 08:28:52 +00:00
Hieu LE 51ab83cec7 Config options: centralize lvm libvirt options (4)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the 4th patch in a long-chain patchs.

Change-Id: Iaec928d77949cae222a4c94ec0bbe445264a2012
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-06 08:28:36 +00:00
Jenkins 8a93fd1378 Merge "Config options: centralize imagecache libvirt options (3)" 2016-05-06 08:11:30 +00:00
Jenkins 89e3c3cfeb Merge "Remove Limits dependency of legacy v2 API code" 2016-05-06 07:10:04 +00:00
Jenkins 49486d994a Merge "Config options: centralize imagebackend libvirt options (2)" 2016-05-06 06:12:20 +00:00
Ken'ichi Ohmichi a2e6a55a0d Remove Limits dependency of legacy v2 API code
In api-paste.ini, legacy_ratelimit has been unused since the patch
I1476b2e364032d7c98f71df0cd61f1d1c19e005d. And there is a dependency
of limits module on legacy v2 API code because the legacy_ratelimit
remains.
This patch removes these code for removing the dependency.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I4ecf1c9bd8b419769d474ddbb8116fe834199843
2016-05-06 13:58:40 +09:00
Jenkins a2ac0fbc4e Merge "Remove the legacy v2 API entry from api-paste.ini" 2016-05-06 01:30:12 +00:00
Jenkins 2c92ae2352 Merge "UEFI - instance terminates after boot" 2016-05-06 00:30:21 +00:00
Jenkins e01b364424 Merge "Add os-interface functional negative tests" 2016-05-06 00:05:04 +00:00
Jenkins 5ee293ffcd Merge "Add pycrypto explicitly" 2016-05-05 20:30:25 +00:00
Davanum Srinivas 82b525f1fa Add pycrypto explicitly
Running "tox -e pip-missing-reqs" was broken around the
time of the Mitaka release and we missed this requirement.

nova/crypto.py:29 dist=pycrypto module=Crypto.PublicKey.RSA

Essentially, since we are constrained using upper-constraints.txt
and the upper-constraints.txt has an entry for pycrypto, we
do not see a problem anywhere.

The dependency was introduced in:
If88beeb3983705621fe736995939ac20b2daf1f3

Closes-Bug: #1578047
Change-Id: I12978a6ca49524aa2256930617a259023e6908eb
2016-05-05 10:29:21 -04:00
Jenkins 5ddda6712a Merge "Remove legacy v2 API functional tests" 2016-05-05 11:37:35 +00:00
Jenkins ef43123fdd Merge "Fix unit tests for v2.1 API" 2016-05-05 11:23:36 +00:00
Hieu LE 1ad0ab6b96 Config options: centralize imagecache libvirt options (3)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the third patch in a long-chain patchs.

Change-Id: Ie1e9b16ba3bb702ff5a8712a94fca0afdcbbd80b
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-05 11:21:47 +00:00
Hieu LE d39778d5ce Config options: centralize imagebackend libvirt options (2)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then move another options in libvirt section.
This is the second patch in a long-chain patchs.

Change-Id: I3e452172e366b87b373eff33c454472c6be8f1f2
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-05 11:21:23 +00:00
Jenkins 7d4ce9e73f Merge "Remove legacy v2 unit tests[a-e]" 2016-05-05 11:16:49 +00:00
He Jie Xu 5a64f57824 Remove the legacy v2 API entry from api-paste.ini
The api sample tests and functional tests already stopped to
run against with legacy v2 API. This patch removes the legacy
V2 API entry from api-paste.ini, it stops user from using
legacy V2 API. This patch also adds deprecated report in pipeline
factory method to notice the user update their api-paste.ini
after upgrade code.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I1476b2e364032d7c98f71df0cd61f1d1c19e005d
2016-05-05 19:04:02 +08:00
Hieu LE dda676c80b Config options: centralize driver libvirt options (1)
The config options of the "nova.conf" section "libvirt" got
moved to the new central location "nova/conf/libvirt.py".
Subsequent patches will then another options in libvirt section.
This is the first patch in a long-chain patchs.

Change-Id: I3c66c6e211a35eeefadc07b9dae74764419ee7f4
Co-Authored-by: Markus Zoeller <mzoeller@de.ibm.com>
Implements: blueprint centralize-config-options-newton
2016-05-05 03:52:16 +00:00
Chung Chih, Hung 647a022bac UEFI - instance terminates after boot
When nvram element had specify template attribute which is path to boot
loader variable, libvirt will copy the file into libvirt's nvram
folder. Then qemu will boot with boot loader and boot loader variable.

Nova will specify boot loader to template attribute in nvram element
instead of specify boot loader variable. This will cause RAM execute
failed at qemu process.

Qemu config have variable named nvram which save location of master
nvram file. Therefore we didn't need to assign variable store file, just
let libvirt process to find relative variable store file with OVMF code file.

Change-Id: Ib589507967742334ad93c6a68de4ee8d3bb42eec
Closes-Bug: #1574558
2016-05-05 02:25:55 +00:00
Jenkins 38033b9b2f Merge "Add ppc64le architecture to some libvirt unit tests" 2016-05-05 02:13:34 +00:00
Jenkins a62e9df74a Merge "Make compute rpcapi 'live_migration' backward compatible" 2016-05-05 02:10:52 +00:00
Jenkins 3304f1924c Merge "fix wrong key name in test code" 2016-05-05 01:55:34 +00:00
Jenkins a5dcd64b39 Merge "Remove the legacy v2 API test scenarios from API sample tests" 2016-05-04 21:56:18 +00:00
Ken'ichi Ohmichi 852c9df40b Fix unit tests for v2.1 API
VolumeApiTestV21 is a test class for v2.1 API as the name, but the
class tested v2.0 API because the module of v2.0 API was used.
In addition, the specified request bodies also were wrong because
the parameter "size" is required on JSON-Schema.
This patch fixes these problems.

In addition, this patch renames an internal method of the related
test because the method name was difficult to understand the purpose.

Change-Id: Ibe165f00eb2e15a1a2d9466c1af48db2e6883916
2016-05-04 10:29:03 -07:00
Ken'ichi Ohmichi b5ec25d6ab Remove legacy v2 unit tests[a-e]
There are two implementation code for similar API in Nova repository.
One is newer: v2.1 API, another is legacy: v2 API. v2.1 API has been
 used as the default API since Liberty and legacy v2 API has been marked
as deprecated. We have used and tested v2.1 API so well and now is nice
time to remove legacy API code based on the consensus of the design
summit of Austin.

This patch removes unit tests of legacy v2 API[a-e].

NOTE: Two test modules test_extended_rescue_with_image and
      test_extended_virtual_interfaces_net are just removed
      because the corresponding modules exist on legacy v2
      code only. These modules are merged into source modules
      on v2.1 code.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Icd57f5b1718faef3ab7afe4acd34e56d4d29a3a8
2016-05-04 10:22:04 -07:00
Jenkins 4b6ab39393 Merge "Replace key manager with Castellan" 2016-05-04 17:15:55 +00:00
Jenkins 26a8155dd8 Merge "Complete Verification of os-virtual-interfaces" 2016-05-04 17:15:06 +00:00
Jenkins 84ce67ae1c Merge "Complete Method Verification of os-interface" 2016-05-04 17:14:11 +00:00
Jenkins 172d8eddfb Merge "Complet Method Verification of flavor-access" 2016-05-04 17:13:23 +00:00
Jenkins 54e66dd5a3 Merge "Complete Verification of os-flavor-extra-specs" 2016-05-04 17:12:16 +00:00
Jenkins a0cea4e5a3 Merge "Complet Method Verification of os-instance-actions" 2016-05-04 17:10:58 +00:00
Jenkins 7a5f1a804c Merge "Complet Method Verification of flavor" 2016-05-04 17:10:09 +00:00
Jenkins f39743a1e6 Merge "Complete Verification of os-hosts" 2016-05-04 16:45:13 +00:00
Jenkins bfca4bec87 Merge "Complete method Verification of consoles" 2016-05-04 15:59:02 +00:00
Jenkins d2bf3ef0a2 Merge "Complete Verification of os-server-password" 2016-05-04 15:57:56 +00:00
Jenkins ce46dc3823 Merge "complete Method Verification of aggregates" 2016-05-04 15:56:55 +00:00
Jenkins a3a1a89829 Merge "Complete Method Verification of ips" 2016-05-04 15:50:48 +00:00
Jenkins c525e4e700 Merge "config options: centralize cinder options" 2016-05-04 13:32:09 +00:00
Jenkins d4153b9a6d Merge "Config options: Centralize netconf options" 2016-05-04 13:21:29 +00:00
He Jie Xu e22983576b Remove legacy v2 API functional tests
This patch removes the functional tests which against on the legacy V2 API.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Ie7189ddcb2b8bc103104045882055eb6b1fc8290
2016-05-04 18:17:23 +08:00
Peng Li 91bef29e16 fix wrong key name in test code
test_default_root_device_name() in
nova/tests/unit/virt/libvirt/test_driver.py,
'detination_type' should be 'destination_type'.

Change-Id: Iba73e582d36fa16f563a8e806073a06f857e1078
Closes-Bug: #1577758
2016-05-04 17:44:21 +08:00
He Jie Xu 73eda1cb7d Remove the legacy v2 API test scenarios from API sample tests
This patches from the test scenarios for the legacy v2 from API
sample tests. There still have some codes for legacy v2 which should
be cleanup, but that can be done later patches. This patch just stop
the test on the legacy v2 API.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I38626e5a4aa98cbfd7b65b5eb0edbcae96e5b3f2
2016-05-04 15:49:52 +08:00
Jenkins 035fed4e9c Merge "Fix doc build if git is absent" 2016-05-04 00:14:36 +00:00
Jenkins 2a8d726124 Merge "Deprecated the concept of extensions in v2.1." 2016-05-04 00:13:54 +00:00
Jenkins cdd0125ae9 Merge "Changed the storage size from GB to GiB." 2016-05-04 00:11:06 +00:00
Jenkins 8185dcb57e Merge "Add validations for volume_size and destination_type" 2016-05-03 17:58:23 +00:00
Dan Smith 9b2329d100 Fail to start nova-api if no APIs were able to be started
This helps to make it clear that either you specified no API services,
or you specified all bad ones, or that you fat-fingered the thing
entirely. If we can't start any, we shouldn't start the process acting
like we did and then wait for you to figure out the hard way that we
aren't actually listening for any requests.

Change-Id: I864486a58cf3fde35647ae3b8d2ad917c809ea54
Related-Bug: #1572495
2016-05-03 14:51:40 +00:00