Skip to content
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

Error updating Configuration the Azure API returned error: Status: "ServerBusy" with resource azurerm_postgresql_flexible_server_configuration #28298

Open
1 task done
ammarasheikh opened this issue Dec 16, 2024 · 0 comments · May be fixed by hashicorp/go-azure-sdk#1135

Comments

@ammarasheikh
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

v1.8.5

AzureRM Provider Version

v4.14.0

Affected Resource(s)/Data Source(s)

azurerm_postgresql_flexible_server_configuration

Terraform Configuration Files

server_configs = [
    { name = "max_connections", value = "100" },
    { name = "azure.extensions", value = "pgaudit,pg_stat_statements,pg_cron" },
    { name = "pgaudit.log", value = "ddl,write,role" },
    { name = "log_statement", value = "mod" },
    { name = "debug_pretty_print", value = "off" },
    { name = "log_error_verbosity", value = "verbose" },
    { name = "pg_qs.query_capture_mode", value = "top" },
    { name = "pgms_wait_sampling.query_capture_mode",value="all"},
    { name = "track_io_timing", value = "on"}
  ]

Debug Output/Panic Output

Error: updating Configuration (Subscription: "xxxxxxxxxxx"
Resource Group Name: "xxxxxxxxxxxx"
Flexible Server Name: "xxxx"
Configuration Name: "azure.extensions"): polling after Update: polling failed: the Azure API returned the following error:

Status: "ServerBusy"
Code: ""
Message: "Server 'xxxxx' is busy with another operation. Please try again later."
Activity Id: ""

---

API Response:

----[start]----
{"name":"","status":"Failed","startTime":"2024-12-16T14:00:53.177Z","error":{"code":"ServerBusy","message":"Server 'xxxxxx' is busy with another operation. Please try again later."}}
-----[end]-----

Expected Behaviour

resource "azurerm_postgresql_flexible_server_configuration" "configuration" {
for_each = { for idx, combined in local.combined_configs :
"${combined.server_name}-${combined.config_name}" => combined }
name = each.value.config_name
server_id = azurerm_postgresql_flexible_server.server[each.value.server_name].id
value = each.value.config_value
}

Actual Behaviour

Configurations are correctly added to the postgresql flexible server

Steps to Reproduce

Set some server configurations for the resource azurerm_postgresql_flexible_server_configuration and run terraform apply
If the error isn't returned run terraform destroy repeat above steps until the error is returned.

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants