]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Failed to discovery when iscsi multipath and CHAP both enabled
authorTaoBai <baitaosh@cn.ibm.com>
Tue, 20 Jan 2015 12:18:39 +0000 (04:18 -0800)
committerTaoBai <baitaosh@cn.ibm.com>
Thu, 29 Jan 2015 10:44:05 +0000 (02:44 -0800)
commit3f781f32d0aaa6adf9ef6c54ab6114de92b64917
treefc10a2b44611c6653a45741dce08be42ac0bf8e9
parentfadc8334740ac4b98e4755c28fe29b15cc1541bc
Failed to discovery when iscsi multipath and CHAP both enabled

Storage server may be configured to protect target discovering phase with CHAP
authentication, in this case existing discovery command will be failed in Nova
when iscsi multipath enabled. Nova need these below discovery auth properties.
    "discovery.sendtargets.auth.authmethod",
    "discovery.sendtargets.auth.username",
    "discovery.sendtargets.auth.password"

Cinder Storage driver need to send discovery auth properties to Nova in this
case and the properties are:
   iscsi_properties['discovery_auth_method']
   iscsi_properties['discovery_auth_username']
   iscsi_properties['discovery_auth_password']

This issue not just for IBM Storwize, but also other storage drivers who need
CHAP authentication to do iscsi discover.
The according nova change: https://review.openstack.org/#/c/148516/

Closes-Bug: #1367189

Change-Id: Ib528eed3a9fd5006c1649ef42233e1f943c38ab6
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py