Open luckeyca opened 1 year ago
Just to add, I was able to create refreshable clone from oci console. so the error message is definitely wrong and misleading
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.
We are tracking this bug internally with ETA of 13th May 2023.
Community Note
Terraform Version and Provider Version
Terraform v1.4.4 on linux_amd64
Affected Resource(s)
oci_database_autonomous_database
Terraform Configuration Files
Debug Output
module.clone_adb.oci_database_autonomous_database.primary[0]: Creating... 2023-04-05T09:33:09.893-0400 [INFO] Starting apply for module.clone_adb.oci_database_autonomous_database.primary[0] 2023-04-05T09:33:09.895-0400 [DEBUG] module.clone_adb.oci_database_autonomous_database.primary[0]: applying the planned Create change 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "key_history_entry" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "apex_details" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "local_standby_db" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "peer_db_ids" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "connection_strings" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "standby_db" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "system_tags" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "connection_urls" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "supported_regions_to_clone_to" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "standby_whitelisted_ips" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "available_upgrade_versions" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "long_term_backup_schedule" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "backup_config" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "scheduled_operations" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "remote_disaster_recovery_configuration" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:09.897-0400 [INFO] provider.terraform-provider-oci_v4.113.0: 2023/04/05 09:33:09 [DEBUG] setting computed for "provisionable_cpus" from ComputedKeys: timestamp=2023-04-05T09:33:09.897-0400 2023-04-05T09:33:10.947-0400 [DEBUG] provider.terraform-provider-oci_v4.113.0: DEBUG 2023/04/05 09:33:10.947446 EC.ShouldRetryOperation, no EC or in the past, returning false: endOfWindowTime =, now = 2023-04-05 09:33:10.947393587 -0400 EDT m=+482.824488031
2023-04-05T09:33:10.947-0400 [DEBUG] provider.terraform-provider-oci_v4.113.0: DEBUG 2023/04/05 09:33:10.947524 EC.ShouldRetryOperation, no EC or in the past, returning false: endOfWindowTime = , now = 2023-04-05 09:33:10.947514679 -0400 EDT m=+482.824609150
2023-04-05T09:33:10.961-0400 [ERROR] vertex "module.clone_adb.oci_database_autonomous_database.primary[0]" error: 400-InvalidParameter, You are attempting to use a feature that's not currently enabled for this tenancy.
Suggestion: Please update the parameter(s) in the Terraform config as per error message You are attempting to use a feature that's not currently enabled for this tenancy.
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/database_autonomous_database
API Reference: https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/CreateAutonomousDatabase
Request Target: POST https://database.ca-toronto-1.oraclecloud.com/20160918/autonomousDatabases
Provider version: 4.113.0, released on 2023-03-22. This provider is 2 Update(s) behind to current.
Service: Database Autonomous
Operation Name: CreateAutonomousDatabase
OPC request ID: c040766bd6849b386d7b46b11a96d8ad/C14C010CE91CC648E4C62444B93A18D4/0C1ADD8A161F15462C792FB948F3FDB8
β·
β Error: 400-InvalidParameter, You are attempting to use a feature that's not currently enabled for this tenancy.
β Suggestion: Please update the parameter(s) in the Terraform config as per error message You are attempting to use a feature that's not currently enabled for this tenancy.
β Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/database_autonomous_database
β API Reference: https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/CreateAutonomousDatabase
β Request Target: POST https://database.ca-toronto-1.oraclecloud.com/20160918/autonomousDatabases
β Provider version: 4.113.0, released on 2023-03-22. This provider is 2 Update(s) behind to current.
β Service: Database Autonomous
β Operation Name: CreateAutonomousDatabase
β OPC request ID: c040766bd6849b386d7b46b11a96d8ad/C14C010CE91CC648E4C62444B93A18D4/0C1ADD8A161F15462C792FB948F3FDB8
β
β
β with module.clone_adb.oci_database_autonomous_database.primary[0],
β on ../../../main.tf line 20, in resource "oci_database_autonomous_database" "primary":
β 20: resource "oci_database_autonomous_database" "primary" {
β
β΅
2023-04-05T09:33:10.974-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-04-05T09:33:10.987-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/oracle/oci/4.113.0/linux_amd64/terraform-provider-oci_v4.113.0 pid=369
2023-04-05T09:33:10.987-0400 [DEBUG] provider: plugin exited
Panic Output
Expected Behavior
a refreshable clone should be created
Actual Behavior
error:
β Error: 400-InvalidParameter, You are attempting to use a feature that's not currently enabled for this tenancy. β Suggestion: Please update the parameter(s) in the Terraform config as per error message You are attempting to use a feature that's not currently enabled for this tenancy.
The debug shows the same message as without the debug on.
Steps to Reproduce
terraform apply
Important Factoids
References