Remove default value for cinder RBD backend_host
Remove "hostgroup" as the fallback string for the default tripleo::profile::base::cinder::volume::rbd::cinder_rbd_backend_host value. The cinder_rbd_backend_host parameter is only relevant for HA deployments, when it's value is set by the pacemaker version of the cinder-volume.yaml TripleO heat template. For non-HA deployments, the parameter should be undefined. Closes-Bug: #1796359 Change-Id: I35e5b11bb57a7dd8a724102480b3e9ec56df0626
This commit is contained in:
parent
0b403f8e51
commit
9379202860
@ -28,7 +28,7 @@
|
||||
#
|
||||
# [*cinder_rbd_backend_host*]
|
||||
# (Optional) String to use as backend_host in the backend stanza
|
||||
# Defaults to hiera('cinder::backend_host', hiera('cinder::host', 'hostgroup'))
|
||||
# Defaults to hiera('cinder::backend_host', hiera('cinder::host', undef))
|
||||
#
|
||||
# [*cinder_rbd_ceph_conf*]
|
||||
# (Optional) The path to the Ceph cluster config file
|
||||
@ -59,7 +59,7 @@
|
||||
class tripleo::profile::base::cinder::volume::rbd (
|
||||
$backend_name = hiera('cinder::backend::rbd::volume_backend_name', 'tripleo_ceph'),
|
||||
$backend_availability_zone = hiera('cinder::backend::rbd::backend_availability_zone', undef),
|
||||
$cinder_rbd_backend_host = hiera('cinder::backend_host', hiera('cinder::host', 'hostgroup')),
|
||||
$cinder_rbd_backend_host = hiera('cinder::backend_host', hiera('cinder::host', undef)),
|
||||
$cinder_rbd_ceph_conf = hiera('cinder::backend::rbd::rbd_ceph_conf', '/etc/ceph/ceph.conf'),
|
||||
$cinder_rbd_pool_name = 'volumes',
|
||||
$cinder_rbd_extra_pools = undef,
|
||||
|
@ -0,0 +1,14 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The tripleo::profile::base::cinder::volume::rbd::cinder_rbd_backend_host
|
||||
default value has changed, and no longer defaults to "hostgroup" when
|
||||
other hiera variables (cinder::backend_host and cinder::host) are
|
||||
undefined. This ensures cinder's RBD backend_host is only set for
|
||||
pacemaker (HA) deployments, when tripleo-heat-templates sets
|
||||
cinder::backend_host to "hostgroup".
|
||||
|
||||
When upgrading an existing non-HA deployment, the old "hostgroup" default
|
||||
value can be preserved by assigning the hiera variable
|
||||
tripleo::profile::base::cinder::volume::rbd::cinder_rbd_backend_host.
|
||||
New non-HA deployments should leave this variable unset.
|
@ -41,7 +41,6 @@ describe 'tripleo::profile::base::cinder::volume::rbd' do
|
||||
context 'with defaults' do
|
||||
it 'should trigger complete configuration' do
|
||||
is_expected.to contain_cinder__backend__rbd('tripleo_ceph').with(
|
||||
:backend_host => 'hostgroup',
|
||||
:rbd_ceph_conf => '/etc/ceph/ceph.conf',
|
||||
:rbd_pool => 'volumes',
|
||||
:rbd_user => 'openstack',
|
||||
|
Loading…
Reference in New Issue
Block a user