Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1179892 - Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `to_a' for "eqlx1":String at /etc/puppet/environments/production/modules/quickstack/manifests/cinder_volume.pp:179
Could not retrieve catalog from remote server: Error 400 on SERVER: undefined...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhel-osp-installer (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: z2
: Installer
Assigned To: Rajini Karthik
Omri Hochman
: OtherQA, ZStream
Depends On:
Blocks: 1171850
  Show dependency treegraph
 
Reported: 2015-01-07 13:19 EST by Ramon Acedo
Modified: 2015-04-07 11:07 EDT (History)
16 users (show)

See Also:
Fixed In Version: openstack-foreman-installer-3.0.19-1.el7ost
Doc Type: Bug Fix
Doc Text:
A minor change in string-to-array handling in Ruby 1.9 caused an undefined method error when processing Cinder configuration. This fix corrects the string-to-array handling using Ruby 1.9 syntax. The undefined method no longer appears.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-04-07 11:07:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0791 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux OpenStack Platform Installer update 2015-04-07 15:07:29 EDT

  None (edit)
Description Ramon Acedo 2015-01-07 13:19:32 EST
This is the OSP-6 beta release:

openstack-foreman-installer-3.0.8-1.el7ost.noarch
rhel-osp-installer-0.5.4-1.el7ost.noarch
rhel-osp-installer-client-0.5.4-1.el7ost.noarch
ruby193-rubygem-staypuft-0.5.9-1.el7ost.noarch

A default installation with:
- HA (3 controllers 1 compute)
- SELinux disabled
- Equllogic values (exported from Advanced Configuration):

      cinder:
        backend_lvm: 'false'
        backend_ceph: 'false'
        backend_nfs: 'true'
        backend_eqlx: 'true'
        nfs_uri: 10.0.0.1:/Users/racedo/nfs-cinder/
        rbd_secret_uuid: 870a7f29-3ab9-4a9a-a75c-b951b8f3fa5f
        eqlxs:
        - &70266817482880 !ruby/object:Staypuft::Deployment::CinderService::Equallogic
          errors: !ruby/object:ActiveModel::Errors
            base: *70266817482880
            messages: !omap []
          id: 0
          chap_login: ''
          chap_password: ''
          group_name: '12'
          pool: cinder_pool
          san_ip: 10.0.0.1
          san_login: root
          san_password: root_pw
          thin_provision: true
          use_chap: false

Puppet fails during deployment with:

Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `to_a' for "eqlx1":String at /etc/puppet/environments/production/modules/quickstack/manifests/cinder_volume.pp:179 on node mac000c292e37da.vm.lab

Can't continue the deployment.
Comment 3 Rajini Karthik 2015-03-18 12:49:18 EDT
In ruby 1.9, String no longer has a to_a method. Older code probably used Ruby 1.8

Workaround :

1.8.x > 'foo'.to_a # => ['foo']
You would use:

1.9.x > 'foo'.lines.to_a # => ['foo']

/usr/share/openstack-foreman-installer/puppet/modules/quickstack/lib/puppet/parser/functions/produce_array_with_prefix.rb

Fix:
-retval += (prefix+i.to_s).to_a
+retval += (prefix+i.to_s).lines.to_a
Comment 4 arkady kanevsky 2015-03-18 13:33:45 EDT
Rajini,
can you create Pull request for it?

Mike,
will it make into A2?
Comment 5 Rajini Karthik 2015-03-18 15:33:55 EDT
Submitted a PR

https://github.com/redhat-openstack/astapor/pull/496
Comment 6 Mike Burns 2015-03-18 16:31:34 EDT
(In reply to arkady kanevsky from comment #4)

> Mike,
> will it make into A2?

Proposing for A2, should make it
Comment 7 Jason Guiditta 2015-03-18 16:43:14 EDT
Merged
Comment 10 errata-xmlrpc 2015-04-07 11:07:40 EDT
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://rhn.redhat.com/errata/RHSA-2015-0791.html

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