Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mudspringhiker opened this issue Jul 5, 2022 · 0 comments
Open

Comments

@mudspringhiker
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant