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

Failure during CosmosDB creation #2434

Open
danielrbradley opened this issue Sep 24, 2024 · 0 comments
Open

Failure during CosmosDB creation #2434

danielrbradley opened this issue Sep 24, 2024 · 0 comments
Labels
impact/accessibility Something that is difficult or impossible for some people to use impact/reliability Something that feels unreliable or flaky kind/bug Some behavior is incorrect or out of spec

Comments

@danielrbradley
Copy link
Member

The Test_cosmosdb upgrade test has been disabled due to a persistent failure during the initial deployment.

func Test_cosmosdb(t *testing.T) {
t.Skip("Can't record as all tested regions are returning 'ServiceUnavailable' error")
test(t, filepath.Join("test-programs", "cosmosdb"))
}

Pulumi YAML Program

resources:
  rg:
    type: azure:core:ResourceGroup
    properties:
      location: westus

  db:
    type: azure:cosmosdb:Account
    properties:
      location: ${rg.location}
      resourceGroupName: ${rg.name}
      offerType: Standard
      kind: MongoDB
      automaticFailoverEnabled: true
      capabilities:
        - name: EnableAggregationPipeline
        - name: mongoEnableDocLevelTTL
        - name: MongoDBv3.4
        - name: EnableMongo
      consistencyPolicy:
        consistencyLevel: BoundedStaleness
        maxIntervalInSeconds: 300
        maxStalenessPrefix: 100000
      geoLocations:
        - location: westus
          failoverPriority: 0

The error message reports:

            Status: "ServiceUnavailable"
            Code: ""
            Message: "Database account was created successfully, but the following regions failed to be added to account: < br/ >East US : Operation Id : xxx, Error : Message: 
                        { "code":"ServiceUnavailable",
                          "message":"Sorry, we are currently experiencing high demand in East US region, and cannot fulfill your request at this time Tue, 24 Sep 2024 09:51:02 GMT. To request region access for your subscription, please follow this link https://aka.ms/cosmosdbquota for more details on how to create a region access request.\r\nActivityId: xxx, Microsoft.Azure.Documents.Common/2.14.0\"
                        },
                        Request URI: /serviceReservation,
                        RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documen
ts.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0 < br/ >, Microsoft.Azure.Documents.Common/2.14.0"

However, changing the region does not seem to fix the issue as it occurs everywhere. There is also no service issues reported at the time of recording.

@danielrbradley danielrbradley added impact/accessibility Something that is difficult or impossible for some people to use impact/reliability Something that feels unreliable or flaky kind/bug Some behavior is incorrect or out of spec labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/accessibility Something that is difficult or impossible for some people to use impact/reliability Something that feels unreliable or flaky kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

1 participant