os_transport_url fails when an array of size 1 is passed in as the hosts param

Bug #1650042 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-openstacklib
Fix Released
Medium
Alex Schultz

Bug Description

When using os_transport_url and passing in ['localhost'] to the hosts parameter, puppet fails with a map error.

Error: Evaluation Error: Error while evaluating a Function Call, undefined method `map' for \"overcloud-controller-0.internalapi.localdomain\":String at /etc/puppet/modules/tripleo/manifests/profile/base/heat.pp:82:28 on node overcloud-controller-0.localdomain\u001b[0m\n

This is due to os_transport_url calling normalize_ip_for_uri which will convert an array of size 1 to a string.

https://github.com/openstack/puppet-openstacklib/blob/master/lib/puppet/parser/functions/os_transport_url.rb#L115
https://github.com/openstack/puppet-openstacklib/blob/master/lib/puppet/parser/functions/normalize_ip_for_uri.rb#L34

Revision history for this message
Alex Schultz (alex-schultz) wrote :
Changed in puppet-openstacklib:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 10.2.0

This issue was fixed in the openstack/puppet-openstacklib 10.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 9.5.0

This issue was fixed in the openstack/puppet-openstacklib 9.5.0 release.

Changed in puppet-openstacklib:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.