powerful-football-81694
04/11/2020, 10:46 AMDiagnostics:
azure:cosmosdb:Account (orgflow-stacks-dev-cdb):
error: Error creating CosmosDB Account "orgflow-stacks-dev-cdb" (Resource Group "orgflow-stacks-dev-rg"): Error waiting for the CosmosDB Account "orgflow-stacks-dev-cdb" (Resource Group "orgflow-stacks-dev-rg") to finish creating/updating: Code="ServiceUnavailable" Message="Sorry, we are currently experiencing high demand in this region, and cannot fulfill your request at this time. We work continuously to bring more and more capacity online, and encourage you to try again shortly. Please do not hesitate to contact us via Azure support at any time or for any reason using this link <http://aka.ms/azuresupport>.\r\nActivityId: a74b0d98-cc3c-44ed-b5b9-587168e7b8c2"
To be clear: the Cosmos DB account is eventually created on the Azure side, although it doesn’t seem to be complete (I suspect this might be because Pulumi gave up waiting on some part and therefore didn’t proceed to subsequent parts).
As a result, we’re left with an incomplete Cosmos DB account that Pulumi doesn’t know about and doesn’t know what to do with in the next attempt - and as we know, pulumi refresh
does not help in this situation.
I suspect that the fix should be:
• Handle 503 responses in the resource creation status polling more gracefully and retry
• Do it with a back-off strategy to poll less frequently if these responses are coming out
• Possibly also start with less frequent polling from the get-gotall-librarian-49374
04/11/2020, 2:28 PMpowerful-football-81694
04/14/2020, 11:19 AMtall-librarian-49374
04/14/2020, 11:20 AMpowerful-football-81694
04/14/2020, 12:55 PMtall-librarian-49374
04/15/2020, 6:30 AMpowerful-football-81694
04/15/2020, 11:20 AMimport
command, at the points when it starts importing the Cosmos DB account resource. It will stay on “importing…” for a few secs, but soon fail with the error message stating that the properties of the existing resource don’t match the inputs.tall-librarian-49374
04/15/2020, 11:22 AMpowerful-football-81694
04/15/2020, 12:45 PMpulumi up --import
argument that, given the existence of a resource with the same name (at the cloud provider level), imports it into the state unconditionally, with whatever properties it has, before proceeding to do an up
as usual.tall-librarian-49374
04/15/2020, 1:59 PMpowerful-football-81694
04/16/2020, 8:14 PM