Red Hat Bugzilla – 1342652 – [RFE] Backport - Permits configuration of Cinder enabled_backend via hieradata - commit 31c91bed886f76e107a78021977e4c9bd338c76a
Created attachment 1164624[details]
Patch that apply the changes to kilo version of tripleo-heat-templates.
Description of problem:
When configuring cinder-backend, such a HP3Par or EMC VNX, this can be done by using the cinder_config class in cinder puppet module.
=== Storage Environment YAML example:
-------------------------------------------------------------------------
parameters:
#### BACKEND SELECTION ####
## Whether to enable iscsi backend for Cinder.
CinderEnableIscsiBackend: false
## Whether to enable rbd (Ceph) backend for Cinder.
CinderEnableRbdBackend: false
## Whether to enable NFS backend for Cinder.
CinderEnableNfsBackend: false
## Whether to enable rbd (Ceph) backend for Nova ephemeral storage.
NovaEnableRbdBackend: false
## Glance backend can be either 'rbd' (Ceph), 'swift' or 'file'.
GlanceBackend: file
parameter_defaults:
ExtraConfig:
cinder::config::cinder_config:
3par01/volume_driver:
value: cinder.volume.drivers.san.hp.hp_3par_fc.HP3PARFCDriver
3par01/volume_backend_name:
value: 3par_FC
3par01/hp3par_api_url:
value: https://192.168.100.10:8080/api/v1
3par01/hp3par_username:
value: username
3par01/hp3par_password:
value: password
3par01/hp3par_cpg:
value: OSP7
3par01/san_ip:
value: 192.168.100.10
3par01/san_login:
value: username
3par01/san_password:
value: password
cinder_user_enabled_backends: ['3par01']
-------------------------------------------------------------------------
In OSP-7 tripleo-templates the 'cinder_user_enabled_backends' the missing pice to make this work.
Request to bacport the following:
http://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=31c91bed886f76e107a78021977e4c9bd338c76a
Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.6-123.el7ost.noarch
How reproducible:
Easy
Steps to Reproduce:
1. Add Storage Environment YAML with content of example above.
2. Deploy
3. ssh -l heat-admin <overcloud-controller-ip> 'sudo grep enabled_backends /etc/cinder/cinder.conf'
Actual results:
#enabled_backends=<None>
enabled_backends=
Expected results:
#enabled_backends=<None>
enabled_backends=3par01
Additional info:
The attached patch is a modified version of the upstream patch that will apply cleanly to the kilo tripleo-heat-templates.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2016:1387