Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-534

mongodb: Does Not Properly Create Users

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodb
    • Labels:
    • Environment:

      Fedora 19. Using OS Mongo packages:

      mongodb.x86_64 2.4.6-1.fc19 @updates
      mongodb-server.x86_64 2.4.6-1.fc19 @updates

    • Template:
    • Acceptance Criteria:
      Hide

      Can create Admin users with Auth on 3.x of mongodb
      Can create additional users and databases after creating an admin user

      Limiting scope to 3.x Mongo and User creation

      Show
      Can create Admin users with Auth on 3.x of mongodb Can create additional users and databases after creating an admin user Limiting scope to 3.x Mongo and User creation
    • Epic Link:
    • Team:
      Modules
    • Story Points:
      3
    • Sprint:
      Modules - Product Backlog

      Description

      The module creates a standard user just fine. However, if you need to create an admin user and enable auth, additional users, databases, etc. fail to create. Here is the error I see:

      Info: /Stage[main]/Mongodb::Server::Config/File[/etc/mongodb.conf]: Filebucketed /etc/mongodb.conf to puppet with sum d74fd9a4ef98d7dbe407592a1f601420
      Notice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongodb.conf]/content: content changed '{md5}d74fd9a4ef98d7dbe407592a1f601420' to '{md5}607de07a113e420e7af46209b6d0b459'
      Debug: /Stage[main]/Mongodb::Server::Config/File[/etc/mongodb.conf]: The container Class[Mongodb::Server::Config] will propagate my refresh event
      Info: /Stage[main]/Mongodb::Server::Config/File[/etc/mongodb.conf]: Scheduling refresh of Class[Mongodb::Server::Service]
      Notice: /Stage[main]/Mongodb::Server::Config/File[/var/lib/mongodb]/group: group changed 'root' to 'mongodb'
      Debug: /Stage[main]/Mongodb::Server::Config/File[/var/lib/mongodb]: The container Class[Mongodb::Server::Config] will propagate my refresh event
      Debug: Class[Mongodb::Server::Config]: The container Stage[main] will propagate my refresh event
      Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
      Debug: Executing '/sbin/service mongod status'
      Debug: Executing '/sbin/chkconfig mongod'
      Debug: Executing '/sbin/service mongod start'
      Debug: Executing '/sbin/chkconfig mongod'
      Debug: Executing '/sbin/chkconfig mongod on'
      Notice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]/ensure: ensure changed 'stopped' to 'running'
      Debug: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: The container Class[Mongodb::Server::Service] will propagate my refresh event
      Info: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Unscheduling refresh on Service[mongodb]
      Debug: Class[Mongodb::Server::Service]: The container Stage[main] will propagate my refresh event
      Debug: Executing '/bin/mongo --quiet --eval db.getMongo()'
      Debug: Executing '/bin/mongo openshift_broker --quiet --eval db.system.users.find({user:"openshift"}).count()'
      Debug: Executing '/bin/mongo openshift_broker --eval db.system.users.insert({user:"openshift", pwd:"61645df72597687203c4918832537744", roles: ["readWrite"]})'
      Notice: /Stage[main]/Openshift_origin::Db::Mongo/Mongodb_user[openshift]/ensure: created
      Debug: /Stage[main]/Openshift_origin::Db::Mongo/Mongodb_user[openshift]: The container Class[Openshift_origin::Db::Mongo] will propagate my refresh event
      Debug: Executing '/bin/mongo --quiet --eval db.getMongo()'
      Debug: Executing '/bin/mongo admin --quiet --eval db.system.users.find({user:"admin"}).count()'
      Debug: Executing '/bin/mongo admin --eval db.system.users.insert({user:"admin", pwd:"61645df72597687203c4918832537744", roles: ["clusterAdmin", "dbAdmin", "dbAdminAnyDatabase", "read", "readAnyDatabase", "readWrite", "readWriteAnyDatabase", "userAdmin", "userAdminAnyDatabase"]})'
      Notice: /Stage[main]/Openshift_origin::Db::Mongo/Mongodb_user[admin]/ensure: created
      Debug: /Stage[main]/Openshift_origin::Db::Mongo/Mongodb_user[admin]: The container Class[Openshift_origin::Db::Mongo] will propagate my refresh event
      Debug: Executing '/bin/mongo --quiet --eval db.getMongo()'
      Debug: Executing '/bin/mongo --quiet --eval db.getMongo().getDBNames()'
      Error: /Stage[main]/Openshift_origin::Db::Mongo/Mongodb_database[openshift_broker]: Could not evaluate: Execution of '/bin/mongo --quiet --eval db.getMongo().getDBNames()' returned 252: Wed Mar 19 19:52:42.260 listDatabases failed:{ "ok" : 0, "errmsg" : "unauthorized" } at src/mongo/shell/mongo.js:46
      Debug: Class[Openshift_origin::Db::Mongo]: The container Stage[main] will propagate my refresh event
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              danehans Daneyon Hansen
              Votes:
              15 Vote for this issue
              Watchers:
              26 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support