-
Notifications
You must be signed in to change notification settings - Fork 135
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
internal errors with increasing number of security group rules #18
Comments
@lubars Please paste your .tf file (mask sensitive data) if it is convinient to do so. |
I simplified and sanitized to a small, reproducible file, and was able to reliably get the internal error by adding/removing security group rules. It basically looked like this:
I did one last test, and to my surprise it succeeded. I went back to my original files, and those are now succeeding too (after failing for several days). So I am no longer sure what is going on or what the problem was. |
I'm still getting intermittent failures, and they seem more frequent with more security group rules (just not reliably so). Here is my template; I would be interested to know if you encounter any issues with it.
|
The file above is now succeeding on most runs, but when I set the instance count to "2" I am seeing the following error on about 50% of the runs:
It also seems to be the case that there are always some security group rules which fail to be destroyed:
However a second terraform destroy seems to clean them up reliably. |
Thanks for providing such detailed information, we will look into it. Basically, as I said, this issue is caused by CVM & VPC APIs, we need to discuss with these products' developers to locate the problem. |
Any progress on this issue? Still receiving internal errors on 90%-95% of attempts to provision; hundreds of attempts are now required when creating a cluster. |
Hello @lubars |
If there is any problems, please open a new issue. |
Upgraded Terraform and Tencentcloud plugin:
Still getting internal errors on roughly 25% of calls to terraform apply (this succeeded on the third try):
Still seeing errors on calls to terraform destroy as well:
|
Hi Lubar,
Do you mind trying set this parameter to 1 and retry?
https://www.terraform.io/docs/commands/plan.html#parallelism-n
Regards,
Yulei
…On Thu., 1 Aug. 2019, 5:21 am lubars, ***@***.***> wrote:
Upgraded Terraform and Tencentcloud plugin:
Terraform v0.12.5
- provider.null v2.1.2
- provider.tencentcloud v1.14.0
Still getting internal errors on roughly 25% of calls to *terraform apply*
(this succeeded on the third try):
Error: [TencentCloudSDKError] Code=InternalError, Message=(bd6d22a359eb)An
internal error has occurred. Retry your request, but if the problem
persists, contact us with details by posting a message on the Tencent cloud
forums., RequestId=5498c37c-ff95-4231-ab6c-bd6d22a359eb
on infrastructure.tf line 372, in resource "tencentcloud_cbs_storage"
"data":
372: resource "tencentcloud_cbs_storage" "data" {
Still seeing errors on calls to *terraform destroy* as well:
Error: [TencentCloudSDKError] Code=ResourceBusy,
Message=656e6c70-be4a-4657-aed1-95964abc0b7b,ins-ruv3rbzm is busy, please
retry later (0afe54a64aa6), RequestId=a7e786f4-5c73-47e6-8d37-0afe54a64aa6
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/18?email_source=notifications&email_token=AFB357Z4EG7LU7XTUJFFS73QCHQ2ZA5CNFSM4G6WM34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3IJFNY#issuecomment-516985527>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFB3577EDFEUGWT7UGIVKFTQCHQ2ZANCNFSM4G6WM34A>
.
|
Hi @ausmartway, In the few runs I was able to do with I do continue to see errors in the destroy phase (using the same parameter), such as:
and:
|
I agree that this is a workaround rather than a solution. I believe @likexian's team will look into the best way to resolve this issue, I guess this is related to how the provider would queue/buffer calls to Tencent cloud API. As for not being able to destroy the subnet, you can use tencent cloud console to find out which resources is still using the subnet(subnet-4sg0xnlu), and try manually remove it. If you happened to find that it is a resource other than CVM, please report here, so @likexian can look into it. |
Hello @lubars |
Were you unable to reproduce using the simple tf file I provided above? The files I am using now would require a lot of time to sanitize and reduce to a single file. |
Thank you @lubars Would you please turn on terraform debug mode and send the log to me when failed? Turn on debug mode:
Then
And send terraform.log to me |
Hello @lubars |
Hello @lubars
Thank you. |
With 16 or more tencentcloud_security_group_rule defined, all attempts at apply result in the following error:
This limit includes inactive rules with
count = 0
.The text was updated successfully, but these errors were encountered: