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

PostgreSQL configuration variable invalid field #5403

Open
MatthewLemmond opened this issue May 31, 2024 · 1 comment
Open

PostgreSQL configuration variable invalid field #5403

MatthewLemmond opened this issue May 31, 2024 · 1 comment
Labels
service/Cloud Databases Issues related to Cloud Databases

Comments

@MatthewLemmond
Copy link

The configuration variable is returning an invalid field error for Postgres database configuration when passing max_locks_per_transaction but this variable is documented as supported here

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 "+1" or other comments that do not add relevant new information or questions, 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

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_database

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_database" "db" {
  name                         = "example-database"
  service                      = "databases-for-postgresql"
  plan                         = "standard"
  location                     = "us-east"

  users {
    name     = "repl"
    password = "repl12345password"
  }

  configuration                = <<CONFIGURATION
  {
    "max_locks_per_transaction": 64
  }
  CONFIGURATION
}

Debug Output

Panic Output

Expected Behavior

provider should accept max_locks_per_transaction as a valid field in configuration

Actual Behavior

│ Error: ---
│ id: terraform-23dab597
Error: [0m summary: "1 error occurred:\n\t* [ERROR] configuration contained invalid field(s):
│  [max_locks_per_transaction]\n\n"

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@github-actions github-actions bot added the service/Cloud Databases Issues related to Cloud Databases label May 31, 2024
@ramirezalfredo
Copy link

ramirezalfredo commented Jun 15, 2024

Is this the reason I'm not able to complete the creation of a PostgreSQL database with provider version 1.66?, here's the output:

│ Error: [ERROR] Error updating database configuration failed Unprocessable Entity
│ {
│     "StatusCode": 422,
│     "Headers": {
│         "Cache-Control": [
│             "no-store"
│         ],
│         "Cf-Cache-Status": [
│             "DYNAMIC"
│         ],
│         "Cf-Ray": [
│             "893e50aabd9b8da8-MIA"
│         ],
│         "Content-Security-Policy": [
│             "frame-ancestors *.bluemix.net *.compose.fastkit *.cloud.ibm.com cloud.ibm.com"
│         ],
│         "Content-Type": [
│             "application/json; charset=utf-8"
│         ],
│         "Date": [
│             "Sat, 15 Jun 2024 00:06:36 GMT"
│         ],
│         "Referrer-Policy": [
│             "strict-origin-when-cross-origin"
│         ],
│         "Server": [
│             "cloudflare"
│         ],
│         "Set-Cookie": [
│             "_compose-dashboard_session=J2ppRsTxIL7YHOAIAo4rHADd7QUBxDGMH%2FX1KzzAmexutbx8ZVeglKv7qaUmQI%2F48eN0%2BU0oRq2fzMogqP%2BkPLEzY22hASK68xvnzXm30aZtNFjwxCswKUrtN5OMhZBRA0cJAi9xykNXdCng2N2Sw0rxzgrfox858eYmgu7Ql%2BoX6Wvd1ETV8yg4dosEyZaEMIUTta%2BA0M8D1HuCYLHJrgGWi7zasX%2F3KhfLdZfN%2Fh2uosqHmHADU4P0KQDVziu%2BGj00xrl%2FaEDGJs1Jc%2BZnl83yuMCrothtCwR5cBclt%2BFyPFAbjwasKtlb9idyQnDHN2AUJcrMEI6TNLLWl8YyrDTFhGQS0aYZnavXUkHV3eOSUsl02UQQgubUwmaTs3hiZvPJtFwyV7OeNFgEKy6f4YiiIzlrTH%2BAFnD%2FrfdZVjpHuUeyfyeijtMBrnKxyBqRQsclYYEHJeMF8osH4NyAXS3aIVtZhrUNQVLEsTb9VwT7TvVd6I3kTlcu0s0b3YsyveSosdSseXP2I4muMpgsmGjhe55bNo%2BeEO%2B2lGxuBNlSdg2j5VCVWK40RvqoLqMpqANmjyB6cBQtNwmUIx0NyRVPh7qZXGqQmcXUkfOSJ3BN%2FbDLOTSPwWHt5Z7iBRx4OYXN25FmQtra5wIHaeEAUjZR4RF%2BAwL%2Bh4WcS09j9VG5TcwmWG%2BusFqlkhuEfoy38H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h03XDh9gFfX%2FvXqv6KL%2B8hGX7%2FNbmshX9RKF%2BMsUDI1xSF%2BY6OtaUBp4z%2B7Onc5rXNj0BIiQ0DsZY%2Fxg8E5hT8QVvv5OTYPErxIzjMbzXgX--fFiRPuX3mRcWJKW%2B--C4SVF1SDTXHauxFne6Wgig%3D%3D; path=/; secure; httponly; SameSite=Lax"
│         ],
│         "Strict-Transport-Security": [
│             "max-age=63072000; includeSubDomains"
│         ],
│         "X-Content-Type-Options": [
│             "nosniff"
│         ],
│         "X-Download-Options": [
│             "noopen"
│         ],
│         "X-Envoy-Upstream-Service-Time": [
│             "303"
│         ],
│         "X-Permitted-Cross-Domain-Policies": [
│             "none"
│         ],
│         "X-Request-Id": [
│             "6ba46ee2-1d7d-4a89-83b6-e20ef9f2f52e"
│         ],
│         "X-Runtime": [
│             "0.299083"
│         ],
│         "X-Xss-Protection": [
│             "0"
│         ]
│     },
│     "Result": {
│         "errors": {
│             "configuration": [
│                 "can't be blank"
│             ]
│         }
│     },
│     "RawResult": null
│ }

Database is created successfully but in the terraform state, gets tainted and next run will destroyed and recreated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Cloud Databases Issues related to Cloud Databases
Projects
None yet
Development

No branches or pull requests

2 participants