crossplane-contrib / provider-upjet-azure

Azure Provider for Crossplane.
https://marketplace.upbound.io/providers/upbound/provider-family-azure/
Apache License 2.0
63 stars 75 forks source link

azure.cache: `RedisLinkedServer` creation fails with StatusCode=400 #16

Closed ytsarev closed 6 months ago

ytsarev commented 2 years ago

What happened?

Encountered during work on upbound/official-providers#501

    Message:               apply failed: waiting for creation of Linked Server "example-secondary" (Redis Cache "example-primary" / Resource Group "example-primary"): redis.LinkedServerClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequestBody" Message="The value of the parameter 'ExternalReplication request failed with errorcode: BadRequest\r\n, Details: {\"error\":{\"code\":\"BadRequest\",\"message\":\"Cannot create geo-replication link, since this cache is already linked to another cache.\\r\\nRequestID=e8147a33-4faa-43f8-8597-1a78e27f1381\",\"target\":null}}' is invalid.\r\nRequestID=5110b24e-e201-4d80-b924-524e6d76bec3": : File name: main.tf.json

At the same time it seems properly configured and currently in Creating state

image

How can we reproduce it?

test provider-azure/examples/cache/redislinkedserver.yaml

What environment did it happen in?

svscheg commented 1 year ago

Bug is reproduced for provider version 3.45.0:

"apply failed: creating Linked Server (Subscription: \"038f2b7c-3265-43b8-8624-c9ad5da610a8\"\nResource Group Name: \"example-primary\"\nRedis Name: \"example-primary\"\nLinked Server Name: \"example-secondary\"): performing LinkedServerCreate: redis.RedisClient#LinkedServerCreate: Failure sending request: StatusCode=0 -- Original Error: Code=\"InvalidRequestBody\" Message=\"The value of the parameter 'ExternalReplication request failed with errorcode: BadRequest\r\n, Details: {\\"error\\":{\\"code\\":\\"BadRequest\\",\\"message\\":\\"Cannot create geo-replication link, since this cache is already linked to another cache.\\r\\nRequestID=7b110442-cd51-4b7c-8210-ccef9e8993f6\\",\\"target\\":null}}' is invalid.\r\nRequestID=702ca1fa-e4e6-49e5-b671-60c565439cea\": "

svscheg commented 1 year ago

The issue reproduced TERRAFORM_PROVIDER_VERSION=3.45.0 provider-azure version: v0.30.0

github-actions[bot] commented 6 months ago

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] commented 6 months ago

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!