Set iser_ip_address with a storage network address

The iser_ip_address parameter in /etc/cinder/cinder.conf
has a wrong value.

This parameter has to be configured with the storage
endpoint address, since it is no longer inherits the
iscsi_ip_address by default.

Currently it uses the $my_ip value, which is not capable
to work with RDMA transport (with its default value).

This fix assures that the default iser_ip_address will
use an address with RDMA support, if iSER is chosen as
the iSCSI transport by the user.

Closes-bug: #1387794

Change-Id: If0f67a9dbe80bfc8655dab85a96d3621bdaf38da
This commit is contained in:
Aviram Bar-Haim 2014-11-10 11:04:23 +02:00
parent c7b71bd1ee
commit 207189b582
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,13 @@
class mellanox_openstack::cinder (
$iser = false,
$iser_ip_address,
) {
if $iser {
cinder_config { 'DEFAULT/volume_driver' :
value => 'cinder.volume.drivers.lvm.LVMISERDriver'
}
cinder_config { 'DEFAULT/iser_ip_address' :
value => $iser_ip_address
}
}
}

View File

@ -150,7 +150,8 @@ class openstack::cinder(
volume_group => $volume_group,
}
class { 'mellanox_openstack::cinder':
iser => $iser
iser => $iser,
iser_ip_address => $iscsi_bind_host,
}
}
'vmdk': {