Open andigwandi opened 1 year ago
@andigwandi thanks for opening this issue here. Could you provided the raw Terraform config and repro steps as terraform module is not enough for reproduction and troubleshooting?
Beside, since the timeouts could be defined in tf config as follows, could you update the reading timeout( e.g. extend the timeout for reading to 20m) to see if that fixes the issue?
resource "azurerm_cosmosdb_sql_container" "container" {
...
...
...
timeouts {
read = "20m"
}
}
This has been happening to me as well. There definitely seems to have been some regression with refreshing the state of Cosmos infrastructure via Terraform.
I've been seeing errors like
Error: [0m Error: [ERROR] Unable to List connection strings for CosmosDB Account my-account: documentdb.DatabaseAccountsClient#ListConnectionStrings: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
@andigwandi thanks for opening this issue here. Could you provided the raw Terraform config and repro steps as terraform module is not enough for reproduction and troubleshooting?
Beside, since the timeouts could be defined in tf config as follows, could you update the reading timeout( e.g. extend the timeout for reading to 20m) to see if that fixes the issue?
resource "azurerm_cosmosdb_sql_container" "container" { ... ... ... timeouts { read = "20m" } }
Here is the configuration for the example given in the issue:
cosmos_container_config_master_data = { analytical_storage_ttl = -1 autoscale_enabled = false autoscale_settings = [{ max_throughput = 1000 }] throughput = 400 }
other configurations can be hardcoded like name, db_name etc.
This error comes when I execute terraform plan
to generate the changes.
This has been happening to me as well. There definitely seems to have been some regression with refreshing the state of Cosmos infrastructure via Terraform.
I've been seeing errors like
Error: [0m Error: [ERROR] Unable to List connection strings for CosmosDB Account my-account: documentdb.DatabaseAccountsClient#ListConnectionStrings: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
I also received similar kind of error for one of my pipeline as well:
Error: [ERROR] Unable to List read-only keys for CosmosDB Account my-account: documentdb.DatabaseAccountsClient#ListReadOnlyKeys: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
I am oddly getting this with azurerm_security_center_contact
and the error:
retrieving Contact: (Security Contact Name "Platform Team"): security.ContactsClient#Get: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
On Mon June 24th I started to get the same error message with azurerm_security_center_contact when running the same Terraform script on different Azure subscriptions that host different environments ( PROD, PREPROD, etc ):
Error: Reading Security Center Contact: security.ContactsClient#Get: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
However, it seems that today Wed 26th is working fine again , and we stopped receiving that error message for every environment .
It looks like there was a temporary problem retrieving information for azurerm_security_center_contact resources . Please, @philspencer-owd , can you confirm if you´re still having this error message today ?
@prietolu Confirmed this is now working again for all our environments as well!
We are now frequently getting a similar error:
"Error: making Read request on AzureRM Application Insights Billing Feature '
We've seen it happen on Azure SQL database and app service resources.
@andigwandi - did increasing the read timeout get you past the error you were seeing?
@usr122 We had the same problem from 22/08/2024 till 26/08/2024, after that it has been resolved automatically. So it was temporal issue from Azure side.
We're still seeing this issue in Azure. Has anybody found a workaround ?
We are now frequently getting a similar error:
"Error: making Read request on AzureRM Application Insights Billing Feature '': insights.ComponentCurrentBillingFeaturesClient#Get: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded"
We've seen it happen on Azure SQL database and app service resources.
@andigwandi - did increasing the read timeout get you past the error you were seeing?
Seeing this as a growing trend as well. Someone needs to look into the larger issue going on here.
Issue created here: https://github.com/hashicorp/terraform-provider-azurerm/issues/27248
This started happening for us since Sept 5th, 2024...
Error: making Read request on AzureRM Application Insights Billing Feature 'appi-projectname-env': insights.ComponentCurrentBillingFeaturesClient#Get: Failure sending request: StatusCode=504 -- Original Error: context deadline exceeded
Is there an existing issue for this?
Community Note
Terraform Version
1.2.9
AzureRM Provider Version
3.22.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_sql_container
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform Plan should generate the changes in the resources without any issue
Actual Behaviour
Stage: Terraform Plan
I am seeing different errors related to the 'context deadline' while re-running the same pipeline. Both errors are around cosmos db and after 2-3 retries it is proceeding further.
Steps to Reproduce
No response
Important Factoids
No response
References
No response