Unable to install RHMAP 4.5 on top of OCSP via ansible-playbook "3-node-mbaas.yml"
Issue
- Unable to install RHMAP via ansible-playbook
3-node-mbaas.yml - App pods failing to auth to MongoDB
- Error with MongoDB authentication is faced when MBaaS pods failing to start.
Following an example of this issue.
# oc logs fh-mbaas-3
{"name":"test-fh-mbaas","hostname":"fh-mbaas","pid":1,"level":50,"err":{"message":"Authentication failed.","name":"MongoError","stack":"MongoError: Authentication failed.\n at Function.MongoError.create (/opt/app-root/src/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)\n at commandCallback (/opt/app-root/src/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:1187:66)\n at Callbacks.emit (/opt/app-root/src/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)\n at null.messageHandler (/opt/app-root/src/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:358:23)\n at Socket.<anonymous> (/opt/app-root/src/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:292:22)\n at emitOne (events.js:77:13)\n at Socket.emit (events.js:169:7)\n at readableAddChunk (_stream_readable.js:153:18)\n at Socket.Readable.push (_stream_readable.js:111:10)\n at TCP.onread (net.js:537:20)\n at TCP.<anonymous> (/opt/app-root/src/node_modules/fh-forms/node_modules/fh-logger/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:188:31)","code":18},"msg":"failed connect to mongodb","time":"2017-10-03T23:18:03.317Z","v":0}
failed creating mongodb user for forms
{ [MongoError: Authentication failed.]
name: 'MongoError',
message: 'Authentication failed.',
ok: 0,
code: 18,
errmsg: 'Authentication failed.' }
Environment
- Red Hat Mobile Application Platform 4.5
- OpenShift 3.5
- Docker 1.12.6
- RHEL: Red Hat Enterprise Linux Server release 7.4 (Maipo)
- Using GlusterFS and the installation performed in VMs and physical hosts
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
