-
Notifications
You must be signed in to change notification settings - Fork 2
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
database creation stuck in configuration phase #504
Comments
@hFti I suggest you create a support case with IBM Cloud for this. This has nothing to do with our module. It also looks like you might have escaped the apply early (maybe you hit ctrl + c) ? This is never a good idea in terraform. You should always allow terraform to timeout itself or it can corrupt your state file. |
I tried and the terraform timed out after 1h10mins
Applying new configuration also hangs at 60%. Here are the terraform scripts I used to test: https://github.com/lionelmace/ibmcloud-utils/tree/master/terraform/icd-postgres-modules @hFti I agree with @ocofaigh . Please create a support case. |
@ocofaigh The example in the module is incorrect. It should be fixed to reflect the following changes
The following example does work |
@lionelmace yea there was an ICD backend schema bug. The old schema allowed |
@lionelmace Actually it was fixed already in #514 |
Affected modules
terraform-ibm-modules/icd-postgresql/ibm
version 3.17.9
Terraform CLI and Terraform provider versions
Terraform output
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%
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
The text was updated successfully, but these errors were encountered: