ibm-watson-iot / iot-docs

Documentation
8 stars 29 forks source link

install-mongo-ce.sh gets an error "mas-mongo-ce" not found #19

Open mudspringhiker opened 2 years ago

mudspringhiker commented 2 years ago

We're getting the following error when running the install-mongo-ce script that is due to oc get statefulset mas-mongo-ce -n ${MONGO_NAMESPACE} -o 'jsonpath={..status.readyReplicas}' not returning any value.

 $ ./install-mongo-ce.sh
Now using project "mongo" on server "https://api.nag.cp.fyre.ibm.com:6443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app rails-postgresql-example

to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:

    kubectl create deployment hello-node --image=k8s.gcr.io/serve_hostname

customresourcedefinition.apiextensions.k8s.io/mongodbcommunity.mongodbcommunity.mongodb.com created
serviceaccount/mongodb-kubernetes-operator created
role.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
rolebinding.rbac.authorization.k8s.io/mongodb-kubernetes-operator created
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "default"
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:anyuid added: "mongodb-kubernetes-operator"
deployment.apps/mongodb-kubernetes-operator created
 - Waiting for MongoDB CE Operator   configmap/mas-mongo-ce-cert-map created
secret/mas-mongo-ce-cert-secret created
mongodbcommunity.mongodbcommunity.mongodb.com/mas-mongo-ce created
secret/mas-mongo-ce-admin-password created
 - Waiting for MongoDB CE Stateful Set to initialize and start  |Error from server (NotFound): statefulsets.apps "mas-mongo-ce" not found
 $ 

The script then appears to stop running (though the rest of the commands ran).

Running oc get statefulset mas-mongo-ce -n ${MONGO_NAMESPACE} -o 'jsonpath={.status.readyReplicas}' gives the result of 3 however. So maybe remove the extra dot in the jsonpath filter.