Bug 1599759 - CinderNetAppBackendName is not reflected in deployed environment
Summary: CinderNetAppBackendName is not reflected in deployed environment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 12.0 (Pike)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: zstream
: 12.0 (Pike)
Assignee: Alan Bishop
QA Contact: Tzach Shefi
URL:
Whiteboard:
Depends On: 1619663
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-10 14:04 UTC by Tim Quinlan
Modified: 2021-12-10 16:43 UTC (History)
7 users (show)

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.
Clone Of:
: 1619663 (view as bug list)
Environment:
Last Closed: 2018-12-05 18:52:48 UTC
Target Upstream Version:
Embargoed:
tshefi: automate_bug-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1779500 0 None None None 2018-08-01 15:28:47 UTC
OpenStack gerrit 579348 0 None None None 2018-07-10 14:04:21 UTC
Red Hat Issue Tracker OSP-11462 0 None None None 2021-12-10 16:43:55 UTC
Red Hat Product Errata RHBA-2018:3789 0 None None None 2018-12-05 18:53:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.