cinder/cinder/tests/unit
wanghao bc9d737c87 Fix snapshot stuck in 'deleting' after reboot c-v
When cascade deleting volume and snapshot, reboot
cinder-volume, snapshot will be stuck in 'deleting'
after it, and it's more worse that user can't delete
this snapshot even reset its status, since no deleting
volume is exitsing any more after init host.

Fix this bug by using cascade deleting volume
when init host, as any volume that is in deleting
status has already passed API checks and should
be deleted with all its snapshots.

Change-Id: Ic47290b8b7004b9e37d096f52af025931ab13c6c
Closes-Bug: #1586604
2016-06-21 14:45:11 +08:00
..
api Merge "Minimize cost of DB exists decorator checks" 2016-06-20 18:36:19 +00:00
backup Use manifest to backport OVOs during upgrades 2016-06-12 13:49:01 +02:00
brick Cleanup orphaned code from brick LVM 2015-11-26 23:40:25 -06:00
compute Bump to Nova v2.1 2016-06-03 14:25:39 +08:00
consistencygroup Move consistency groups tests to consistencygroup directory 2016-05-26 14:08:48 +00:00
db Fix db purge for volume_types FK constraint 2016-06-16 11:30:26 +05:30
glance Added more options while uploading volume as image 2016-03-23 18:55:53 +00:00
image Fix image-volume cache to use volume object when evicting 2016-05-23 21:06:47 -07:00
keymgr Fix call to Barbican Secrets create() 2016-03-03 14:15:08 +00:00
message Add pagination support to messages 2016-05-27 10:49:00 +00:00
monkey_patch_example
objects Merge "Support None value of extra_specs in cinder-scheduler filter" 2016-06-16 17:55:24 +00:00
scheduler Merge "Update manage_existing to use volume object" 2016-06-17 16:05:32 +00:00
targets Remove deprecated ISERTgtAdm 2016-04-11 12:46:44 -05:00
volume Merge "Provide Kaminario K2 all-flash array iSCSI driver" 2016-06-17 21:58:18 +00:00
windows Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
zonemanager Fix Brcd zone driver initiator zone update 2016-05-19 15:13:12 -07:00
__init__.py Re-enabled hacking checks for H105 2016-01-05 11:22:40 +02:00
cast_as_call.py
conf_fixture.py
fake_constants.py Tests: lower case all fake uuid constants 2016-05-03 13:36:22 -04:00
fake_driver.py Add replication v2.1 test cases 2016-05-05 22:34:13 -04:00
fake_hpe_3par_client.py 3PAR fix create_cloned_volume for larger size 2016-03-16 03:39:12 -07:00
fake_hpe_client_exceptions.py 3PAR: Fix terminate_connection when failed over 2016-06-06 10:13:25 -07:00
fake_hpe_lefthand_client.py LeftHand: Updating minimum client version 2016-02-24 21:31:54 +00:00
fake_notifier.py
fake_objects.py Use manifest to backport OVOs during upgrades 2016-06-12 13:49:01 +02:00
fake_service.py Service object 2015-09-01 07:09:08 +00:00
fake_snapshot.py Add SnapshotStatus enum field 2016-05-19 15:16:18 -05:00
fake_utils.py
fake_vmem_client.py
fake_volume.py Tests: lower case all fake uuid constants 2016-05-03 13:36:22 -04:00
policy.json List manageable volumes and snapshots 2016-05-29 11:06:10 +03:00
test_api.py
test_api_urlmap.py Remove XML API 2016-04-21 16:05:29 +00:00
test_block_device.py Add SnapshotStatus enum field 2016-05-19 15:16:18 -05:00
test_blockbridge.py Tests: Fix mock imports 2016-05-19 14:51:24 -04:00
test_cloudbyte.py Use cinders test class in cloudbyte unit tests 2016-06-17 12:08:38 -06:00
test_cmd.py Start/Stop coordinator with Volume service 2016-06-13 16:20:03 -05:00
test_coho.py Coho data sanity fix in the driver unittest 2016-06-01 16:02:02 -07:00
test_context.py Merge "Define context.roles with base class" 2016-06-17 03:34:18 +00:00
test_coordination.py Start/Stop coordinator with Volume service 2016-06-13 16:20:03 -05:00
test_db_api.py Merge "Minimize cost of DB exists decorator checks" 2016-06-20 18:36:19 +00:00
test_dellfc.py Tests: lower case all fake uuid constants 2016-05-03 13:36:22 -04:00
test_dellsc.py Dell SC: Added support for failover_host failback 2016-06-01 13:30:17 -05:00
test_dellscapi.py Dell SC: Retry unhandled exception REST Gets 2016-06-10 15:52:57 -05:00
test_dothill.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_drbdmanagedrv.py DRBD: Allow to set options for new resources 2016-06-08 07:07:40 +02:00
test_emc_vmax.py EMC driver should return ceiling of volume size 2016-06-10 03:56:44 +00:00
test_emc_vnx.py Pass volume_type_id in when deleting snapshot 2016-06-01 21:47:32 +08:00
test_emc_xtremio.py Move consistency groups tests to consistencygroup directory 2016-05-26 14:08:48 +00:00
test_eqlx.py Dell Eqlx: Volume from snapshot now honors resize 2016-05-11 17:18:52 -05:00
test_evaluator.py
test_exception.py Change default Exception code to 500 2015-10-13 11:52:47 -04:00
test_fixtures.py Copy unit tests for StandardLogging fixture from Nova 2016-03-01 09:44:22 -05:00
test_glusterfs.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_gpfs.py Make IBM drivers return snapshot object for cg ops 2016-05-25 17:31:54 +00:00
test_hacking.py Revert "Add hacking check to prevent assert_called_once" 2016-05-24 12:36:22 -04:00
test_hitachi_hbsd_horcm_fc.py Hitachi drivers: resize volume if cloned image is larger 2016-03-17 20:17:37 +01:00
test_hitachi_hbsd_snm2_fc.py Hitachi drivers: resize volume if cloned image is larger 2016-03-17 20:17:37 +01:00
test_hitachi_hbsd_snm2_iscsi.py Hitachi drivers: resize volume if cloned image is larger 2016-03-17 20:17:37 +01:00
test_hitachi_hnas_backend.py Replace manually changing CONF options 2016-05-06 14:19:04 +03:00
test_hitachi_hnas_iscsi.py Hitachi drivers: resize volume if cloned image is larger 2016-03-17 20:17:37 +01:00
test_hitachi_hnas_nfs.py Deprecate nas_ip and change this to nas_host 2016-04-18 15:08:11 +03:00
test_hpe3par.py Merge "3PAR: Fix delete volume when online clone" 2016-06-16 23:28:10 +00:00
test_hpe_xp_fc.py Merge "Remove duplicated code in volume manager and base driver" 2016-03-03 02:24:24 +00:00
test_hpelefthand.py LeftHand Fix terminate_connection when failed over 2016-05-24 15:01:48 -07:00
test_huawei_drivers.py Huawei: Raise if no FC port found 2016-05-23 19:02:19 +08:00
test_huawei_drivers_compatibility.py Rename Huawei drivers 2015-12-24 09:20:24 +08:00
test_ibm_flashsystem.py ibm flashsystem: Fixing hardcoded attribute 2016-04-22 16:16:55 +00:00
test_ibm_flashsystem_iscsi.py IBM FlashSystem: Add host check for iSCSI driver 2016-06-16 01:52:22 +00:00
test_ibm_xiv_ds8k.py IBM XIV/DS8K: Implement Replication v2.1 2016-03-14 17:16:10 +02:00
test_image_utils.py image_size_m should get ceiling of image 2016-06-14 15:58:01 +08:00
test_infortrend_cli.py Remove access_mode 'rw' setting in drivers 2016-01-22 16:47:02 +00:00
test_infortrend_common.py Port infortrend driver to Python 3 2016-02-15 21:35:44 +01:00
test_lvm_driver.py Move LVM tests to test_lvm_driver.py 2016-05-18 09:28:31 -04:00
test_migrations.py User messages API for error cases 2016-04-29 18:41:10 +00:00
test_misc.py Remove downgrade migrations 2015-12-18 14:04:16 +02:00
test_netapp.py NetApp: Rewrite user API discovery logic 2016-05-10 19:24:42 +00:00
test_netapp_nfs.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_netapp_ssc.py NetApp: Decouple capacity volume stats collection 2016-05-05 19:33:43 +00:00
test_nexenta.py Remove mox usage from test_nexenta 2016-05-25 10:06:52 -05:00
test_nexenta5_iscsi.py NexentaStor drivers: resize volume if cloned image is larger 2016-03-28 11:46:32 -07:00
test_nexenta5_nfs.py Deprecate nas_ip and change this to nas_host 2016-04-18 15:08:11 +03:00
test_nexenta_edge.py Merge "Fix for NexentaEdge jsonrpc url formatting" 2016-04-05 20:29:30 +00:00
test_nfs.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_nimble.py Nimble driver should return ceiling of volume size 2016-06-04 10:01:06 +08:00
test_prophetstor_dpl.py Correct iscsi lun type 2016-02-23 23:43:44 +08:00
test_pure.py Remove locks from Pure volume drivers 2016-06-03 11:06:53 -07:00
test_qos_specs.py Correct assertDictMatch argument order 2015-11-13 16:57:01 +00:00
test_quobyte.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_quota.py Merge "Lazy load a project quotas's default values" 2016-05-30 11:08:22 +00:00
test_quota_utils.py Handle quota exceed exception 2016-06-14 09:56:10 +08:00
test_rbd.py Volume manage should parse volume size as float 2016-05-26 13:46:16 +00:00
test_remotefs.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_rpc.py Use manifest to backport OVOs during upgrades 2016-06-12 13:49:01 +02:00
test_san.py
test_scality.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_service.py Fix service version pinning on start 2016-04-13 11:24:43 +02:00
test_sheepdog.py Move all backups related unit tests to backup directory 2016-05-26 17:09:33 +03:00
test_smbfs.py Use versionedobjects in remotefs.py 2016-06-15 07:59:30 +00:00
test_solidfire.py SolidFire driver should return ceiling of volume size 2016-06-08 09:36:49 +08:00
test_ssh_utils.py Replace manually changing CONF options 2016-05-06 14:19:04 +03:00
test_storwize_svc.py Merge "Storwize: terminate_connetion NPIV perf improvement" 2016-06-06 14:28:48 +00:00
test_tegile.py Merge "Remove access_mode 'rw' setting in drivers" 2016-02-11 06:14:44 +00:00
test_test.py Remove "patch mock to raise for invalid assert calls" 2016-04-06 18:00:26 -04:00
test_test_utils.py
test_tintri.py Fix invalid uuids in tintri unit tests 2016-04-22 12:58:30 -04:00
test_utils.py Merge "Use check_string_length from oslo_utils" 2016-05-19 14:36:33 +00:00
test_v7000_common.py
test_v7000_fcp.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_vmware_datastore.py VMware: Reduce volume creation time 2016-04-07 03:51:25 -07:00
test_vmware_vmdk.py Merge "VMware:Persist storage policy ID in vmdk meta-data" 2016-06-17 17:44:00 +00:00
test_vmware_volumeops.py VMware:Persist storage policy ID in vmdk meta-data 2016-06-17 11:52:59 +05:30
test_volume.py Fix snapshot stuck in 'deleting' after reboot c-v 2016-06-21 14:45:11 +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 Update manage_existing to use volume object 2016-06-10 10:42:02 +02:00
test_volume_throttling.py Cleanup unused conf variables 2016-02-16 11:26:06 +11:00
test_volume_transfer.py Tests: lower case all fake uuid constants 2016-05-03 13:36:22 -04:00
test_volume_types.py Cleanup volume_type_projects 2016-06-13 13:39:10 +05:30
test_volume_types_extra_specs.py
test_volume_utils.py Handle quota exceed exception 2016-06-14 09:56:10 +08:00
test_vzstorage.py vzstorage: add ploop volume format support 2016-06-15 07:59:30 +00:00
test_xio.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
test_zfssa.py Volume manage/unmanage support to ZFSSA drivers 2016-02-23 14:38:39 -05:00
utils.py Remove API races from consistency groups 2016-06-01 17:18:06 +02:00