Skip to content

database creation stuck in configuration phase #504

@hFti

Description

@hFti

Affected modules

terraform-ibm-modules/icd-postgresql/ibm
version 3.17.9

Terraform CLI and Terraform provider versions

  • Terraform version: 1.5.7
  • Provider version: 1.68.1

Terraform output

timeout2

Expected behavior

databse created with conf in place

Actual behavior

configuration is stuck , terraform timed out and the database in console is always at 60%
stuck_3

Steps to reproduce (including links and screen captures)

use module with configuration variable set to the map below
`module "postgresql_db" {
source = "terraform-ibm-modules/icd-postgresql/ibm"
version = "3.17.9"
resource_group_id = ibm_resource_group.resource_group.id
name = "${var.env}-database-postgres"
region = var.region
pg_version = var.pg_version
admin_pass = var.admin_pass
users = var.users
kms_encryption_enabled = true
kms_key_crn = module.key_protect_all_inclusive.keys["icd-key"].crn
existing_kms_instance_guid = module.key_protect_all_inclusive.kms_guid
resource_tags = var.resource_tags
service_credential_names = var.service_credential_names
access_tags = var.access_tags
member_host_flavor = "b3c.4x16.encrypted"
auto_scaling = var.auto_scaling

configuration = {
shared_buffers = 32000
max_connections = 250
max_locks_per_transaction = 64
max_prepared_transactions = 0
synchronous_commit = "local"
effective_io_concurrency = 12
deadlock_timeout = 10000
log_connections = "off"
log_disconnections = "off"
log_min_duration_statement = 100
tcp_keepalives_idle = 200
tcp_keepalives_interval = 50
tcp_keepalives_count = 6
archive_timeout = 1000
wal_level = "hot_standby"
max_replication_slots = 10
max_wal_senders = 20
}
cbr_rules = [
{
description = "${var.env}-postgres access only from vpc"
enforcement_mode = "enabled"
account_id = data.ibm_iam_account_settings.iam_account_settings.account_id
rule_contexts = [{
attributes = [
{
"name" : "endpointType",
"value" : "private"
},
{
name = "networkZoneId"
value = module.cbr_zone.zone_id
}]
}]
}
]
}`
run terraform apply

Anything else

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions