Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1342652

Summary: [RFE] Backport - Permits configuration of Cinder enabled_backend via hieradata - commit 31c91bed886f76e107a78021977e4c9bd338c76a
Product: Red Hat OpenStack Reporter: Harald Jensås <hjensas>
Component: openstack-tripleo-heat-templatesAssignee: Jiri Stransky <jstransk>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: achernet, dcadzow, dmaley, jcoufal, mburns, nlevinki, rhel-osp-director-maint, scohen
Target Milestone: asyncKeywords: FeatureBackport, FutureFeature, OtherQA
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.6-127.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-06 15:06:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch that apply the changes to kilo version of tripleo-heat-templates. none

Description Harald Jensås 2016-06-03 18:58:24 UTC
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.

Comment 7 nlevinki 2016-06-29 07:55:05 UTC
Have no equipment to verify this ticket, moving to otherQA

Comment 10 errata-xmlrpc 2016-07-06 15:06:23 UTC
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