cinder/cinder/tests/unit
Gorka Eguileor b4a13281ea Make Replication support Active-Active
This patch adds new methods to our failover mechanism to allow failover
to work when a backend is clustered.

Adds REST API microversion 3.26 that adds a new `failover` method
equivalent to `failover_host` but accepting `cluster` field as well as
the `host` field.

Thaw and Freeze are updated to update cluster and all services within
the cluster.

Now cluster listings accepts new filtering fields `replication_status`,
`frozen`, and `active_backend_id`.

Summary listings return `replication_status` field and detailed listings
also return `frozen` and `active_backend_id`.

Specs: https://review.openstack.org/401392

APIImpact: New service failover action and new fields in cluster listings.
Implements: blueprint cinder-volume-active-active-support
Change-Id: Id3291b28242d5814c259283fa629b48f22e70260
2017-01-19 10:42:18 +01:00
..
api Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
backup Make BackupManager not a SchedulerDependentManager 2017-01-18 15:36:29 +01:00
brick Provide cfg to ignore lvm descriptor leak warnings 2016-09-26 09:20:58 +00:00
compute Improve compatibility with novaclient 7.0.0 2017-01-12 11:24:41 -05:00
consistencygroup Merge "Replace assertDictMatch with assertDictEqual method in tests" 2016-12-22 10:28:32 +00:00
db Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
glance Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
group [1/4]Reset generic volume group status 2016-12-23 22:58:48 +08:00
image Merge "Simplify calls to mock_object" 2017-01-10 18:20:47 +00:00
keymgr Modifies override logic for key_manager 2016-09-21 11:01:59 -04:00
message Merge "Add prefix to user message event ids" 2017-01-18 16:31:23 +00:00
monkey_patch_example
objects Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
scheduler Merge "Add prefix to user message event ids" 2017-01-18 16:31:23 +00:00
targets Skip unit-tests which use os.fdatasync on MacOS 2016-10-22 23:55:58 +03:00
volume Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
windows test: fix wrong usage of config option in test_window 2016-12-01 18:50:45 +08:00
zonemanager Fix Cisco Initiator zoning updates 2017-01-03 23:12:49 +01:00
__init__.py Remove nosetests i18n fix 2016-11-29 18:16:59 +02:00
cast_as_call.py
conf_fixture.py Merge two fake drivers into the one FakeLoggingVolumeDriver 2016-09-09 14:37:21 +00:00
fake_cluster.py Update Versioned Objects with Cluster object 2016-07-22 21:00:08 +02:00
fake_constants.py Add backup notification to cinder-volume-usage-audit 2016-10-07 15:26:58 +00:00
fake_group.py Add group type and group specs 2016-07-08 14:26:39 -04:00
fake_notifier.py Remove anyjson test dependency 2016-12-07 11:12:00 -05:00
fake_objects.py Use manifest to backport OVOs during upgrades 2016-06-12 13:49:01 +02:00
fake_service.py Update is_up from Service OVO class to match ORM 2016-12-21 20:55:37 +01:00
fake_snapshot.py Add volume to fake snapshot object 2017-01-17 16:55:44 +05:30
fake_utils.py Remove unused function from unit/fake_utils.py 2016-08-30 15:09:58 +07:00
fake_volume.py Add get_all capability to volume_attachments 2016-12-16 14:25:21 -07:00
policy.json Allow triggering cleanup from API 2017-01-13 14:34:45 +01:00
test_api.py
test_api_urlmap.py Replace use of mox with mock in test_api_urlmap 2016-07-01 17:17:44 +03:00
test_cleanable_manager.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
test_cmd.py Improve DB method naming consistency 2016-12-13 19:23:05 +01:00
test_context.py Use context.from_dict to determine available arguments 2016-07-12 13:38:55 +10:00
test_coordination.py Update synchronized decorator 2016-10-12 10:25:33 -05:00
test_coprhd.py Tests: Fix invalid UUID warnings 2016-12-06 14:08:38 -05:00
test_db_api.py Merge "Add prefix to user message event ids" 2017-01-18 16:31:23 +00:00
test_db_worker_api.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
test_evaluator.py
test_exception.py Remove cinder/tests/unit/test_misc.py 2016-08-31 17:00:58 +03:00
test_falconstor_fss.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_fixtures.py Copy unit tests for StandardLogging fixture from Nova 2016-03-01 09:44:22 -05:00
test_hacking.py Hacking: Remove N333 oslo namespace import check 2016-12-12 10:08:31 -05:00
test_image_utils.py Clean up image tmp file if c-vol gets restarted 2017-01-17 17:28:39 +08:00
test_migrations.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
test_qnap.py Add QNAP ES Storage Driver 2016-12-08 16:25:13 +08:00
test_qos_specs.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_quota.py Merge "Improve DB method naming consistency" 2017-01-13 17:53:31 +00:00
test_quota_utils.py Cinder consistency group returning generic error message 2016-12-21 12:52:06 +08:00
test_reduxio.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_rpc.py Cleanup upgrade-related FIXME's 2016-08-23 09:48:34 +02:00
test_service.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
test_setup_profiler.py Support new osprofiler API 2016-12-15 15:46:56 +07:00
test_ssh_utils.py Merge "Change assertTrue(isinstance()) with optimal assert" 2016-08-30 13:13:54 +00:00
test_synology_common.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_synology_iscsi.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_test.py Updated unit tests to use official unittest methods 2016-06-29 21:49:50 +00:00
test_test_utils.py
test_utils.py Merge "Use method is_valid_boolstr from oslo_utils" 2016-12-16 04:59:38 +00:00
test_volume.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
test_volume_cleanup.py Clean up image tmp file if c-vol gets restarted 2017-01-17 17:28:39 +08:00
test_volume_configuration.py
test_volume_glance_metadata.py Tests: Define fake_constants as constants 2016-04-12 16:56:19 -04:00
test_volume_rpcapi.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
test_volume_throttling.py
test_volume_transfer.py check quota per_volume_gigabytes for transfer-accept 2016-09-02 03:13:25 +00:00
test_volume_types.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_volume_types_extra_specs.py
test_volume_utils.py Add volume to fake snapshot object 2017-01-17 16:55:44 +05:30
utils.py Fix replication_status on InvalidReplicationTarget 2016-12-05 20:10:50 +01:00