Bug 1610962

Summary: [OSP-12] an empty netapp_storage_pools (or empty netapp_volume_list) results in an invalid search pattern
Product: Red Hat OpenStack Reporter: Alan Bishop <abishop>
Component: puppet-tripleoAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact: Kim Nylander <knylande>
Priority: medium    
Version: 12.0 (Pike)CC: aavraham, abishop, amcleod, aschultz, cswanson, dvd, jjoyce, jschluet, knylande, marjones, mburns, slinaber, tbonds, tshefi, tvignaud
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-7.4.12-9.el7ost Doc Type: Bug Fix
Doc Text:
Previously, the Cinder NetApp back-end driver failed during initialization when the user specified empty string values for some deprecated parameters. With this update, empty string values for deprecated NetApp parameters are converted to valid NetApp driver configuration automatically and the Cinder NetApp back-end driver initializes successfully.
Story Points: ---
Clone Of: 1601497 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: 1601497    
Bug Blocks:    

Comment 6 Tzach Shefi 2018-11-23 23:14:42 UTC
Verified on:
puppet-tripleo-7.4.12-10.el7ost.noarch

Using this yml to deploy 
(undercloud) [stack@undercloud-0 ~]$ cat /home/stack/virt/storage-config.yaml
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: 'qeadmin'
  CinderNetappPassword: 'Qum10net'
  CinderNetappServerHostname: '10.46.2.1'
  CinderNetappServerPort: 80
  CinderNetappTransportType: 'http'
  CinderNetappStorageProtocol: 'iscsi'
  CinderNetappVolumeList: 'rhos_cinder'
  CinderNetappVserver: 'vserver-rhos-qe'
  CinderNetappStoragePools: ''   -> Added to verify this bz. 

Deployment completed successfully
$cinder service-list
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
| Binary           | Host                      | Zone | Status  | State | Updated_at                 | Disabled Reason |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | hostgroup                 | nova | enabled | up    | 2018-11-23T23:12:21.000000 | -               |
| cinder-volume    | hostgroup@tripleo_iscsi   | nova | enabled | up    | 2018-11-23T23:12:16.000000 | -               |
| cinder-volume    | hostgroup@tripleo_netapp2 | nova | enabled | up    | 2018-11-23T23:12:13.000000 | -               |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+

$ cinder create 1 
| os-vol-host-attr:host          | hostgroup@tripleo_netapp2#rhos_cinder |
| status                         | available

Comment 8 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