Troubleshooting
Problem
At the time of installing v0.6.0 MongoDB CE Operator, that is, when running install.mongo-ce.sh, below error is seen
The MongoDBCommunity "mas-mongo-ce" is invalid: spec.security.authentication.modes: Unsupported value: "SCRAM-SHA-256": supported values: "SCRAM"
- Waiting for MongoDB CE Stateful Set to initialize and start -Error from server (NotFound): statefulsets.apps "mas-mongo-ce" not found
- Waiting for MongoDB CE Stateful Set to initialize and start -Error from server (NotFound): statefulsets.apps "mas-mongo-ce" not found
Symptom
One can see the error as above on the server's terminal after running the mongo installation command. Also, warnings in Red Hat OpenShift console > Project 'mongo' > Under Activity > View events can also be seen on its running pod.
Cause
This is caused due to a different security authentication SCRAM-SHA-256 being used by mongo.
Diagnosing The Problem
After diagnosing, it was found out that it's the __mas_v1_mongodbcommunity_openshift_cr__.yaml file in the mongo config folder (/root/iot-docs-master/mongodb/config/mas-mongo-ce) with security authentication mode set to Modes: ["SCRAM-SHA-1", "SCRAM-SHA-256"] that was causing it as it's not supported.
Resolving The Problem
To resolve this, the mode can be changed from Modes: ["SCRAM-SHA-1", "SCRAM-SHA-256"] to Modes: ["SCRAM"] in the __mas_v1_mongodbcommunity_openshift_cr__.yaml file.
Make sure before running install.mongo-ce.sh, you are exporting namespace, storage class and mongo password:
export MONGO_NAMESPACE=mongo
export MONGODB_STORAGE_CLASS=rook-cephfs
export MONGO_PASSWORD=
export MONGODB_STORAGE_CLASS=rook-cephfs
export MONGO_PASSWORD=
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m3p000000GoLBAA0","label":"Maximo Application Suite->Installation"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.0;8.6.0"}]
Was this topic helpful?
Document Information
Modified date:
23 December 2021
UID
ibm16536834