Bug 1599759

Summary: CinderNetAppBackendName is not reflected in deployed environment
Product: Red Hat OpenStack Reporter: Tim Quinlan <tquinlan>
Component: openstack-tripleo-heat-templatesAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: abishop, amcleod, dmaley, mburns, mowens, pgrist, scohen
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 12.0 (Pike)Flags: tshefi: automate_bug-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.12-10.el7ost Doc Type: Bug Fix
Doc Text:
Previously, the TripleO `CinderNetappBackendName` parameter was not overriding the default value for the cinder NetApp backend correctly. With this fix, the `CinderNetappBackendName` parameter overrides the default back-end name correctly.
Story Points: ---
Clone Of:
: 1619663 (view as bug list) Environment:
Last Closed: 2018-12-05 18:52:48 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:
Bug Depends On: 1619663    
Bug Blocks:    

Description Tim Quinlan 2018-07-10 14:04:22 UTC
Description of problem:
When using CinderNetappBackendName in the cinder-netapp-config template, the name provided is not reflected in the deployed environment.

This is because THT/puppet/services/cinder-backend-netapp.yaml passes CinderNetappBackendName to cinder::backend::netapp::title instead of the correct parameter cinder::backend::netapp::volume_backend_name

Version-Release number of selected component (if applicable):
12

How reproducible:
Everytime

Steps to Reproduce:
1. Include name other than tripleo_netapp in environment files via CinderNetappBackendName param.


Actual results:
Backend name will still be tripleo_netapp

Expected results:
Provided backend name is utilized in cinder.conf


Additional info:
Upstream Bug: https://bugs.launchpad.net/tripleo/+bug/1779500

Comment 2 Alan Bishop 2018-08-10 15:30:30 UTC
Starting backports to stable/queens and stable/pike.

Comment 14 Tzach Shefi 2018-11-23 07:34:11 UTC
Verified on:
openstack-tripleo-heat-templates-7.0.12-17.el7ost.noarch

Deployed with none default name  
resource_registry:
    OS::TripleO::Services::CinderBackendNetApp: /usr/share/openstack-tripleo-heat-templates/puppet/services/cinder-backend-netapp.yaml

parameter_defaults:
  CinderEnableNetAppBackend: true
  CinderNetappBackendName: 'tripleo_netapp2'
  CinderNetappLogin: 'XXXXXXXX'
  CinderNetappPassword: 'XXXXXXX'
  CinderNetappServerHostname: 'w.x.y.z'
  CinderNetappServerPort: 80
  CinderNetappTransportType: 'http'
  CinderNetappStorageProtocol: 'iscsi'
  CinderNetappVolumeList: 'rhos_cinder'
  CinderNetappVserver: 'vserver-rhos-qe'

Deployment completed successfully 

$ cinder service-list
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
| Binary           | Host                      | Zone | Status  | State | Updated_at                 | Disabled Reason |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | hostgroup                 | nova | enabled | up    | 2018-11-23T07:31:22.000000 | -               |
| cinder-volume    | hostgroup@tripleo_iscsi   | nova | enabled | up    | 2018-11-23T07:31:26.000000 | -               |
| cinder-volume    | hostgroup@tripleo_netapp2 | nova | enabled | up    | 2018-11-23T07:31:23.000000 | -               |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+


$ cinder create 1 

| id                             | a29ca29d-74bd-4fdc-9f55-ea290dafe1b4  |
| os-vol-host-attr:host          | hostgroup@tripleo_netapp2#rhos_cinder |
| status                         | available                             |


As seen above backend name tripleo_netapp2 
And a cinder volume was successfully created on that backend.

Comment 16 errata-xmlrpc 2018-12-05 18:52:48 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-2018:3789