Commit Graph

24330 Commits

Author SHA1 Message Date
Jenkins ee06a032e4 Merge "Remove duplicates from exceptions list" 2013-10-25 07:34:19 +00:00
Jenkins c4383c06d3 Merge "Remove xenapi rpm building code" 2013-10-25 07:32:14 +00:00
Jenkins 7fbf8c14ba Merge "Nova db/api.py docstring cleanups..." 2013-10-25 07:23:41 +00:00
Jenkins 6af8c79664 Merge "migrate server doesn't raise correct exception" 2013-10-24 21:04:41 +00:00
Jenkins 27854ddd48 Merge "xenapi: Speeding up the easy cases of test_xenapi" 2013-10-24 20:03:09 +00:00
Jenkins 6791f76f38 Merge "make libvirt driver get_connection thread-safe" 2013-10-24 20:02:28 +00:00
Jenkins 31ee38c84f Merge "nova.exception does not have a ProcessExecutionError" 2013-10-24 19:56:07 +00:00
Jenkins 0cc8526572 Merge "Fix migrate w/ cells" 2013-10-24 18:46:15 +00:00
Jenkins 980ff065c9 Merge "Add tests for compute (child) cell" 2013-10-24 18:45:03 +00:00
Jenkins 5fdab62c0e Merge "Change testing of same flavor resize" 2013-10-24 17:20:10 +00:00
Jenkins cd96bbf18e Merge "Fix compute_api tests for migrate" 2013-10-24 17:19:07 +00:00
Jenkins 982a7393da Merge "VMware: fix VM resize bug" 2013-10-24 16:06:23 +00:00
Jenkins 59c588d9d9 Merge "Remove extra space in tox.ini" 2013-10-24 15:39:01 +00:00
Jenkins f10b93b293 Merge "Replace basestring by six for python3 compatability" 2013-10-24 15:38:09 +00:00
Xavier Queralt a528302a24 Fix consoleauth check_token for rpcapi v2
In 48dd520958 support for the 2.0
consoleauth rpc API was added which missed the return statement in the
check_token method. Because of this all the components that had to
verify a token against consoleauth component would fail to do so.

This patch fixes the check_token method and extends the tests to cover
the new v2.0 class.

Closes-Bug: #1244220
Change-Id: I4e5186943d28609083f723f4b43ab6f0ecbffd27
2013-10-24 15:54:44 +02:00
Dan Prince a9e3784c1b Nova db/api.py docstring cleanups...
We no longer use LazyPluggable for the db_backend, and
dbapi_use_tpool options. These now come from
nova.openstack.common.db.api.

Also, removed doc about enable_new_services which seemed a bit
lonely without the rest and probably isn't needed since the
config option help explains it well enough.

Change-Id: I14d00e013a1a0c0dfc80e0bba8ad82e97940d6ac
2013-10-24 09:46:01 -04:00
Jenkins 0c5ffc818b Merge "Drop RPC securemessage.py and crypto module." 2013-10-24 09:15:05 +00:00
Gary Kotton c586d63538 VMware: fix VM resize bug
The following operations would fail due to invalid references, either by name
or UUID:
    - resize
    - resize-confirm
    - resize-revert

Closes-bug: #1199954

Change-Id: I39b804ed3c0c57455547d9ece0ef779cf73a5926
2013-10-23 23:40:17 -07:00
Gary Kotton 74289aacb5 VMware: fix bug for reporting instance UUID's
Ensure that the correct UUID's are reported to the compute
manager. The fix will return only valid UUID's and not all
of the names of the instances running.

Closes-Bug: #1237795

Change-Id: I32bb6f4783dcc80697abebd5a7f45ef9950a0896
2013-10-23 23:34:50 -07:00
Jenkins ff50ff67f1 Merge "xenapi: Speeding up more tests by switching to NoDB" 2013-10-24 06:21:57 +00:00
Jenkins e0d7d008b0 Merge "Fix divergence in attach_interfaces extensions" 2013-10-24 06:16:46 +00:00
lawrancejing 7841ef1f20 Remove extra space in tox.ini
Change-Id: I19060db8622e5747ab19a11a8eafe3144d61abe9
2013-10-24 12:54:17 +08:00
Jenkins 8f62dd1f05 Merge "Add obj_make_compatible()" 2013-10-24 01:08:59 +00:00
Jenkins 94ac9b0e60 Merge "Fix error message of os-cells sync_instances api" 2013-10-24 01:08:27 +00:00
Jenkins f8c68e5fd4 Merge "Fix setting backdoor port in service start" 2013-10-24 00:36:25 +00:00
Jenkins 22e456a5b5 Merge "Fix tests for migration 227 to check sqlite" 2013-10-24 00:32:31 +00:00
Jenkins b365b76314 Merge "Ensure migration 209 works with NULL fkey values" 2013-10-24 00:30:43 +00:00
Jenkins e8b1eae787 Merge "Make security_group_get() more flexible about joins" 2013-10-24 00:29:43 +00:00
Jenkins 3eefcef982 Merge "Fixing ephemeral disk creation." 2013-10-24 00:22:54 +00:00
Jenkins 82c1364a7a Merge "Fix getting nwinfo for Instance obj" 2013-10-24 00:18:45 +00:00
Jenkins f3711c51b7 Merge "Reply with a meaningful exception, when libvirt connection is broken." 2013-10-23 23:26:08 +00:00
Jenkins 18e0a6df43 Merge "Add testr concurrency option for run_tests.sh" 2013-10-23 23:24:24 +00:00
Jenkins 03006ea958 Merge "Add missing ' to extra_specs debug message" 2013-10-23 23:12:26 +00:00
Jenkins ace9b9d16e Merge "Fixes unicode issue in the Hyper-V driver" 2013-10-23 22:40:53 +00:00
Chris Behrens b852548ef0 Fix migrate w/ cells
While in a child cell, do not raise when the current flavor is passed
into compute API's resize().  This is behavior that should be limited to
nova-api.

Closes-bug: 1243816

Change-Id: Ie67af3ab3003164e9742a8c4d5bd75502dca96c4
2013-10-23 18:55:05 +00:00
Chris Behrens 2f0a6b7d8e Add tests for compute (child) cell
When testing the compute API, we should also be testing when the
cell_type is 'compute'.

Change-Id: Ib0a82e00040eed5814ed7a031070b343d32ee2db
2013-10-23 18:55:02 +00:00
Chris Behrens 23059b965c Change testing of same flavor resize
Resizing to same flavor for compute cells should not fail, so this patch
reworks the current test such that it'll be easier to modify when the
compute cells bug is fixed in an upcoming patch.

Change-Id: I4331db8636c2256f18cd0a2196033e1a2257c971
2013-10-23 18:39:42 +00:00
Jenkins 07f5009c9d Merge "Add byte unit constants" 2013-10-23 18:14:14 +00:00
Jenkins e7df5abe93 Merge "Apply six for metaclass" 2013-10-23 18:12:13 +00:00
Chris Behrens 28a1e0e352 Fix compute_api tests for migrate
They are actually testing resize because of 'flavor_id_passed' being
passed in as True to _test_resize(), when that is already the default
for testing resize.

Change-Id: Iae31dad8e869481898579b5cd752e8e5baa306d1
2013-10-23 17:19:26 +00:00
guohliu bbfad46490 Replace basestring by six for python3 compatability
The builtin basestring abstract type was removed in python3,
use str instead, we need to using six.string_types to replace
the basestring for python3 compatibility.

Partial Implements bp basestring-py3-compatible

Change-Id: I719e104ae46ebb6e986c53a019b93e3a45e6d0fd
2013-10-23 22:42:28 +08:00
Tom Hancock b2e64e3798 make libvirt driver get_connection thread-safe
libvirt driver's get_connection is not thread safe in the
presence of a libvirtd restart during concurrent incoming
requests.

With existing code each will in turn call get_connection,
find the connection is broken, try to create new one, block
for a while and yield to the next thread to do the same.
You get as many connections as there are incoming requests
and only the last one is used finally. If enough are incoming
these connections can exhaust the client pool configured
for libvirtd.
One fix is to hold a lock while creating the connection.
Note that has_min_version calls _conn which calls get_connection
and thus the direct call to _has_min_version()

Also added the exception text if it fails to register an event
handler for lifecycle events.

Change-Id: I090765802bfe443440f16722bc7c43b6280fe56a
Fixes: bug #1240905
2013-10-23 08:48:48 +00:00
Jenkins eda3900a3b Merge "Remove deprecated libvirt VIF driver code" 2013-10-23 08:34:57 +00:00
Jenkins 63084a636a Merge "Adds V3 API samples for console output" 2013-10-23 07:50:39 +00:00
Jenkins e1aa43d5b6 Merge "Fixes Invalid tag name error when using k:v tagname" 2013-10-23 07:45:46 +00:00
Sergey Skripnick 39450168f0 Remove duplicates from exceptions list
Duplicated exceptions:
 exception.QuotaError
 exception.SecurityGroupLimitExceeded

Change-Id: Ie8d40cf6e0a1a7b2191877059b757a752aeb4e29
2013-10-23 10:44:11 +03:00
Jenkins 3ef37f73ef Merge "xenapi: ephemeral disk partition should fill disk" 2013-10-23 07:43:39 +00:00
Jenkins 6768a5b67f Merge "Merging two mkfs commands." 2013-10-23 07:42:13 +00:00
Jenkins b98a3bcf85 Merge "catch exception in start and stop server api" 2013-10-23 07:29:02 +00:00
Jenkins 6eca1acbbb Merge "Add V2 rpc api for consoleauth" 2013-10-23 07:28:26 +00:00