]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use an SSH pool to manage SSH connection
authorzhangchao010 <zhangchao010@huawei.com>
Fri, 10 May 2013 12:08:45 +0000 (20:08 +0800)
committerzhangchao010 <zhangchao010@huawei.com>
Fri, 10 May 2013 12:08:45 +0000 (20:08 +0800)
commit53ffc7967d5f9b79359189bdbb522a94b7353908
treeaacb18c40ef2c7cf3354bdf7e3d82e3b16419511
parent875e42ffbefebdb9fe8eb5595a269461cb7dd5d0
Use an SSH pool to manage SSH connection

Use an SSH pool to hold all SSH clients,this makes driver work when
mutiple requests received in short time.Rewrite method create() and
do not set socket timeout to be None because "None" leads to closing
ssh client blocking.

This patch alse fix:
make "Not format" to be "Notformat" in function _find_lun.
Change the type of "free_capacity_gb" fron string to be float.Because
type string will lead to cinder scheduler filter failure.

Fixes bug: 1162251
Change-Id: I7d2270bb23ccfec27e618a686ab8c278a72f2244
cinder/tests/test_huawei.py
cinder/utils.py
cinder/volume/drivers/huawei/huawei_iscsi.py