M0 creation issue

The M0 issue happens even when trying to create a fresh cluster.

Hi @Sofiane_Chaieb,

Could you provide some further details regarding this post including:

  1. Full error message
  2. How you are attempting to create the M0 cluster (UI, API, terraform, etc)
  3. Any relevant steps / code snippets associated with question 2.

Regards,
Jason

1 Like

Hi @Jason_Tran,

The issue is discussed here: MongoDB::Atlas::Cluster doesn't expose all ProviderSettings available in Atlas API · Issue #22 · mongodb/mongodbatlas-cloudformation-resources · GitHub

  1. Error Message: 400 (request "INVALID_ENUM_VALUE") An invalid enumeration value M0 was specified
  2. The platform is AWS Cloudformation, the Resource Name is 'MongoDB::Atlas::Cluster'
  3. Here is the documentation of how it should be done: mongodbatlas-cloudformation-resources/cluster.json at master · mongodb/mongodbatlas-cloudformation-resources · GitHub and here is my snippet of code trying to use a M0 instance:
AtlasCluster:
    Type: 'MongoDB::Atlas::Cluster'
    Properties:
      ProjectId: !GetAtt 
        - AtlasProject
        - Id
      Name: !Ref AtlasClusterName
      Profile: !Ref ProfileKey
      ClusterType: REPLICASET
      ReplicationSpecs:
        - NumShards: '1'
          AdvancedRegionConfigs:
            - ElectableSpecs:
                EbsVolumeType: STANDARD
                InstanceSize: M0
                NodeCount: '3'
              RegionName: US_EAST_1

I got the same error when following the MangoDB Atlas Kubernetes Operator.

Below are the config files and execution sequence.

  1. Atlas Project config file
apiVersion: atlas.mongodb.com/v1
  kind: AtlasProject
  metadata:
    name: facerec-project
    namespace: facerec
    labels:
      app.kubernetes.io/version: 1.6.0
  spec:
    name: FaceRecognition
    projectIpAccessList:
      - ipAddress: "<My-IP>"
        comment: "Allowing access to database from everywhere (only for Demo!)"

The above file was executed successfully with Kubectl and I can see the project in the Atlas dashboard.

  1. Cluster Creation config file
 apiVersion: atlas.mongodb.com/v1
  kind: AtlasDeployment
  metadata:
    name: my-atlas-cluster
    namespace: facerec
    labels:
      app.kubernetes.io/version: 1.6.0
  spec:
    projectRef:
      name: facerec-project
    deploymentSpec:
      name: "FaceRec-cluster"
      tags:
       - key: "environment"
         value: "Development"
      replicationSpecs:
        - regionConfigs:
            - electableSpecs:
                instanceSize: M0
              providerName: GCP
              regionName: US_CENTRAL1

When executing the above config file with Kubectl I’m getting the below error

{“level”:“INFO”,“time”:“2024-02-23T20:19:48.960Z”,“msg”:“Status update”,“atlasdeployment”:“facerec/my-atlas-cluster”,“lastCondition”:{“type”:“DeploymentReady”,“status”:“False”,“lastTransitionTime”:null,“reason”:“DeploymentNotCreatedInAtlas”,“message”:“POST : 400 (request "INVALID_ENUM_VALUE") An invalid enumeration value M0 was specified.”}}

  1. There is a limit of single M0 per account.
  2. Removing existing M0 cluster via UI does not help.

Per account or per project.

I am pretty sure that it is per project. Because I have 1 Atlas account and 2 M0 clusters in 2 different projects. Thank you MongoDB to make that possible.

2 Likes