Florian Haas c175a91448 cinder/volume.pp: Bind iSCSI portal to management IP, not to wildcard
If Cinder binds its iSCSI portal to the 0.0.0.0 address, then Nova
will attempt to connect (with iscsiadm) to a portal at 0.0.0.0, which
is obviously bogus.

Instead, bind to the IP of the management interface, so iscsiadm can
properly access the portal.
2013-10-18 13:55:23 +02:00

36 lines
940 B
Puppet

class kickstack::cinder::volume inherits kickstack {
include kickstack::cinder::config
class { '::cinder::volume':
package_ensure => $::kickstack::package_version,
}
case $::kickstack::cinder_backend {
'iscsi': {
$pv = "$::kickstack::cinder_lvm_pv"
$vg = "$::kickstack::cinder_lvm_vg"
physical_volume { "$pv":
ensure => present
}
volume_group { "$vg":
ensure => present,
physical_volumes => "$pv",
require => Physical_volume["$pv"]
}
class { '::cinder::volume::iscsi':
iscsi_ip_address => getvar("ipaddress_${nic_management}"),
require => Volume_group["$vg"]
}
}
'rbd': {
$rbd_secret_uuid = getvar("${fact_prefix}rbd_secret_uuid")
class { '::cinder::volume::rbd':
rbd_pool => $cinder_rbd_pool,
rbd_user => $cinder_rbd_user,
rbd_secret_uuid => $rbd_secret_uuid
}
}
}
}