Closed DamaniN closed 2 months ago
@DamaniN this is a problem with the GraphQL endpoint we use to monitor the status of an RSC task. Disabling a subscription runs as an asynchronous task and sometimes it takes quite a long time before it even gets created, before that we receive the error you are seeing. We've tried to work around this short coming in the TF provider by waiting and retrying the call. In the latest beta release (v0.9.0-beta.1
) I've increase the number of retries we do before giving up. I've also changed the GraphQL endpoint we use to disable a subscription.
Sound's good @johan3141592, we can see if this fixes the issue.
This should be fixed in the latest beta release of the provider, 0.9.0-beta.9
. We now check the status of the task and the status of the subscription, as soon as one of them indicates that the subscription has been disabled we stop waiting.
Expected Behavior
Running
terraform destroy
on a plan that uses thepolaris_azure_subscription
resource would remove the subscription from RSC.Current Behavior
When
terraform destroy
is run on apolaris_azure_subscription
resource, the following error occurs:In RSC you can see that the VM support has been disabled, but not deleted. Re-running the
terraform destroy
will remove the subscription successfully.Failure Information (for bugs)
The resource used in this configuration is as follows:
None
Steps to Reproduce
Add a subscription using the resource above and then delete it again.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Available upon request.