mongodb module wants bind_ip to be a list

Bug #1297984 reported by Lars Kellogg-Stedman
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Packstack
Fix Released
Undecided
Unassigned

Bug Description

packstack generates a mongodb manifest from this template:

class { 'mongodb::server':
    smallfiles => true,
    bind_ip => '%(CONFIG_MONGODB_HOST)s',
    before => Class['ceilometer::db'],
}

But the mongodb puppet module wants bind_ip to be a list. E.g., in manifests/params.pp:

        $bind_ip = pick($bind_ip, ['127.0.0.1'])

With the existing template, installing mongodb fails with:

Error: Failed to parse template mongodb/mongodb.conf.erb:

And in the manifest log:

Error: Failed to parse template mongodb/mongodb.conf.erb:
  Filepath: /var/tmp/packstack/2acf393f4b664c99b64334f5675eea5f/modules/mongodb/templates/mongodb.conf.erb
  Line: 10
  Detail: undefined method `join' for "10.0.0.2":String
 at /var/tmp/packstack/2acf393f4b664c99b64334f5675eea5f/modules/mongodb/manifests/server/config.pp:65 on node aio.openstacklocal
Error: Failed to parse template mongodb/mongodb.conf.erb:
  Filepath: /var/tmp/packstack/2acf393f4b664c99b64334f5675eea5f/modules/mongodb/templates/mongodb.conf.erb
  Line: 10
  Detail: undefined method `join' for "10.0.0.2":String
 at /var/tmp/packstack/2acf393f4b664c99b64334f5675eea5f/modules/mongodb/manifests/server/config.pp:65 on node aio.openstacklocal

Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to packstack (master)

Reviewed: https://review.openstack.org/83153
Committed: https://git.openstack.org/cgit/stackforge/packstack/commit/?id=d4f90b1ee8df48194d1c832fb5963ee68799a0f8
Submitter: Jenkins
Branch: master

commit d4f90b1ee8df48194d1c832fb5963ee68799a0f8
Author: Lars Kellogg-Stedman <email address hidden>
Date: Wed Mar 26 14:04:05 2014 -0400

    mongodb modules want bind_ip to be a list

    The mongodb puppet module expects bind_ip to be a list. This is a small
    patch to make that true in mongodb.pp.

    Change-Id: Ia93f8489d7e49085506e2125a77fe2395126674b
    Closes-bug: 1297984

Changed in packstack:
status: New → Fix Committed
Revision history for this message
Ivan Chavero (imcsk8) (ichavero-ichavero) wrote : Cleanup EOL bug report

The status of this bug report was changed automatically.

Changed in packstack:
status: Fix Committed → 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.