cinder/cinder/tests/unit
Adriano Rosso 4f39141e32 HNAS driver: Fix SSH and cluster_admin_ip0 bug
HNAS driver has 2 configuration options:
- SSC (ssh_enabled: False ): requires a local utility package
installed to run the commands
- SSH (ssh_enabled: True): Runs the commands using the utility
package installed on HNAS

Currently, the HNAS driver is considering the "ssh_enabled" and the
"cluster_admin_ip0" tags to decide if the command to get the utility
package version should be ran locally or not. This is not correct
because the "cluster_admin_ip0" tag is not mandatory even if the SSH
mode is enabled.
So, if we have a situation that SSH is enabled and the
"cluster_admin_ip0" does not exist in the configuration, the driver
tries to run the command to get the utility package version locally
and its initialization breaks.
This patch makes the driver consider only the "ssh_enabled" tag
value to decide if the command to get the utility package version
is necessary.

Change-Id: I29fb5d7199e10eafee329dbd4ccef524245fbc28
Closes-Bug: 1543208
2016-02-12 11:26:17 -02:00
..
api Port objects unit tests to Python 3 2016-02-08 10:47:53 +01:00
backup Port backup drivers to Python 3 2016-02-09 11:52:42 +01:00
brick Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
compute Fix usage of novaclient 2015-09-14 20:03:35 +03:00
db Return updated volume type after updating 2016-02-01 07:52:36 +00:00
glance Fix exception on uploading a volume to image with glance v2 API 2015-07-28 14:18:10 -04:00
image Fix volume upload failure with glance_api_version=2 2015-12-21 15:06:06 +09:00
integrated Move wsgi to oslo_service.wsgi 2016-01-19 18:15:54 +02:00
keymgr Check context before returning cached value 2015-12-08 20:51:48 -05:00
monkey_patch_example Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
objects Port objects unit tests to Python 3 2016-02-08 10:47:53 +01:00
scheduler Add missing RPC calls versions to rpcapi modules 2016-01-29 08:33:29 -05:00
targets Tests: Strengthen assertFalse assertions 2016-01-22 10:52:02 -05:00
var Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
volume Merge "Support cinder_img_volume_type in image metadata" 2016-02-09 14:24:31 +00:00
windows Refactor Windows drivers using os-win 2016-01-14 19:27:05 +02:00
wsgi Remove eventlet WSGI functionality 2015-12-11 21:23:48 +00:00
xenapi Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
zonemanager Adds support for configuring zoning in a virtual fabric 2016-02-08 13:49:04 -08:00
__init__.py Re-enabled hacking checks for H105 2016-01-05 11:22:40 +02:00
cast_as_call.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
conf_fixture.py Revert "Disable backup progress notifications for unit tests" 2015-06-19 14:27:40 -04:00
declare_conf.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_backup.py Add BackupStatus enum field 2016-01-04 14:32:52 +00:00
fake_consistencygroup.py Add backref relationships to ConsistencyGroup obj 2015-12-29 16:09:40 +01:00
fake_driver.py Add ConsistencyGroupStatus enum field 2016-01-11 12:39:06 -06:00
fake_hpe_3par_client.py 3PAR fix driver to work with image cache 2016-02-02 08:56:13 -08:00
fake_hpe_client_exceptions.py Refactor HP 3PAR drivers to now be HPE 2015-11-12 12:46:35 -08:00
fake_hpe_lefthand_client.py Refactor HP LeftHand driver to now be HPE 2015-11-17 13:38:07 -08:00
fake_notifier.py Tests: Make fake_notifier per-instance 2015-06-19 11:27:40 +02:00
fake_service.py Service object 2015-09-01 07:09:08 +00:00
fake_snapshot.py Implement refresh() for cinder objects 2015-12-14 19:59:54 -08:00
fake_utils.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
fake_vmem_client.py Adds the Violin Memory V7000 series FC driver. 2015-06-19 13:38:32 -07:00
fake_volume.py Add some missing fields to Volume object 2015-12-01 15:39:34 +01:00
policy.json Merge "Allow specified backend capabilities to be retrieved" 2015-09-01 19:29:42 +00:00
runtime_conf.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_api_urlmap.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_api.py Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
test_backup_ceph.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_backup_driver_base.py Move import and export backup metadata to object 2015-08-14 10:24:53 +02:00
test_backup_google.py Add cinder backup driver for Google Cloud Storage 2016-01-18 23:28:23 +05:30
test_backup_swift.py Fix ChunkedBackupDriver _create_container 2016-01-14 15:35:15 +01:00
test_backup_tsm.py Remove oslo logging from backup unit tests 2015-06-27 21:23:34 +00:00
test_backup.py Merge "Cleanup in backup reset status" 2016-02-11 06:25:14 +00:00
test_block_device.py Implement snapshots-related features for Block Device Driver 2015-12-14 17:13:59 +02:00
test_blockbridge.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_cloudbyte.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_cmd.py Add BackupStatus enum field 2016-01-04 14:32:52 +00:00
test_coho.py Remove deprecated options from NFS driver 2016-01-25 19:10:55 -05:00
test_conf.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_context.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_coordination.py Fix torpid coordinator unit tests 2016-01-22 06:21:48 -05:00
test_db_api.py Pin RPC and object version to lowest running 2016-01-29 08:36:04 -05:00
test_dellfc.py Merge "Report discard support for Dell SC connections" 2016-01-13 02:35:28 +00:00
test_dellsc.py Merge "Add ConsistencyGroupStatus enum field" 2016-01-12 08:37:25 +00:00
test_dellscapi.py Merge "Remove access_mode 'rw' setting in drivers" 2016-02-11 06:14:44 +00:00
test_dothill.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_drbdmanagedrv.py DRBD: Fix arguments for resize_volume DBus API call. 2016-02-08 11:39:06 +01:00
test_emc_vmax.py EMC VMAX - Method not being called for V3 2016-02-05 00:09:16 +00:00
test_emc_vnx.py Merge "VNX: Replication V2 support(managed)" 2016-02-06 03:48:01 +00:00
test_emc_xtremio.py Merge "XtremIO add support for create CG from CG src" 2016-02-11 06:37:05 +00:00
test_eqlx.py Declare multiattach is True in Dell Eqlx driver 2015-11-26 09:10:38 +08:00
test_evaluator.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_exception.py Change default Exception code to 500 2015-10-13 11:52:47 -04:00
test_glusterfs.py Merge "Add manage_existing and unmanage to BaseVD" 2015-09-29 20:19:25 +00:00
test_gpfs.py Add ConsistencyGroupStatus enum field 2016-01-11 12:39:06 -06:00
test_hacking.py Fix issue in hacking with underscore imports 2016-02-04 15:44:03 +01:00
test_hitachi_hbsd_horcm_fc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hbsd_snm2_fc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hbsd_snm2_iscsi.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hnas_backend.py HNAS driver: Fix SSH and cluster_admin_ip0 bug 2016-02-12 11:26:17 -02:00
test_hitachi_hnas_iscsi.py HNAS iSCSI manage does not work with spaces 2015-10-02 10:14:01 -03:00
test_hitachi_hnas_nfs.py Remove deprecated options from NFS driver 2016-01-25 19:10:55 -05:00
test_hpe3par.py 3PAR fix driver to work with image cache 2016-02-02 08:56:13 -08:00
test_hpe_xp_fc.py Add BackupStatus enum field 2016-01-04 14:32:52 +00:00
test_hpelefthand.py LeftHand: Implement un/manage snapshot support 2016-02-05 09:23:56 -08:00
test_huawei_drivers_compatibility.py Rename Huawei drivers 2015-12-24 09:20:24 +08:00
test_huawei_drivers.py Remove useless unit tests mock in Huawei driver 2016-02-01 16:45:36 +08:00
test_ibm_flashsystem_iscsi.py Merge "Hacking Checks for assertTrue/IsNone()" 2015-11-26 15:54:58 +00:00
test_ibm_flashsystem.py Merge "Hacking Checks for assertTrue/IsNone()" 2015-11-26 15:54:58 +00:00
test_ibm_xiv_ds8k.py Merge "IBM XIV/DS8K: Implements Replication V2" 2016-02-09 01:57:35 +00:00
test_image_utils.py Fix the bug of OSError when convert image 2015-11-23 22:44:39 +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 Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_migrations.py Constant defined for sqlAlchemy VARCHAR & INTEGER 2016-01-06 14:49:39 +05:30
test_misc.py Remove downgrade migrations 2015-12-18 14:04:16 +02:00
test_netapp_nfs.py Remove deprecated options from NFS driver 2016-01-25 19:10:55 -05:00
test_netapp_ssc.py Revert use of netapp_lib from NetApp Drivers 2015-09-25 10:31:19 -04:00
test_netapp.py Port test_netapp to Python 3 2015-10-02 17:47:39 +02:00
test_nexenta5_iscsi.py NexentaStor 5 iSCSI backend driver. 2016-01-18 20:47:11 +03:00
test_nexenta5_nfs.py NexentaStor 5 NFS backend driver. 2016-01-18 20:34:36 +03:00
test_nexenta_edge.py Nexenta Edge iSCSI backend driver 2015-11-25 17:37:37 -06:00
test_nexenta.py Remove deprecated options from NFS driver 2016-01-25 19:10:55 -05:00
test_nfs.py Merge "Remove deprecated options from NFS driver" 2016-02-03 03:33:45 +00:00
test_nimble.py Using extra-specs in cloned vols for Nimble driver 2015-11-02 14:16:16 -08:00
test_prophetstor_dpl.py Add ConsistencyGroupStatus enum field 2016-01-11 12:39:06 -06:00
test_pure.py Merge "Remove access_mode 'rw' setting in drivers" 2016-02-11 06:14:44 +00:00
test_qos_specs.py Correct assertDictMatch argument order 2015-11-13 16:57:01 +00:00
test_quobyte.py Support insecure NAS security options in Quobyte 2015-10-27 16:26:52 +01:00
test_quota.py Add BackupStatus enum field 2016-01-04 14:32:52 +00:00
test_rbd.py Fix sluggish rbd unit tests 2016-01-22 06:25:59 -05:00
test_remotefs.py RemoteFS: Fix the offline snapshot delete operation 2015-07-02 22:21:42 +03:00
test_replication.py Allow replicated volumes to be recoverable 2015-12-22 07:36:11 -08:00
test_rpc.py Pin RPC and object version to lowest running 2016-01-29 08:36:04 -05:00
test_san.py Port remote_fs driver to use new driver model 2015-06-08 13:02:03 +02:00
test_scality.py Scality SOFS: don't always read /proc/mounts twice 2016-01-04 15:35:54 +00:00
test_service.py Move wsgi to oslo_service.wsgi 2016-01-19 18:15:54 +02:00
test_sheepdog.py Merge "Sheepdog: Fix a problem about multi backend" 2015-12-15 20:52:33 +00:00
test_smbfs.py SMBFS: Fix retrieving total allocated size 2015-10-22 18:08:58 +00:00
test_solidfire.py Merge "Enable trim/discard in SolidFire's driver" 2016-01-14 06:24:22 +00:00
test_ssh_utils.py Reduce use of eval() 2016-01-15 16:52:56 -05:00
test_storwize_svc.py Storwize: Implement v2 replication 2016-02-08 21:03:34 -05:00
test_tegile.py Merge "Remove access_mode 'rw' setting in drivers" 2016-02-11 06:14:44 +00:00
test_test_utils.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_test.py Fix tests failing in gate 2015-07-10 16:15:32 +02:00
test_tintri.py Remove deprecated options from NFS driver 2016-01-25 19:10:55 -05:00
test_utils.py Wrap the method to calculate virtual free capacity 2016-01-21 10:45:10 +08:00
test_v7000_common.py Fix doc string definitions 2015-07-27 08:06:03 +03:00
test_v7000_fcp.py Hacking Checks for assertTrue/IsNone() 2015-11-25 11:22:35 -06:00
test_vmware_datastore.py VMware: Skip unsupported datastore types 2015-11-24 16:59:13 +05:30
test_vmware_vmdk.py Tests: Strengthen assertFalse assertions 2016-01-22 10:52:02 -05:00
test_vmware_volumeops.py Fix Bad indentation pylint issues 2015-09-27 23:04:26 -07:00
test_volume_configuration.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_volume_glance_metadata.py Cleanup for SnapshotObject 2015-08-31 16:53:30 +02:00
test_volume_rpcapi.py Pin RPC and object version to lowest running 2016-01-29 08:36:04 -05:00
test_volume_throttling.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_volume_transfer.py Disallow transferring volume in consistency group 2016-01-15 22:52:21 -08:00
test_volume_types_extra_specs.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_volume_types.py Add pagination support to volume type 2016-01-05 19:48:21 +08:00
test_volume_utils.py Handling Invalid argument iflag=direct in dd 2016-01-12 01:38:33 +05:30
test_volume.py Merge "Clean uploading volume when c-vol restarts" 2016-02-07 05:51:52 +00:00
test_vzstorage.py Port vzstorage to Python 3 2015-11-08 22:07:57 +01:00
test_xio.py Remove access_mode 'rw' setting in drivers 2016-01-22 16:47:02 +00:00
test_zfssa.py Merge "Zfssaiscsi driver should return target_lun as int" 2016-02-09 21:54:24 +00:00
utils.py Add ConsistencyGroupStatus enum field 2016-01-11 12:39:06 -06:00