trove/trove/tests/unittests
Peter Stachowski 51f2655770 Locality support for clusters
In order to allow clusters to be all on the same hypervisor
(affinity) or all on different hypervisors (anti-affinity) a new
argument (locality) needed to be added to the Trove cluster-create API.

This changeset addresses the Trove server part of this feature.
'locality' can now be added to the ReST payload for a cluster-create
command and it is passed along as a scheduler hint to Nova.

The cluster scenario tests were enhanced to test that 'affinity'
works. Testing that 'anti-affinity' fails proved to be too
time consuming, since at present the only way for a cluster to
'fail' is to timeout (and that takes 10 hours).

The server-group is checked to make sure it is created properly,
and that it has been deleted after all the related instances are gone.

DocImpact: New functionality

Partially implements: blueprint replication-cluster-locality
Depends-On: Ie46cfa69ffe6a64760aca38c495563f5724bd0d0

Change-Id: I657bf5c023d0257e462cc39f57c16eb6ee83807a
2016-07-07 21:30:10 +00:00
..
api Port more API unit tests to Python 3 2016-05-02 22:31:06 +02:00
backup Port backup test_storage to Python 3 2016-06-21 19:08:00 +02:00
cluster Locality support for clusters 2016-07-07 21:30:10 +00:00
common Port test_pagination on Python 3 2016-06-29 15:55:18 +02:00
conductor Correct errors resulting in "No handlers ..." error message 2015-11-10 15:42:22 -05:00
configuration Fixes hacking rules 2015-05-29 07:27:59 +00:00
datastore Fixing misstypos 2016-07-06 17:46:40 +00:00
db Fixes hacking rules 2015-05-29 07:27:59 +00:00
dns Port designate code to Python 3 2016-05-02 22:31:05 +02:00
guestagent Switch from MySQL-python to PyMySQL 2016-06-30 08:47:01 +02:00
instance Locality support for replication 2016-06-20 19:38:48 +00:00
mgmt Implement DBaaS Ceilometer Notifications 2016-02-27 00:16:28 +00:00
module Server support for instance module feature 2016-03-15 12:21:55 -04:00
mysql Fixes hacking rules 2015-05-29 07:27:59 +00:00
network Implement DBaaS Ceilometer Notifications 2016-02-27 00:16:28 +00:00
quota Add variables for quota configuration 2016-04-22 20:12:47 +00:00
router Fixes hacking rules 2015-05-29 07:27:59 +00:00
secgroups Implement DBaaS Ceilometer Notifications 2016-02-27 00:16:28 +00:00
taskmanager Locality support for replication 2016-06-20 19:38:48 +00:00
upgrade Implement DBaaS Ceilometer Notifications 2016-02-27 00:16:28 +00:00
util pxc grow/shrink cluster implementation 2016-02-05 11:43:36 -06:00
__init__.py Remove copyright from empty files 2014-01-16 13:13:23 +04:00
trove_testtools.py Mock detector run only once for each testcase 2016-06-15 21:30:05 +00:00