Creation of a K8s resource of kind: MongoDB
and type: ReplicaSet
ends up in PHASE: Failed
with an error in logs of ailed to prepare Ops Manager connection: Status: 404 (Not Found), ErrorCode: ATLAS_GROUP, Detail: Group <MYPROJECTID> is an Atlas group; use the Atlas Public API at /api/atlas/v1.0 to access it
.
I searched as much as I could online (Google, Stackoverflow, these forums, documentation) but haven’t found anything that explains this. I have triple checked all the steps I followed (per documentation I link to at the bottom) and even re-done them but still no luck.
Does anyone know what I need to do to get past this issue?
Here’s the command I query to get the logs and the full log entry:
kubectl logs -f deployment/mongodb-enterprise-operator -n mongodb
{"level":"error","ts":1640422612.7873433,"caller":"workflow/failed.go:72","msg":"Failed to prepare Ops Manager connection: Status: 404 (Not Found), ErrorCode: ATLAS_GROUP, Detail: Group <MYPROJECTID> is an Atlas group; use the Atlas Public API at /api/atlas/v1.0 to access it.","ReplicaSet":"mongodb/<myprojectname>","stacktrace":"github.com/10gen/ops-manager-kubernetes/controllers/operator/workflow.failedStatus.Log\n\t/go/src/github.com/10gen/ops-manager-kubernetes/controllers/operator/workflow/failed.go:72\ngithub.com/10gen/ops-manager-kubernetes/controllers/operator.(*ReconcileCommonController).updateStatus\n\t/go/src/github.com/10gen/ops-manager-kubernetes/controllers/operator/common_controller.go:151\ngithub.com/10gen/ops-manager-kubernetes/controllers/operator.(*ReconcileMongoDbReplicaSet).Reconcile\n\t/go/src/github.com/10gen/ops-manager-kubernetes/controllers/operator/mongodbreplicaset_controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:227"}
I am using Cloud Manager and thus have my configMap as follows
baseUrl: https://cloud.mongodb.com
projectName: <myprojectname>
orgId: <myorgid>
I followed all the guidance in these articles:
- Install the MongoDB Enterprise Kubernetes Operator — MongoDB Kubernetes Operator 1.15
- Create Credentials for the Kubernetes Operator — MongoDB Kubernetes Operator 1.15 (can’t link to doc given link limit for new users)
- Create One Project using a ConfigMap — MongoDB Kubernetes Operator 1.15 (can’t link to doc given link limit for new users)
- Deploy a Replica Set — MongoDB Kubernetes Operator 1.15