From 2d39c714c1b9f944144989a1a1163a9efc3207b5 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Sun, 23 Feb 2025 19:12:53 +0530 Subject: [PATCH 01/21] test-coverage for mongodb --- README.md | 12 +- .../catalogValidationValues.json.template | 6 + examples/backup-restore/main.tf | 6 +- examples/backup-restore/outputs.tf | 8 +- examples/backup-restore/variables.tf | 3 +- examples/basic/main.tf | 47 +- examples/basic/outputs.tf | 19 +- examples/basic/variables.tf | 17 + examples/basic/version.tf | 10 + examples/complete/main.tf | 153 +- examples/complete/outputs.tf | 5 + examples/complete/variables.tf | 54 + examples/fscloud/main.tf | 12 +- examples/fscloud/variables.tf | 35 + examples/fscloud/version.tf | 2 +- ibm_catalog.json | 15 + logs.txt | 3743 +++++++++++++++++ main.tf | 31 +- modules/fscloud/README.md | 7 +- modules/fscloud/main.tf | 10 +- modules/fscloud/variables.tf | 18 +- solutions/standard/DA-types.md | 42 + solutions/standard/main.tf | 107 +- solutions/standard/variables.tf | 51 +- tests/other_test.go | 77 +- tests/pr_test.go | 249 +- variables.tf | 24 +- 27 files changed, 4436 insertions(+), 327 deletions(-) create mode 100644 examples/backup-restore/catalogValidationValues.json.template create mode 100644 logs.txt diff --git a/README.md b/README.md index 4df2ed84..21c6685a 100644 --- a/README.md +++ b/README.md @@ -90,19 +90,19 @@ You need the following permissions to run this module. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | -| [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | -| [disk\_mb](#input\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | -| [endpoints](#input\_endpoints) | Specify whether you want to enable the public, private, or both service endpoints. Supported values are 'public', 'private', or 'public-and-private'. | `string` | `"private"` | no | -| [instance\_name](#input\_instance\_name) | The name to give the MongoDB instance. | `string` | n/a | yes | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | +| [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | +| [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `5120` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | -| [members](#input\_members) | Allocated number of members | `number` | `3` | no | -| [memory\_mb](#input\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no | +| [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no | +| [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no | | [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no | +| [name](#input\_name) | The name to give the MongoDB instance. | `string` | n/a | yes | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no | | [region](#input\_region) | The region where you want to deploy your instance. | `string` | `"us-south"` | no | | [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the MongoDB instance will be created. | `string` | n/a | yes | | [service\_credential\_names](#input\_service\_credential\_names) | Map of name, role for service credentials that you want to create for the database | `map(string)` | `{}` | no | +| [service\_endpoints](#input\_service\_endpoints) | The type of endpoint of the database instance. Possible values: `public`, `private`, `public-and-private`. | `string` | `"public"` | no | | [skip\_iam\_authorization\_policy](#input\_skip\_iam\_authorization\_policy) | Set to true to skip the creation of IAM authorization policies that permits all Databases for MongoDB instances in the given resource group 'Reader' access to the Key Protect or Hyper Protect Crypto Services key that was provided in the `kms_key_crn` and `backup_encryption_key_crn` inputs. This policy is required in order to enable KMS encryption, so only skip creation if there is one already present in your account. No policy is created if `use_ibm_owned_encryption_key` is true. | `bool` | `false` | no | | [tags](#input\_tags) | Optional list of tags to be added to the MongoDB instance. | `list(any)` | `[]` | no | | [use\_default\_backup\_encryption\_key](#input\_use\_default\_backup\_encryption\_key) | When `use_ibm_owned_encryption_key` is set to false, backups will be encrypted with either the key specified in `kms_key_crn`, or in `backup_encryption_key_crn` if a value is passed. If you do not want to use your own key for backups encryption, you can set this to `true` to use the IBM Cloud Databases default encryption for backups. Alternatively set `use_ibm_owned_encryption_key` to true to use the default encryption for both backups and deployment data. | `bool` | `false` | no | diff --git a/examples/backup-restore/catalogValidationValues.json.template b/examples/backup-restore/catalogValidationValues.json.template new file mode 100644 index 00000000..fec7904a --- /dev/null +++ b/examples/backup-restore/catalogValidationValues.json.template @@ -0,0 +1,6 @@ +{ + "ibmcloud_api_key": $VALIDATION_APIKEY, + "region": "us-south", + "resource_tags": $TAGS, + "prefix": $PREFIX +} \ No newline at end of file diff --git a/examples/backup-restore/main.tf b/examples/backup-restore/main.tf index ce65baf8..f5e0bea9 100644 --- a/examples/backup-restore/main.tf +++ b/examples/backup-restore/main.tf @@ -11,14 +11,14 @@ module "resource_group" { } data "ibm_database_backups" "backup_database" { - deployment_id = var.mongo_db_crn + deployment_id = var.existing_database_crn } # New mongo db instance pointing to the backup instance -module "restored_mongo_db" { +module "restored_icd_mongodb" { source = "../.." resource_group_id = module.resource_group.resource_group_id - instance_name = "${var.prefix}-mongodb-restored" + name = "${var.prefix}-mongodb-restored" region = var.region mongodb_version = var.mongodb_version access_tags = var.access_tags diff --git a/examples/backup-restore/outputs.tf b/examples/backup-restore/outputs.tf index 0bead878..62782864 100644 --- a/examples/backup-restore/outputs.tf +++ b/examples/backup-restore/outputs.tf @@ -2,12 +2,12 @@ # Outputs ############################################################################## -output "restored_mongo_db_id" { +output "restored_icd_mongodb_id" { description = "Restored MongoDB instance id" - value = module.restored_mongo_db.id + value = module.restored_icd_mongodb.id } -output "restored_mongo_db_version" { +output "restored_icd_mongodb_version" { description = "Restored MongoDB instance version" - value = module.restored_mongo_db.version + value = module.restored_icd_mongodb.version } diff --git a/examples/backup-restore/variables.tf b/examples/backup-restore/variables.tf index 7274dec7..e0a27c5e 100644 --- a/examples/backup-restore/variables.tf +++ b/examples/backup-restore/variables.tf @@ -40,7 +40,8 @@ variable "resource_tags" { default = [] } -variable "mongo_db_crn" { +variable "existing_database_crn" { type = string description = "The existing CRN of a mongoDB instance to fetch the latest backup crn." + default = null } diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 035c99bb..78483b15 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -11,15 +11,44 @@ module "resource_group" { } ############################################################################## -# ICD mongodb database +# MongoDB Instance ############################################################################## -module "mongodb" { - source = "../.." - resource_group_id = module.resource_group.resource_group_id - instance_name = "${var.prefix}-mongodb" - region = var.region - mongodb_version = var.mongodb_version - access_tags = var.access_tags - tags = var.resource_tags +module "database" { + source = "../.." + resource_group_id = module.resource_group.resource_group_id + name = "${var.prefix}-data-store" + region = var.region + mongodb_version = var.mongodb_version + access_tags = var.access_tags + tags = var.resource_tags + service_endpoints = var.service_endpoints + member_host_flavor = var.member_host_flavor + service_credential_names = { + "mongodb_admin" : "Administrator", + "mongodb_operator" : "Operator", + "mongodb_viewer" : "Viewer", + "mongodb_editor" : "Editor", + } +} + +# wait 60 secs to allow IAM credential access to kick in before configuring instance +# without the wait, you can intermittently get "Error 401 (Unauthorized)" +resource "time_sleep" "wait" { + depends_on = [module.database] + create_duration = "60s" +} + +resource "mongodb_index" "test" { + depends_on = [time_sleep.wait] + name = "terraform-test" + number_of_shards = 1 + number_of_replicas = 1 + force_destroy = true +} + +resource "mongodb_cluster_settings" "global" { + depends_on = [time_sleep.wait] + cluster_max_shards_per_node = 10 + action_auto_create_index = "my-index-000001,index10,-index1*,+ind*" } diff --git a/examples/basic/outputs.tf b/examples/basic/outputs.tf index 7807711a..234d6c61 100644 --- a/examples/basic/outputs.tf +++ b/examples/basic/outputs.tf @@ -2,32 +2,37 @@ # Outputs ############################################################################## output "id" { - description = "Mongodb instance id" - value = module.mongodb.id + description = "Database instance id" + value = module.database.id +} + +output "mongodb_crn" { + description = "Elasticsearch CRN" + value = module.database.crn } output "version" { description = "Mongodb instance version" - value = module.mongodb.version + value = module.database.version } output "adminuser" { description = "Database admin user name" - value = module.mongodb.adminuser + value = module.database.adminuser } output "hostname" { description = "Database connection hostname" - value = module.mongodb.hostname + value = module.database.hostname } output "port" { description = "Database connection port" - value = module.mongodb.port + value = module.database.port } output "certificate_base64" { description = "Database connection certificate" - value = module.mongodb.certificate_base64 + value = module.database.certificate_base64 sensitive = true } diff --git a/examples/basic/variables.tf b/examples/basic/variables.tf index 692e3603..9990ec33 100644 --- a/examples/basic/variables.tf +++ b/examples/basic/variables.tf @@ -39,3 +39,20 @@ variable "resource_tags" { description = "Optional list of tags to be added to created resources" default = [] } + +variable "service_endpoints" { + type = string + description = "The type of endpoint of the database instance. Possible values: `public`, `private`, `public-and-private`." + default = "public" + + validation { + condition = can(regex("public|public-and-private|private", var.service_endpoints)) + error_message = "Valid values for service_endpoints are 'public', 'public-and-private', and 'private'" + } +} +variable "member_host_flavor" { + type = string + description = "The host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)." + default = "multitenant" + # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. +} diff --git a/examples/basic/version.tf b/examples/basic/version.tf index bd949ed6..fc2e6fe5 100644 --- a/examples/basic/version.tf +++ b/examples/basic/version.tf @@ -6,5 +6,15 @@ terraform { source = "IBM-Cloud/ibm" version = "1.70.0" } + # The mongodb provider is not actually required by the module itself, just this example, so OK to use ">=" here instead of locking into a version + mongodb = { + source = "phillbaker/mongodb" + version = ">= 2.0.7" + } + # The time provider is not actually required by the module itself, just this example, so OK to use ">=" here instead of locking into a version + time = { + source = "hashicorp/time" + version = ">= 0.9.1" + } } } diff --git a/examples/complete/main.tf b/examples/complete/main.tf index c16a9132..bebdb482 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -1,30 +1,27 @@ ############################################################################## -# Resource Group +# Locals ############################################################################## -module "resource_group" { - source = "terraform-ibm-modules/resource-group/ibm" - version = "1.1.6" - # if an existing resource group is not set (null) create a new one using prefix - resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null - existing_resource_group_name = var.resource_group +locals { + sm_guid = var.existing_sm_instance_guid == null ? module.secrets_manager[0].secrets_manager_guid : var.existing_sm_instance_guid + sm_region = var.existing_sm_instance_region == null ? var.region : var.existing_sm_instance_region + service_credential_names = { + "es_admin" : "Administrator", + "es_operator" : "Operator", + "es_viewer" : "Viewer", + "es_editor" : "Editor", + } } ############################################################################## -# VPC +# Resource Group ############################################################################## -resource "ibm_is_vpc" "example_vpc" { - name = "${var.prefix}-vpc" - resource_group = module.resource_group.resource_group_id - tags = var.resource_tags -} -resource "ibm_is_subnet" "testacc_subnet" { - name = "${var.prefix}-subnet" - vpc = ibm_is_vpc.example_vpc.id - zone = "${var.region}-1" - total_ipv4_address_count = 256 - resource_group = module.resource_group.resource_group_id +module "resource_group" { + source = "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6" + # if an existing resource group is not set (null) create a new one using prefix + resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null + existing_resource_group_name = var.resource_group } ############################################################################## @@ -40,8 +37,8 @@ module "key_protect_all_inclusive" { source = "terraform-ibm-modules/kms-all-inclusive/ibm" version = "4.19.7" resource_group_id = module.resource_group.resource_group_id - # Note: Database instance and Key Protect must be created in the same region when using BYOK - # See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok + # Only us-south, us-east and eu-de backup encryption keys are supported. See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok for details. + # Note: Database instance and Key Protect must be created on the same region. region = var.region key_protect_instance_name = "${var.prefix}-kp" resource_tags = var.resource_tags @@ -63,69 +60,83 @@ module "key_protect_all_inclusive" { } ############################################################################## -# Get Cloud Account ID -############################################################################## - -data "ibm_iam_account_settings" "iam_account_settings" { -} - -############################################################################## -# Create CBR Zone +# MongoDB ############################################################################## -module "cbr_zone" { - source = "terraform-ibm-modules/cbr/ibm//modules/cbr-zone-module" - version = "1.29.0" - name = "${var.prefix}-VPC-network-zone" - zone_description = "CBR Network zone containing VPC" - account_id = data.ibm_iam_account_settings.iam_account_settings.account_id - addresses = [{ - type = "vpc", # to bind a specific vpc to the zone - value = ibm_is_vpc.example_vpc.crn, - }] -} -############################################################################## -# ICD MongoDB instance -############################################################################## - -module "mongodb" { +module "icd_mongodb" { source = "../.." resource_group_id = module.resource_group.resource_group_id + name = "${var.prefix}-mongodb" mongodb_version = var.mongodb_version - instance_name = "${var.prefix}-mongodb" admin_pass = var.admin_pass users = var.users region = var.region + plan = var.plan access_tags = var.access_tags tags = var.resource_tags + auto_scaling = var.auto_scaling # Example of how to use different KMS keys for data and backups use_ibm_owned_encryption_key = false use_same_kms_key_for_backups = false kms_key_crn = module.key_protect_all_inclusive.keys["icd.${local.data_key_name}"].crn backup_encryption_key_crn = module.key_protect_all_inclusive.keys["icd.${local.backups_key_name}"].crn - service_credential_names = { - "mongodb_admin" : "Administrator", - "mongodb_operator" : "Operator", - "mongodb_viewer" : "Viewer", - "mongodb_editor" : "Editor", - } - member_host_flavor = "multitenant" - cbr_rules = [ - { - description = "${var.prefix}-mongodb 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 - }] - }] - } - ] + service_credential_names = local.service_credential_names + member_host_flavor = "multitenant" + member_memory_mb = 4096 +} + +############################################################################## +## Secrets Manager layer +############################################################################## + +# Create Secrets Manager Instance (if not using existing one) +module "secrets_manager" { + count = var.existing_sm_instance_guid == null ? 1 : 0 + source = "terraform-ibm-modules/secrets-manager/ibm" + version = "1.23.6" + resource_group_id = module.resource_group.resource_group_id + region = var.region + secrets_manager_name = "${var.prefix}-secrets-manager" + sm_service_plan = "trial" + allowed_network = "public-and-private" + sm_tags = var.resource_tags +} + +# Add a Secrets Group to the secret manager instance +module "secrets_manager_secrets_group" { + source = "terraform-ibm-modules/secrets-manager-secret-group/ibm" + version = "1.2.2" + region = local.sm_region + secrets_manager_guid = local.sm_guid + #tfsec:ignore:general-secrets-no-plaintext-exposure + secret_group_name = "${var.prefix}-es-secrets" + secret_group_description = "service secret-group" #tfsec:ignore:general-secrets-no-plaintext-exposure +} + +# Add service credentials to secret manager as a username/password secret type in the created secret group +module "secrets_manager_service_credentials_user_pass" { + source = "terraform-ibm-modules/secrets-manager-secret/ibm" + version = "1.6.0" + for_each = local.service_credential_names + region = local.sm_region + secrets_manager_guid = local.sm_guid + secret_group_id = module.secrets_manager_secrets_group.secret_group_id + secret_name = "${var.prefix}-${each.key}-credentials" + secret_description = "MongoDB Service Credentials for ${each.key}" + secret_username = module.icd_mongodb.service_credentials_object.credentials[each.key].username + secret_payload_password = module.icd_mongodb.service_credentials_object.credentials[each.key].password + secret_type = "username_password" #checkov:skip=CKV_SECRET_6 +} + +# Add MongoDB certificate to secret manager as a certificate secret type in the created secret group. +module "secrets_manager_service_credentials_cert" { + source = "terraform-ibm-modules/secrets-manager-secret/ibm" + version = "1.6.0" + region = local.sm_region + secrets_manager_guid = local.sm_guid + secret_group_id = module.secrets_manager_secrets_group.secret_group_id + secret_name = "${var.prefix}-es-cert" + secret_description = "MongoDB Service Credential Certificate" + imported_cert_certificate = base64decode(module.icd_mongodb.service_credentials_object.certificate) + secret_type = "imported_cert" #checkov:skip=CKV_SECRET_6 } diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index a74855f0..c887d4f4 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -17,6 +17,11 @@ output "guid" { value = module.mongodb.guid } +output "crn" { + description = "MongoDB instance crn" + value = module.icd_mongodb.crn +} + output "service_credentials_json" { description = "Service credentials json map" value = module.mongodb.service_credentials_json diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 6171e76e..db44117c 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -1,3 +1,4 @@ + variable "ibmcloud_api_key" { type = string description = "The IBM Cloud API Key" @@ -40,6 +41,24 @@ variable "mongodb_version" { default = null } +variable "plan" { + type = string + description = "The name of the service plan that you choose for your MongoDB instance" + default = "enterprise" +} + +variable "existing_sm_instance_guid" { + type = string + description = "Existing Secrets Manager GUID. If not provided an new instance will be provisioned" + default = null +} + +variable "existing_sm_instance_region" { + type = string + description = "Required if value is passed into var.existing_sm_instance_guid" + default = null +} + variable "admin_pass" { type = string default = null @@ -58,3 +77,38 @@ variable "users" { sensitive = true description = "A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters." } + +variable "auto_scaling" { + type = object({ + disk = object({ + capacity_enabled = optional(bool) + free_space_less_than_percent = optional(number) + io_above_percent = optional(number) + io_enabled = optional(bool) + io_over_period = optional(string) + rate_increase_percent = optional(number) + rate_limit_mb_per_member = optional(number) + rate_period_seconds = optional(number) + rate_units = optional(string) + }) + memory = object({ + io_above_percent = optional(number) + io_enabled = optional(bool) + io_over_period = optional(string) + rate_increase_percent = optional(number) + rate_limit_mb_per_member = optional(number) + rate_period_seconds = optional(number) + rate_units = optional(string) + }) + }) + description = "(Optional) Configure rules to allow your database to automatically increase its resources. Single block of autoscaling is allowed at once." + default = { + disk = { + capacity_enabled : true, + io_enabled : true + } + memory = { + io_enabled : true, + } + } +} diff --git a/examples/fscloud/main.tf b/examples/fscloud/main.tf index d1e6814e..153cdafc 100644 --- a/examples/fscloud/main.tf +++ b/examples/fscloud/main.tf @@ -56,7 +56,7 @@ module "cbr_zone" { module "mongodb" { source = "../../modules/fscloud" resource_group_id = module.resource_group.resource_group_id - instance_name = "${var.prefix}-mongodb" + name = "${var.prefix}-mongodb" region = var.region tags = var.resource_tags access_tags = var.access_tags @@ -70,15 +70,7 @@ module "mongodb" { "mongodb_viewer" : "Viewer", "mongodb_editor" : "Editor", } - auto_scaling = { - disk = { - capacity_enabled : true, - io_enabled : true - } - memory = { - io_enabled : true, - } - } + auto_scaling = var.auto_scaling member_host_flavor = "b3c.4x16.encrypted" cbr_rules = [ { diff --git a/examples/fscloud/variables.tf b/examples/fscloud/variables.tf index 61edf7d9..43058331 100644 --- a/examples/fscloud/variables.tf +++ b/examples/fscloud/variables.tf @@ -57,3 +57,38 @@ variable "backup_encryption_key_crn" { default = null # Validation happens in the root module } + +variable "auto_scaling" { + type = object({ + disk = object({ + capacity_enabled = optional(bool) + free_space_less_than_percent = optional(number) + io_above_percent = optional(number) + io_enabled = optional(bool) + io_over_period = optional(string) + rate_increase_percent = optional(number) + rate_limit_mb_per_member = optional(number) + rate_period_seconds = optional(number) + rate_units = optional(string) + }) + memory = object({ + io_above_percent = optional(number) + io_enabled = optional(bool) + io_over_period = optional(string) + rate_increase_percent = optional(number) + rate_limit_mb_per_member = optional(number) + rate_period_seconds = optional(number) + rate_units = optional(string) + }) + }) + description = "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://cloud.ibm.com/docs/databases-for-elasticsearch?topic=databases-for-elasticsearch-autoscaling&interface=cli#autoscaling-considerations in the IBM Cloud Docs." + default = { + disk = { + capacity_enabled : true, + io_enabled : true + } + memory = { + io_enabled : true, + } + } +} diff --git a/examples/fscloud/version.tf b/examples/fscloud/version.tf index 05dee1cd..b4448636 100644 --- a/examples/fscloud/version.tf +++ b/examples/fscloud/version.tf @@ -4,7 +4,7 @@ terraform { # Use latest version of provider in non-basic examples to verify latest version works with module ibm = { source = "IBM-Cloud/ibm" - version = ">=1.70.0, <2.0.0" + version = ">=1.70.0" } } } diff --git a/ibm_catalog.json b/ibm_catalog.json index 8902ad2d..09d18a3f 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -215,12 +215,27 @@ { "key": "member_host_flavor" }, + { + "key": "configuration" + }, { "key": "service_credential_names" }, { "key": "admin_pass" }, + { + "key": "admin_pass_sm_secret_group" + }, + { + "key": "admin_pass_sm_secret_name" + }, + { + "key": "existing_db_instance_crn" + }, + { + "key": "use_existing_admin_pass_sm_secret_group" + }, { "key": "users" }, diff --git a/logs.txt b/logs.txt new file mode 100644 index 00000000..e98e2930 --- /dev/null +++ b/logs.txt @@ -0,0 +1,3743 @@ +cd tests && go test -run '' -count=1 -v -timeout 600m +=== RUN TestRunCompleteExampleOtherVersion +=== PAUSE TestRunCompleteExampleOtherVersion +=== RUN TestPlanICDVersions +=== PAUSE TestPlanICDVersions +=== RUN TestRunRestoredDBExample +=== PAUSE TestRunRestoredDBExample +=== RUN TestRunStandardSolutionSchematics +=== PAUSE TestRunStandardSolutionSchematics +=== RUN TestRunStandardUpgradeSolution +=== PAUSE TestRunStandardUpgradeSolution +=== RUN TestRunExistingInstance +=== PAUSE TestRunExistingInstance +=== RUN TestRunStandardSolutionIBMKeys +=== PAUSE TestRunStandardSolutionIBMKeys +=== CONT TestRunCompleteExampleOtherVersion +=== CONT TestRunStandardUpgradeSolution +=== CONT TestRunStandardSolutionIBMKeys +=== CONT TestRunRestoredDBExample +=== CONT TestRunStandardSolutionSchematics +=== CONT TestRunExistingInstance +=== CONT TestPlanICDVersions +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongo-restored-tmpaok4122674307 +TestRunExistingInstance 2025-02-23T18:36:23+05:30 pr_test.go:156: Tempdir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/mongodb-t-ujp0he-l22ltm1542836640/terraform-ibm-icd-mongodb +TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace list] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace list] +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongodb-icd-key-zqz3wy1305121850 +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:582: START: Init / Apply / Consistency Check +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:661: START: Init / Apply +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:582: START: Init / Apply / Consistency Check +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:661: START: Init / Apply +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: * default +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: +TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace new mongodb-t-ujp0he] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace new mongodb-t-ujp0he] +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Created and switched to workspace "mongodb-t-ujp0he"! +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: You're now on a new, empty workspace. Workspaces isolate their state, +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: so if you run "terraform plan" Terraform will not see any existing state +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: for this configuration. +TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace show] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace show] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: mongodb-t-ujp0he +TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: - database in ../.. +TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for kms... +TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +=== RUN TestPlanICDVersions/7.0 +=== PAUSE TestPlanICDVersions/7.0 +=== RUN TestPlanICDVersions/6.0 +=== PAUSE TestPlanICDVersions/6.0 +=== CONT TestPlanICDVersions/7.0 +=== CONT TestPlanICDVersions/6.0 +TestRunExistingInstance 2025-02-23T18:36:25+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:36:25+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:25+05:30 logger.go:67: - kms in .terraform/modules/kms +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:26+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.existing_key_ring_keys... +TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: - restored_icd_mongodb in ../.. +TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for restored_icd_mongodb.backup_key_crn_parser... +2025/02/23 18:36:27 Region eu-de VPC count: 1 +2025/02/23 18:36:27 --- new best region is eu-de +2025/02/23 18:36:27 Region eu-de VPC count: 1 +2025/02/23 18:36:27 --- new best region is eu-de +TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module +TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... +TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:28+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... +TestRunRestoredDBExample 2025-02-23T18:36:28+05:30 logger.go:67: - restored_icd_mongodb.backup_key_crn_parser in .terraform/modules/restored_icd_mongodb.backup_key_crn_parser/modules/crn-parser +TestRunRestoredDBExample 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for restored_icd_mongodb.cbr_rule... +2025/02/23 18:36:28 Region eu-de VPC count: 1 +2025/02/23 18:36:28 --- new best region is eu-de +2025/02/23 18:36:29 Region us-south VPC count: 12 +2025/02/23 18:36:29 Best region was found!: eu-de +=== NAME TestRunStandardSolutionSchematics + tests.go:329: [SCHEMATICS] Random Workspace region chosen: us + schematics.go:136: [SCHEMATICS] Schematics API for region us: https://us.schematics.cloud.ibm.com +2025/02/23 18:36:30 Region us-south VPC count: 12 +2025/02/23 18:36:30 Best region was found!: eu-de +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongodb-complete-test-ede05r3823344689 +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:582: START: Init / Apply / Consistency Check +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:661: START: Init / Apply +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Initializing the backend... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Upgrading modules... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: - icd_mongodb in ../.. +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for icd_mongodb.backup_key_crn_parser... +TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: Initializing provider plugins... +TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... +2025/02/23 18:36:30 Region us-south VPC count: 12 +2025/02/23 18:36:30 Best region was found!: eu-de +TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... +TestRunStandardUpgradeSolution 2025-02-23T18:36:30+05:30 tests.go:341: PR Branch: test-coverage +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - restored_icd_mongodb.cbr_rule in .terraform/modules/restored_icd_mongodb.cbr_rule/modules/cbr-rule-module +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for restored_icd_mongodb.kms_key_crn_parser... +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - restored_icd_mongodb.kms_key_crn_parser in .terraform/modules/restored_icd_mongodb.kms_key_crn_parser/modules/crn-parser +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: Initializing provider plugins... +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, < 2.0.0"... +TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:31+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:31+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... +TestRunRestoredDBExample 2025-02-23T18:36:31+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunExistingInstance 2025-02-23T18:36:31+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... + tests.go:100: [SCHEMATICS] Creating Test Workspace +TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 tests.go:349: Base Repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git +TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 tests.go:350: Base Branch: main +TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 git.go:400: Remote name: upstream-ya055x +TestRunExistingInstance 2025-02-23T18:36:31+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunRestoredDBExample 2025-02-23T18:36:31+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 git.go:415: Fetch output: + [] +Commit Messages (main): +TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:382: Temporarily disabling UseTerraformWorkspace in Upgrade Test as temporary directories are used instead of workspaces +TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:403: TEMP PR DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331 +TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:415: TEMP UPGRADE BASE DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-wqj45p2116203492 +TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:438: Copied current code to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331 +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:32+05:30 logger.go:67: - icd_mongodb.backup_key_crn_parser in .terraform/modules/icd_mongodb.backup_key_crn_parser/modules/crn-parser +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:32+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for icd_mongodb.cbr_rule... +2025/02/23 18:36:32 Region us-south VPC count: 12 +2025/02/23 18:36:32 --- new best region is us-south +2025/02/23 18:36:32 Best region was found!: us-south +2025/02/23 18:36:32 Error getting least vpc region +TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform--f0zulz913650281 +TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform--2qbilr3162798947 +TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 tests.go:618: START: Init / Plan / Show w/Struct +TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 retry.go:91: terraform [init -upgrade=true] +TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 tests.go:618: START: Init / Plan / Show w/Struct +TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 git.go:491: Cloned base repo and branch with authentication +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:473: Init / Apply on Base repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:474: Init / Apply on Base branch: main +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:475: Init / Apply on Base branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-wqj45p2116203492/solutions/standard +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Initializing the backend... +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Upgrading modules... +TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.8 for kms... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:33+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... +TestRunExistingInstance 2025-02-23T18:36:34+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... +TestRunRestoredDBExample 2025-02-23T18:36:34+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:34+05:30 logger.go:67: - icd_mongodb.cbr_rule in .terraform/modules/icd_mongodb.cbr_rule/modules/cbr-rule-module +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:34+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for icd_mongodb.kms_key_crn_parser... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:35+05:30 logger.go:67: - icd_mongodb.kms_key_crn_parser in .terraform/modules/icd_mongodb.kms_key_crn_parser/modules/crn-parser +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for key_protect_all_inclusive... +TestRunStandardUpgradeSolution 2025-02-23T18:36:35+05:30 logger.go:67: - kms in .terraform/modules/kms +TestRunStandardUpgradeSolution 2025-02-23T18:36:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.existing_key_ring_keys... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.kms_keys... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... + tests.go:106: [SCHEMATICS] Workspace Created: mongodb-st-da-s6ixic (us-east.workspace.mongodb-st-da-s6ixic.bef18192) + schematics.go:233: [SCHEMATICS] Creating TAR file + schematics.go:239: [SCHEMATICS] Uploading TAR file +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:37+05:30 logger.go:67: - key_protect_all_inclusive in .terraform/modules/key_protect_all_inclusive +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:37+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for key_protect_all_inclusive.existing_key_ring_keys... +TestRunStandardUpgradeSolution 2025-02-23T18:36:38+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys +TestRunStandardUpgradeSolution 2025-02-23T18:36:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb in ../../modules/fscloud +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb in ../.. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb_instance_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb_instance_crn_parser in .terraform/modules/mongodb_instance_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:40+05:30 logger.go:67: - key_protect_all_inclusive.existing_key_ring_keys in .terraform/modules/key_protect_all_inclusive.existing_key_ring_keys +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:40+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for key_protect_all_inclusive.key_protect... +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ Error: Failed to query available provider packages +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ All modules should specify their required_providers so that external +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ command: +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  terraform providers +TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-23T18:36:41+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestRunExistingInstance 2025-02-23T18:36:41+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardUpgradeSolution 2025-02-23T18:36:41+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect +TestRunStandardUpgradeSolution 2025-02-23T18:36:41+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:42+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:42+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager_service_credentials... +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: selections it made above. Include this file in your version control repository +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: you run "terraform init" in the future. +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Terraform has been successfully initialized! +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67:  +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: should now work. +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: ╷ +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ Error: Value for undeclared variable +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │  +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ A variable named "mongo_db_crn" was assigned on the command line, but the +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ root module does not declare a variable of that name. To use this value, +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ add a "variable" block to the configuration. +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: ╵ +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Value for undeclared variable +│  +│ A variable named "mongo_db_crn" was assigned on the command line, but the +│ root module does not declare a variable of that name. To use this value, +│ add a "variable" block to the configuration. +╵} +=== NAME TestRunRestoredDBExample + tests.go:663: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:102 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001713908)} + Test: TestRunRestoredDBExample + Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Value for undeclared variable + │  + │ A variable named "mongo_db_crn" was assigned on the command line, but the + │ root module does not declare a variable of that name. To use this value, + │ add a "variable" block to the configuration. + ╵}) +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 tests.go:664: FINISHED: Init / Apply +TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:91: terraform [output -no-color -json] +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:196: START: Destroy +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: - key_protect_all_inclusive.key_protect in .terraform/modules/key_protect_all_inclusive.key_protect +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for key_protect_all_inclusive.key_protect.cbr_rule... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: - key_protect_all_inclusive.key_protect.cbr_rule in .terraform/modules/key_protect_all_inclusive.key_protect.cbr_rule/modules/cbr-rule-module +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for key_protect_all_inclusive.kms_key_rings... +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: ╷ +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ Error: Value for undeclared variable +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │  +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ A variable named "mongo_db_crn" was assigned on the command line, but the +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ root module does not declare a variable of that name. To use this value, +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ add a "variable" block to the configuration. +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: ╵ +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Value for undeclared variable +│  +│ A variable named "mongo_db_crn" was assigned on the command line, but the +│ root module does not declare a variable of that name. To use this value, +│ add a "variable" block to the configuration. +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:585 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:102 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Value for undeclared variable + │  + │ A variable named "mongo_db_crn" was assigned on the command line, but the + │ root module does not declare a variable of that name. To use this value, + │ add a "variable" block to the configuration. + ╵} + Test: TestRunRestoredDBExample +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Value for undeclared variable +│  +│ A variable named "mongo_db_crn" was assigned on the command line, but the +│ root module does not declare a variable of that name. To use this value, +│ add a "variable" block to the configuration. +╵} +TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:266: END: Destroy + other_test.go:103: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:103 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001713908)} + Test: TestRunRestoredDBExample + Messages: This should not have errored + other_test.go:104: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:104 + Error: Expected value not to be nil. + Test: TestRunRestoredDBExample + Messages: Expected some output +--- FAIL: TestRunRestoredDBExample (20.04s) +TestRunStandardUpgradeSolution 2025-02-23T18:36:44+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module +TestRunStandardUpgradeSolution 2025-02-23T18:36:44+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:44+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:44+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: - key_protect_all_inclusive.kms_key_rings in .terraform/modules/key_protect_all_inclusive.kms_key_rings +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for key_protect_all_inclusive.kms_keys... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: - key_protect_all_inclusive.kms_keys in .terraform/modules/key_protect_all_inclusive.kms_keys +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: Downloading https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6 for resource_group... +TestRunExistingInstance 2025-02-23T18:36:46+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Initializing the backend... +TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: - database in ../.. +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:46+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager... +TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings +TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.kms_keys... +TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys +TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... +TestPlanICDVersions/6.0 2025-02-23T18:36:47+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/6.0 2025-02-23T18:36:47+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:47+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials.secrets... +TestPlanICDVersions/7.0 2025-02-23T18:36:48+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/7.0 2025-02-23T18:36:48+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunExistingInstance 2025-02-23T18:36:49+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb in ../../modules/fscloud +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager in .terraform/modules/secrets_manager +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for secrets_manager.cbr_rule... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb in ../.. +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager.cbr_rule in .terraform/modules/secrets_manager.cbr_rule/modules/cbr-rule-module +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager.secrets in .terraform/modules/secrets_manager/modules/secrets +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager.secrets.secret_groups... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for sm_instance_crn_parser... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - sm_instance_crn_parser in .terraform/modules/sm_instance_crn_parser/modules/crn-parser +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: Initializing provider plugins... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... +TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module +TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... +TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunStandardUpgradeSolution 2025-02-23T18:36:52+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunStandardUpgradeSolution 2025-02-23T18:36:52+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.9 for secrets_manager_service_credentials... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:52+05:30 logger.go:67: - secrets_manager.secrets.secret_groups in .terraform/modules/secrets_manager.secrets.secret_groups +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:52+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager.secrets.secrets... +TestPlanICDVersions/6.0 2025-02-23T18:36:52+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:52+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... +TestPlanICDVersions/7.0 2025-02-23T18:36:53+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: Initializing provider plugins... +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager.secrets.secrets in .terraform/modules/secrets_manager.secrets.secrets +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_secrets_group... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_secrets_group in .terraform/modules/secrets_manager_secrets_group +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials_cert... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials_cert in .terraform/modules/secrets_manager_service_credentials_cert +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials_user_pass... +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials_user_pass in .terraform/modules/secrets_manager_service_credentials_user_pass +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: ╷ +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ Error: Failed to download module +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  on main.tf line 20: +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  20: module "resource_group" { +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ Could not download module "resource_group" (main.tf:20) source code from +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ error downloading +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ no source URL was returned +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: ╵ +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Failed to download module +│  +│  on main.tf line 20: +│  20: module "resource_group" { +│  +│ Could not download module "resource_group" (main.tf:20) source code from +│ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": +│ error downloading +│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': +│ no source URL was returned +╵} +=== NAME TestRunCompleteExampleOtherVersion + tests.go:663: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:49 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c060)} + Test: TestRunCompleteExampleOtherVersion + Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Failed to download module + │  + │  on main.tf line 20: + │  20: module "resource_group" { + │  + │ Could not download module "resource_group" (main.tf:20) source code from + │ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": + │ error downloading + │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': + │ no source URL was returned + ╵}) +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:664: FINISHED: Init / Apply +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:282: Skipping automatic Test Teardown + other_test.go:50: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:50 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c060)} + Test: TestRunCompleteExampleOtherVersion + Messages: This should not have errored + other_test.go:51: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:51 + Error: Expected value not to be nil. + Test: TestRunCompleteExampleOtherVersion + Messages: Expected some output +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:121: Running command terraform with args [output -no-color -json] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: {} + other_test.go:57: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:57 + Error: Received unexpected error: + output: 'port' was not found + output: 'hostname' was not found + Test: TestRunCompleteExampleOtherVersion + Messages: Some outputs not found or nil +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:196: START: Destroy +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=mongodb-complete-test-ede05r -var region=eu-de -var existing_sm_instance_region=us-south -var users=[{"name" = "testuser", "password" = "A16LIpfJgUXs8A4", "type" = "database"}] -var existing_sm_instance_guid=79c6d411-c18f-4670-b009-b0044a238667 -var admin_pass=A16LIpfJgUXs8A4 -var mongodb_version=7.0 -var resource_group=geretain-test-mongo -var resource_tags=[] -lock=false] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var prefix=mongodb-complete-test-ede05r -var region=eu-de -var existing_sm_instance_region=us-south -var users=[{"name" = "testuser", "password" = "A16LIpfJgUXs8A4", "type" = "database"}] -var existing_sm_instance_guid=79c6d411-c18f-4670-b009-b0044a238667 -var admin_pass=A16LIpfJgUXs8A4 -var mongodb_version=7.0 -var resource_group=geretain-test-mongo -var resource_tags=[] -lock=false] +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: ╷ +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ Error: Module not installed +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  on main.tf line 20: +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  20: module "resource_group" { +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ This module is not yet installed. Run "terraform init" to install all +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ modules required by this configuration. +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: ╵ +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Module not installed +│  +│  on main.tf line 20: +│  20: module "resource_group" { +│  +│ This module is not yet installed. Run "terraform init" to install all +│ modules required by this configuration. +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:121 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Module not installed + │  + │  on main.tf line 20: + │  20: module "resource_group" { + │  + │ This module is not yet installed. Run "terraform init" to install all + │ modules required by this configuration. + ╵} + Test: TestRunCompleteExampleOtherVersion +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Module not installed +│  +│  on main.tf line 20: +│  20: module "resource_group" { +│  +│ This module is not yet installed. Run "terraform init" to install all +│ modules required by this configuration. +╵} +TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:266: END: Destroy +TestRunStandardUpgradeSolution 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets +TestRunStandardUpgradeSolution 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... +--- FAIL: TestRunCompleteExampleOtherVersion (32.36s) +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:56+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:56+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... +TestRunExistingInstance 2025-02-23T18:36:57+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... +TestRunStandardUpgradeSolution 2025-02-23T18:36:57+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: selections it made above. Include this file in your version control repository +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: you run "terraform init" in the future. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Terraform has been successfully initialized! +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67:  +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: should now work. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] +TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] +TestRunStandardUpgradeSolution 2025-02-23T18:36:57+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.7.0 for secrets_manager_service_credentials.secrets... +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared local value +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  268: identifier = local.existing_redis_guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ A local value with the name "existing_redis_guid" has not been declared. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  360: target_resource_instance_id = module.mongodb.guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 7, in output "id": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  7: value = module.mongodb.id +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "id" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 12, in output "version": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  12: value = module.mongodb.version +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "version" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 17, in output "guid": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  17: value = module.mongodb.guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 22, in output "crn": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  22: value = module.mongodb.crn +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "crn" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 27, in output "cbr_rule_ids": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  27: value = module.mongodb.cbr_rule_ids +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "cbr_rule_ids" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 32, in output "service_credentials_json": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  32: value = module.mongodb.service_credentials_json +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "service_credentials_json" for a specific element of the list, or +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ across all elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 38, in output "service_credentials_object": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  38: value = module.mongodb.service_credentials_object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "service_credentials_object" for a specific element of the list, +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ or across all elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 44, in output "adminuser": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  44: value = module.mongodb.adminuser +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "adminuser" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared input variable +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared input variable +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} +=== NAME TestRunStandardSolutionIBMKeys + tests.go:663: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:237 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c1c8)} + Test: TestRunStandardSolutionIBMKeys + Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Reference to undeclared local value + │  + │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": + │  268: identifier = local.existing_redis_guid + │  + │ A local value with the name "existing_redis_guid" has not been declared. + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": + │  360: target_resource_instance_id = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 7, in output "id": + │  7: value = module.mongodb.id + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "id" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 12, in output "version": + │  12: value = module.mongodb.version + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "version" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 17, in output "guid": + │  17: value = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 22, in output "crn": + │  22: value = module.mongodb.crn + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "crn" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 27, in output "cbr_rule_ids": + │  27: value = module.mongodb.cbr_rule_ids + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "cbr_rule_ids" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 32, in output "service_credentials_json": + │  32: value = module.mongodb.service_credentials_json + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_json" for a specific element of the list, or + │ across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 38, in output "service_credentials_object": + │  38: value = module.mongodb.service_credentials_object + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_object" for a specific element of the list, + │ or across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 44, in output "adminuser": + │  44: value = module.mongodb.adminuser + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "adminuser" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵}) +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 tests.go:664: FINISHED: Init / Apply +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:91: terraform [output -no-color -json] +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 tests.go:196: START: Destroy +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] +TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets +TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: Initializing provider plugins... +TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... +TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... +TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Failed to query available provider packages +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ All modules should specify their required_providers so that external +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ command: +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  terraform providers +TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-23T18:37:00+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestRunExistingInstance 2025-02-23T18:37:00+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared local value +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  268: identifier = local.existing_redis_guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ A local value with the name "existing_redis_guid" has not been declared. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  360: target_resource_instance_id = module.mongodb.guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 7, in output "id": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  7: value = module.mongodb.id +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "id" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 12, in output "version": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  12: value = module.mongodb.version +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "version" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 17, in output "guid": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  17: value = module.mongodb.guid +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 22, in output "crn": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  22: value = module.mongodb.crn +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "crn" for a specific element of the list, or across all elements +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 27, in output "cbr_rule_ids": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  27: value = module.mongodb.cbr_rule_ids +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "cbr_rule_ids" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 32, in output "service_credentials_json": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  32: value = module.mongodb.service_credentials_json +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "service_credentials_json" for a specific element of the list, or +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ across all elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 38, in output "service_credentials_object": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  38: value = module.mongodb.service_credentials_object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "service_credentials_object" for a specific element of the list, +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ or across all elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 44, in output "adminuser": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  44: value = module.mongodb.adminuser +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "adminuser" for a specific element of the list, or across all +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared input variable +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared input variable +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:585 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:237 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Reference to undeclared local value + │  + │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": + │  268: identifier = local.existing_redis_guid + │  + │ A local value with the name "existing_redis_guid" has not been declared. + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": + │  360: target_resource_instance_id = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 7, in output "id": + │  7: value = module.mongodb.id + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "id" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 12, in output "version": + │  12: value = module.mongodb.version + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "version" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 17, in output "guid": + │  17: value = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 22, in output "crn": + │  22: value = module.mongodb.crn + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "crn" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 27, in output "cbr_rule_ids": + │  27: value = module.mongodb.cbr_rule_ids + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "cbr_rule_ids" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 32, in output "service_credentials_json": + │  32: value = module.mongodb.service_credentials_json + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_json" for a specific element of the list, or + │ across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 38, in output "service_credentials_object": + │  38: value = module.mongodb.service_credentials_object + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_object" for a specific element of the list, + │ or across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 44, in output "adminuser": + │  44: value = module.mongodb.adminuser + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "adminuser" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵} + Test: TestRunStandardSolutionIBMKeys +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} +TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 tests.go:266: END: Destroy + pr_test.go:238: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:238 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c1c8)} + Test: TestRunStandardSolutionIBMKeys + Messages: This should not have errored + pr_test.go:239: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:239 + Error: Expected value not to be nil. + Test: TestRunStandardSolutionIBMKeys + Messages: Expected some output +--- FAIL: TestRunStandardSolutionIBMKeys (38.40s) +TestRunStandardUpgradeSolution 2025-02-23T18:37:03+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... +TestRunExistingInstance 2025-02-23T18:37:05+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Initializing the backend... +TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: - database in ../.. +TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:37:06+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) +TestRunStandardUpgradeSolution 2025-02-23T18:37:06+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunStandardUpgradeSolution 2025-02-23T18:37:08+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunExistingInstance 2025-02-23T18:37:08+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-23T18:37:08+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... +TestRunExistingInstance 2025-02-23T18:37:08+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... +TestPlanICDVersions/6.0 2025-02-23T18:37:08+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/6.0 2025-02-23T18:37:08+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: selections it made above. Include this file in your version control repository +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: you run "terraform init" in the future. +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Terraform has been successfully initialized! +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: should now work. +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false] +TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false] +TestPlanICDVersions/7.0 2025-02-23T18:37:10+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/7.0 2025-02-23T18:37:10+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module +TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... +TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: Initializing provider plugins... +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... +TestPlanICDVersions/6.0 2025-02-23T18:37:13+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunExistingInstance 2025-02-23T18:37:14+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunStandardUpgradeSolution 2025-02-23T18:37:14+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Reading... +TestRunStandardUpgradeSolution 2025-02-23T18:37:15+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... +TestPlanICDVersions/7.0 2025-02-23T18:37:15+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-23T18:37:16+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] +TestRunExistingInstance 2025-02-23T18:37:16+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ Error: Failed to query available provider packages +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ All modules should specify their required_providers so that external +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ command: +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  terraform providers +TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-23T18:37:19+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestRunExistingInstance 2025-02-23T18:37:19+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Terraform used the selected providers to generate the following execution +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: <= read (data resources) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Terraform will perform the following actions: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # random_password.admin_password[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "random_password" "admin_password" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + bcrypt_hash = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + length = 32 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + lower = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_lower = 0 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_numeric = 1 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_special = 0 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_upper = 0 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + number = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + numeric = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + override_special = "-_" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + result = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + special = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + upper = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_at = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + default = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "mongodb-st-da-upg-wqj45p" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + payment_methods_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + quota_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + quota_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_linkages = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + state = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + teams_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_at = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key_rings" "key_ring" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + force_delete = false +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key" "key" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + force_delete = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_name = "mongodb-key" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + payload = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + registrations = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + standard_key = false +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key_policies" "root_key_policy" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + dual_auth_delete { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + creation_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + enabled = false +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + last_update_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + rotation { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + creation_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + enabled = true +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + interval_month = 3 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + last_update_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.data.ibm_database_connection.database_connection will be read during apply +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: # (config refers to values not yet known) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + amqps = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + analytics = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + bi_connector = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cli = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + deployment_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + emp = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "private" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + grpc = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + https = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mongodb = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mqtts = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mysql = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + ops_manager = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + postgres = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + rediss = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + secure = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + stomp_ssl = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + user_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + user_type = "database" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_database.mongodb will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_database" "mongodb" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminpassword = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminuser = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + backup_encryption_key_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + configuration_schema = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + deletion_protection = false +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + groups = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + guid = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_protect_key = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + location = "us-south" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "mongodb" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + plan = "standard" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + service = "databases-for-mongodb" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + service_endpoints = "private" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tags = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + auto_scaling (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + group { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + group_id = "member" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cpu { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_count = 0 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + disk { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_mb = 10240 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + host_flavor { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = "multitenant" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + members { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_count = 3 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + memory { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_mb = 4096 +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + timeouts { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create = "120m" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + delete = "15m" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + update = "120m" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_iam_authorization_policy" "kms_policy" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + description = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + roles = [ +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "Reader", +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: ] +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_instance_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_service_account = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_service_name = "databases-for-mongodb" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_instance_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_service_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + transaction_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "accountId" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "resource" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "resourceType" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = "key" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "serviceInstance" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "serviceName" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + subject_attributes (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_resource_tag" "mongodb_tag" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + account_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + replace = false +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tag_type = "access" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tags = [ +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "geretain-dev-1:permanent-test-tag-4", +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "geretain-dev:permanent-test-tag-1", +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: ] +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "time_sleep" "wait_for_authorization_policy" { +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create_duration = "30s" +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Plan: 9 to add, 0 to change, 0 to destroy. +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Changes to Outputs: +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminuser = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cbr_rule_ids = [] +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + certificate_base64 = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + guid = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + hostname = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + port = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: random_password.admin_password[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: random_password.admin_password[0]: Creation complete after 0s [id=none] +TestRunStandardUpgradeSolution 2025-02-23T18:37:22+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creating... +TestRunStandardUpgradeSolution 2025-02-23T18:37:22+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... +TestRunExistingInstance 2025-02-23T18:37:24+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Initializing the backend... +TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: - database in ../.. +TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-23T18:37:25+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 4s [id=c25adf4fc71a4118b4cfcc1c6bd066ed] +TestRunExistingInstance 2025-02-23T18:37:27+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:37:27+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... +TestRunStandardUpgradeSolution 2025-02-23T18:37:27+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creation complete after 6s [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-23T18:37:27+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creating... +TestPlanICDVersions/7.0 2025-02-23T18:37:29+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/7.0 2025-02-23T18:37:29+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module +TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... +TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunStandardUpgradeSolution 2025-02-23T18:37:32+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creation complete after 4s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:a39aeb99-9d56-40a4-a71e-f74412b9647f] +TestRunStandardUpgradeSolution 2025-02-23T18:37:32+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creating... +TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: Initializing provider plugins... +TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... +TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... +TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestPlanICDVersions/7.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [init -upgrade=true] +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Failed to download module +│  +│  on main.tf line 5: +│  5: module "resource_group" { +│  +│ Could not download module "resource_group" (main.tf:5) source code from +│ "git::https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d": +│ error downloading +│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d': +│ /usr/bin/git exited with 128: Cloning into +│ '.terraform/modules/resource_group'... +│ fatal: unable to access +│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group/': +│ Failed to connect to github.com port 443 after 15427 ms: Couldn't connect +│ to server +│ . +╵} +=== NAME TestPlanICDVersions/6.0 + tests.go:635: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:609 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001712120)} + Test: TestPlanICDVersions/6.0 + Messages: Failed to create plan: %!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Failed to download module + │  + │  on main.tf line 5: + │  5: module "resource_group" { + │  + │ Could not download module "resource_group" (main.tf:5) source code from + │ "git::https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d": + │ error downloading + │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d': + │ /usr/bin/git exited with 128: Cloning into + │ '.terraform/modules/resource_group'... + │ fatal: unable to access + │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group/': + │ Failed to connect to github.com port 443 after 15427 ms: Couldn't connect + │ to server + │ . + ╵}) +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [output -no-color -json] +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 tests.go:196: START: Destroy +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var mongodb_version=6.0 -var prefix=-f0zulz -var region=us-south -var resource_tags=[] -lock=false] +TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var mongodb_version=6.0 -var prefix=-f0zulz -var region=us-south -var resource_tags=[] -lock=false] +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: ╷ +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ Error: Module not installed +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  on main.tf line 5: +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  5: module "resource_group" { +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ This module is not yet installed. Run "terraform init" to install all +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ modules required by this configuration. +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: ╵ +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Module not installed +│  +│  on main.tf line 5: +│  5: module "resource_group" { +│  +│ This module is not yet installed. Run "terraform init" to install all +│ modules required by this configuration. +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:610 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Module not installed + │  + │  on main.tf line 5: + │  5: module "resource_group" { + │  + │ This module is not yet installed. Run "terraform init" to install all + │ modules required by this configuration. + ╵} + Test: TestPlanICDVersions/6.0 +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Module not installed +│  +│  on main.tf line 5: +│  5: module "resource_group" { +│  +│ This module is not yet installed. Run "terraform init" to install all +│ modules required by this configuration. +╵} +TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 tests.go:266: END: Destroy + other_test.go:73: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:73 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001712120)} + Test: TestPlanICDVersions/6.0 + Messages: This should not have errored + other_test.go:74: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:74 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected value not to be nil. + Test: TestPlanICDVersions/6.0 + Messages: Expected some output +TestRunExistingInstance 2025-02-23T18:37:36+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... +TestRunStandardUpgradeSolution 2025-02-23T18:37:37+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creation complete after 6s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:a39aeb99-9d56-40a4-a71e-f74412b9647f] +TestRunStandardUpgradeSolution 2025-02-23T18:37:37+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creating... +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ Error: Failed to query available provider packages +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ All modules should specify their required_providers so that external +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ command: +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  terraform providers +TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-23T18:37:39+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestRunExistingInstance 2025-02-23T18:37:39+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +TestRunStandardUpgradeSolution 2025-02-23T18:37:43+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creation complete after 6s [id=a6d41af2-0242-4e4e-b7c2-1d69bbd0608c] +TestRunStandardUpgradeSolution 2025-02-23T18:37:43+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creating... +=== NAME TestRunExistingInstance + pr_test.go:173: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:173 + Error: Should be true + Test: TestRunExistingInstance + Messages: Init and Apply of temp existing resource failed +TestRunExistingInstance 2025-02-23T18:37:44+05:30 pr_test.go:210: START: Destroy (existing resources) +TestRunExistingInstance 2025-02-23T18:37:44+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=mongodb-t-ujp0he -var region=us-south -var mongodb_version=7.0 -var service_endpoints=public-and-private -lock=false] +TestRunExistingInstance 2025-02-23T18:37:44+05:30 logger.go:67: Running command terraform with args [destroy -auto-approve -input=false -var prefix=mongodb-t-ujp0he -var region=us-south -var mongodb_version=7.0 -var service_endpoints=public-and-private -lock=false] +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ Error: Inconsistent dependency lock file +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ The following dependency selections recorded in the lock file are +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ inconsistent with the current configuration: +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ To make the initial dependency selections that will initialize the +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ dependency lock file, run: +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  terraform init +TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-23T18:37:45+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Inconsistent dependency lock file +│  +│ The following dependency selections recorded in the lock file are +│ inconsistent with the current configuration: +│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected +│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected +│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected +│  +│ To make the initial dependency selections that will initialize the +│ dependency lock file, run: +│  terraform init +╵} + destroy.go:11: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/gruntwork-io/terratest@v0.48.2/modules/terraform/destroy.go:11 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:211 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Inconsistent dependency lock file + │  + │ The following dependency selections recorded in the lock file are + │ inconsistent with the current configuration: + │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected + │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected + │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected + │  + │ To make the initial dependency selections that will initialize the + │ dependency lock file, run: + │  terraform init + ╵} + Test: TestRunExistingInstance +--- FAIL: TestRunExistingInstance (81.86s) +=== NAME TestRunStandardSolutionSchematics + schematics.go:557: [SCHEMATICS] ... still waiting for job TAR_WORKSPACE_UPLOAD to complete: 1 minutes + schematics.go:566: [SCHEMATICS] The status of job TAR_WORKSPACE_UPLOAD is: COMPLETED + tests.go:136: [SCHEMATICS] Updating Workspace Variablestore +TestPlanICDVersions/7.0 2025-02-23T18:37:48+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. + +TestPlanICDVersions/7.0 2025-02-23T18:37:48+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ +│ Error: Failed to query available provider packages +│  +│ Could not retrieve the list of available versions for provider +│ phillbaker/mongodb: provider registry registry.terraform.io does not have a +│ provider named registry.terraform.io/phillbaker/mongodb +│  +│ All modules should specify their required_providers so that external +│ consumers will get the correct providers when using a module. To see which +│ modules are currently depending on phillbaker/mongodb, run the following +│ command: +│  terraform providers +╵. Sleeping for 5s and will try again. +=== NAME TestPlanICDVersions/7.0 + tests.go:635: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:609 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected nil, but got: retry.MaxRetriesExceeded{Description:"terraform [init -upgrade=true]", MaxRetries:3} + Test: TestPlanICDVersions/7.0 + Messages: Failed to create plan: %!(EXTRA retry.MaxRetriesExceeded='terraform [init -upgrade=true]' unsuccessful after 3 retries) +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:91: terraform [output -no-color -json] +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:196: START: Destroy +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=-2qbilr -var region=us-south -var resource_tags=[] -var mongodb_version=7.0 -lock=false] +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var prefix=-2qbilr -var region=us-south -var resource_tags=[] -var mongodb_version=7.0 -lock=false] +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: ╷ +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ Error: Inconsistent dependency lock file +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ The following dependency selections recorded in the lock file are +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ inconsistent with the current configuration: +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ To make the initial dependency selections that will initialize the +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ dependency lock file, run: +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  terraform init +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: ╵ +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Inconsistent dependency lock file +│  +│ The following dependency selections recorded in the lock file are +│ inconsistent with the current configuration: +│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected +│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected +│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected +│  +│ To make the initial dependency selections that will initialize the +│ dependency lock file, run: +│  terraform init +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:610 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Inconsistent dependency lock file + │  + │ The following dependency selections recorded in the lock file are + │ inconsistent with the current configuration: + │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected + │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected + │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected + │  + │ To make the initial dependency selections that will initialize the + │ dependency lock file, run: + │  terraform init + ╵} + Test: TestPlanICDVersions/7.0 +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Inconsistent dependency lock file +│  +│ The following dependency selections recorded in the lock file are +│ inconsistent with the current configuration: +│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected +│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected +│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected +│  +│ To make the initial dependency selections that will initialize the +│ dependency lock file, run: +│  terraform init +╵} +TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:266: END: Destroy + other_test.go:73: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:73 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected nil, but got: retry.MaxRetriesExceeded{Description:"terraform [init -upgrade=true]", MaxRetries:3} + Test: TestPlanICDVersions/7.0 + Messages: This should not have errored + other_test.go:74: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:74 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 + Error: Expected value not to be nil. + Test: TestPlanICDVersions/7.0 + Messages: Expected some output +--- FAIL: TestPlanICDVersions (2.26s) + --- FAIL: TestPlanICDVersions/6.0 (69.64s) + --- FAIL: TestPlanICDVersions/7.0 (88.28s) +TestRunStandardUpgradeSolution 2025-02-23T18:37:53+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [10s elapsed] +=== NAME TestRunStandardSolutionSchematics + tests.go:152: [SCHEMATICS] Starting PLAN job ... +TestRunStandardUpgradeSolution 2025-02-23T18:38:03+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:38:13+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:38:13+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creation complete after 30s [id=2025-02-23T13:08:13Z] +TestRunStandardUpgradeSolution 2025-02-23T18:38:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creating... +TestRunStandardUpgradeSolution 2025-02-23T18:38:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [10s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:38:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:38:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:38:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [40s elapsed] + schematics.go:557: [SCHEMATICS] ... still waiting for job PLAN to complete: 1 minutes +TestRunStandardUpgradeSolution 2025-02-23T18:39:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [50s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:39:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:39:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:39:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:39:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m31s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:39:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m41s elapsed] + schematics.go:557: [SCHEMATICS] ... still waiting for job PLAN to complete: 2 minutes + schematics.go:566: [SCHEMATICS] The status of job PLAN is: FAILED + tests.go:155: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testschematic/tests.go:155 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testschematic/tests.go:27 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:113 + Error: Not equal: + expected: "COMPLETED" + actual : "FAILED" + + Diff: + --- Expected + +++ Actual + @@ -1 +1 @@ + -COMPLETED + +FAILED + Test: TestRunStandardSolutionSchematics + Messages: PLAN has failed with status FAILED - [ mongodb-st-da-s6ixic (us-east.workspace.mongodb-st-da-s6ixic.bef18192) ] + tests.go:513: =============== BEGIN PLAN JOB LOG (us-east.workspace.mongodb-st-da-s6ixic.bef18192) =============== + SCHEMATICS LOG URL: https://cloud.ibm.com/schematics/workspaces/us-east.workspace.mongodb-st-da-s6ixic.bef18192/log/5a6ed1c596a9f24d2826f780c8963cc3 + 2025/02/23 13:08:06 ----- New Workspace Action ----- + 2025/02/23 13:08:06 Request: activitId=5a6ed1c596a9f24d2826f780c8963cc3, account=abac0df06b644a9cabc6e44f55b3880e, owner=Aatreyee.Mukherjee@ibm.com, requestID=7fd15a70-01e0-468a-9c14-301ddd62ec1b + 2025/02/23 13:08:07 Related Activity: action=PLAN, workspaceID=us-east.workspace.mongodb-st-da-s6ixic.bef18192, processedBy=orchestrator-6cb446ddb7-gx9wh + 2025/02/23 13:08:07 Related Workspace: name=mongodb-st-da-s6ixic, sourcerelease=(not specified), sourceurl=, folder=solutions/standard + 2025/02/23 13:08:11 --- Ready to execute the command --- + 2025/02/23 13:08:13 workspace.template.EnvFile: 54c57457-c6df-4049-813b-b84de3727105 + 2025/02/23 13:08:14 workspace.template.SecFile: 9863e485-84b4-4bc1-8ec2-42e11152491c + 2025/02/23 13:08:12 ----- New Action ----- + 2025/02/23 13:08:12 Request: requestID=7fd15a70-01e0-468a-9c14-301ddd62ec1b + 2025/02/23 13:08:14 Related Activity: action=Plan, workspaceID=us-east.workspace.mongodb-st-da-s6ixic.bef18192, processedByOrchestrator=7fd15a70-01e0-468a-9c14-301ddd62ec1b_5a6ed1c596a9f24d2826f780c8963cc3, processedByJob=job12-7b594d589-6f824, actionType=Terraform + + 2025/02/23 13:08:19 ----- Terraform INIT ----- + + 2025/02/23 13:08:20 Starting command: terraform1.9 init -input=false -no-color + 2025/02/23 13:08:20 Starting command: terraform1.9 init -input=false -no-color + 2025/02/23 13:08:20 Terraform init | Initializing the backend... + 2025/02/23 13:08:20 Terraform init | Initializing modules... + 2025/02/23 13:08:20 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for kms... + 2025/02/23 13:08:22 Terraform init | - kms in .terraform/modules/kms + 2025/02/23 13:08:22 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.existing_key_ring_keys... + 2025/02/23 13:08:25 Terraform init | - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys + 2025/02/23 13:08:25 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... + 2025/02/23 13:08:28 Terraform init | - kms.key_protect in .terraform/modules/kms.key_protect + 2025/02/23 13:08:28 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... + 2025/02/23 13:08:30 Terraform init | - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module + 2025/02/23 13:08:30 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... + 2025/02/23 13:08:33 Terraform init | - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings + 2025/02/23 13:08:33 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.kms_keys... + 2025/02/23 13:08:33 Terraform init | - kms.kms_keys in .terraform/modules/kms.kms_keys + 2025/02/23 13:08:33 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... + 2025/02/23 13:08:35 Terraform init | - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... + 2025/02/23 13:08:35 Terraform init | - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... + 2025/02/23 13:08:35 Terraform init | - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | - mongodb in ../../modules/fscloud + 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb in ../.. + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... + 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... + 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... + 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb_instance_crn_parser... + 2025/02/23 13:08:35 Terraform init | - mongodb_instance_crn_parser in .terraform/modules/mongodb_instance_crn_parser/modules/crn-parser + 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... + 2025/02/23 13:08:38 Terraform init | - resource_group in .terraform/modules/resource_group + 2025/02/23 13:08:38 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager_service_credentials... + 2025/02/23 13:08:40 Terraform init | - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets + 2025/02/23 13:08:40 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... + 2025/02/23 13:08:43 Terraform init | - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups + 2025/02/23 13:08:43 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials.secrets... + 2025/02/23 13:08:45 Terraform init | - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets + 2025/02/23 13:08:45 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for sm_instance_crn_parser... + 2025/02/23 13:08:45 Terraform init | - sm_instance_crn_parser in .terraform/modules/sm_instance_crn_parser/modules/crn-parser + 2025/02/23 13:08:45 Terraform init | Initializing provider plugins... + 2025/02/23 13:08:45 Terraform init | - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... + 2025/02/23 13:08:45 Terraform init | - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... + 2025/02/23 13:08:45 Terraform init | - Finding hashicorp/random versions matching "3.6.3"... + 2025/02/23 13:08:47 Terraform init | - Installing ibm-cloud/ibm v1.75.2... + 2025/02/23 13:08:50 Terraform init | - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) + 2025/02/23 13:08:53 Terraform init | - Installing hashicorp/time v0.12.1... + 2025/02/23 13:08:53 Terraform init | - Installed hashicorp/time v0.12.1 (signed by HashiCorp) + 2025/02/23 13:08:53 Terraform init | - Installing hashicorp/random v3.6.3... + 2025/02/23 13:08:53 Terraform init | - Installed hashicorp/random v3.6.3 (signed by HashiCorp) + 2025/02/23 13:08:53 Terraform init | Partner and community providers are signed by their developers. + 2025/02/23 13:08:53 Terraform init | If you'd like to know more about provider signing, you can read about it here: + 2025/02/23 13:08:53 Terraform init | https://www.terraform.io/docs/cli/plugins/signing.html + 2025/02/23 13:08:53 Terraform init | Terraform has created a lock file .terraform.lock.hcl to record the provider + 2025/02/23 13:08:53 Terraform init | selections it made above. Include this file in your version control repository + 2025/02/23 13:08:53 Terraform init | so that Terraform can guarantee to make the same selections by default when + 2025/02/23 13:08:53 Terraform init | you run "terraform init" in the future. + 2025/02/23 13:08:53 Terraform init | + 2025/02/23 13:08:53 Terraform init | Terraform has been successfully initialized! + 2025/02/23 13:08:53 Command finished successfully. + + 2025/02/23 13:08:53 ----- Terraform PLAN ----- + + 2025/02/23 13:08:53 Starting command: terraform1.9 plan -input=false -refresh=true -state=terraform.tfstate -var-file=schematics.tfvars -no-color -out=tfplan.binary + 2025/02/23 13:08:53 Starting command: terraform1.9 plan -input=false -refresh=true -state=terraform.tfstate -var-file=schematics.tfvars -no-color -out=tfplan.binary + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | Warning: Value for undeclared variable + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | The root module does not declare a variable named + 2025/02/23 13:09:01 Terraform plan | "admin_pass_secrets_manager_secret_name" but a value was found in file + 2025/02/23 13:09:01 Terraform plan | "schematics.tfvars". If you meant to use this value, add a "variable" block + 2025/02/23 13:09:01 Terraform plan | to the configuration. + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | To silence these warnings, use TF_VAR_... environment variables to provide + 2025/02/23 13:09:01 Terraform plan | certain "global" settings to all configurations in your organization. To + 2025/02/23 13:09:01 Terraform plan | reduce the verbosity of these warnings, use the -compact-warnings option. + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | Warning: Value for undeclared variable + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | The root module does not declare a variable named "enable_kibana_dashboard" + 2025/02/23 13:09:01 Terraform plan | but a value was found in file "schematics.tfvars". If you meant to use this + 2025/02/23 13:09:01 Terraform plan | value, add a "variable" block to the configuration. + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | To silence these warnings, use TF_VAR_... environment variables to provide + 2025/02/23 13:09:01 Terraform plan | certain "global" settings to all configurations in your organization. To + 2025/02/23 13:09:01 Terraform plan | reduce the verbosity of these warnings, use the -compact-warnings option. + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | Warning: Values for undeclared variables + 2025/02/23 13:09:01 Terraform plan | + 2025/02/23 13:09:01 Terraform plan | In addition to the other similar warnings shown, 2 other variable(s) defined + 2025/02/23 13:09:01 Terraform plan | without being declared. + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared local value + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": + 2025/02/23 13:09:02 Terraform plan | 268: identifier = local.existing_redis_guid + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | A local value with the name "existing_redis_guid" has not been declared. + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": + 2025/02/23 13:09:02 Terraform plan | 360: target_resource_instance_id = module.mongodb.guid + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "guid" for a specific element of the list, or across all elements + 2025/02/23 13:09:02 Terraform plan | of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 7, in output "id": + 2025/02/23 13:09:02 Terraform plan | 7: value = module.mongodb.id + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "id" for a specific element of the list, or across all elements of + 2025/02/23 13:09:02 Terraform plan | the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 12, in output "version": + 2025/02/23 13:09:02 Terraform plan | 12: value = module.mongodb.version + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "version" for a specific element of the list, or across all + 2025/02/23 13:09:02 Terraform plan | elements of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 17, in output "guid": + 2025/02/23 13:09:02 Terraform plan | 17: value = module.mongodb.guid + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "guid" for a specific element of the list, or across all elements + 2025/02/23 13:09:02 Terraform plan | of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 22, in output "crn": + 2025/02/23 13:09:02 Terraform plan | 22: value = module.mongodb.crn + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "crn" for a specific element of the list, or across all elements of + 2025/02/23 13:09:02 Terraform plan | the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 27, in output "cbr_rule_ids": + 2025/02/23 13:09:02 Terraform plan | 27: value = module.mongodb.cbr_rule_ids + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "cbr_rule_ids" for a specific element of the list, or across all + 2025/02/23 13:09:02 Terraform plan | elements of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 32, in output "service_credentials_json": + 2025/02/23 13:09:02 Terraform plan | 32: value = module.mongodb.service_credentials_json + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "service_credentials_json" for a specific element of the list, or + 2025/02/23 13:09:02 Terraform plan | across all elements of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 38, in output "service_credentials_object": + 2025/02/23 13:09:02 Terraform plan | 38: value = module.mongodb.service_credentials_object + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "service_credentials_object" for a specific element of the list, or + 2025/02/23 13:09:02 Terraform plan | across all elements of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 44, in output "adminuser": + 2025/02/23 13:09:02 Terraform plan | 44: value = module.mongodb.adminuser + 2025/02/23 13:09:02 Terraform plan | ├──────────────── + 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access + 2025/02/23 13:09:02 Terraform plan | attribute "adminuser" for a specific element of the list, or across all + 2025/02/23 13:09:02 Terraform plan | elements of the list? + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared input variable + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + 2025/02/23 13:09:02 Terraform plan | 386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | An input variable with the name "endpoints" has not been declared. This + 2025/02/23 13:09:02 Terraform plan | variable can be declared with a variable "endpoints" {} block. + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared input variable + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + 2025/02/23 13:09:02 Terraform plan | 386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + 2025/02/23 13:09:02 Terraform plan | + 2025/02/23 13:09:02 Terraform plan | An input variable with the name "endpoints" has not been declared. This + 2025/02/23 13:09:02 Terraform plan | variable can be declared with a variable "endpoints" {} block. + 2025/02/23 13:09:02 Terraform PLAN error: Terraform PLAN errorexit status 1 + 2025/02/23 13:09:02 Could not execute job: Error : Terraform PLAN errorexit status 1 + + =============== END PLAN JOB LOG (us-east.workspace.mongodb-st-da-s6ixic.bef18192) =============== +TestRunStandardUpgradeSolution 2025-02-23T18:40:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m51s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:40:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m1s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:40:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m11s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:40:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m21s elapsed] + schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 +TestRunStandardUpgradeSolution 2025-02-23T18:40:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m31s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:40:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m41s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:41:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m51s elapsed] + schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 +TestRunStandardUpgradeSolution 2025-02-23T18:41:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m1s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:41:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m11s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:41:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m21s elapsed] + schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 +TestRunStandardUpgradeSolution 2025-02-23T18:41:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m31s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:41:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m41s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:42:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m51s elapsed] + schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 +TestRunStandardUpgradeSolution 2025-02-23T18:42:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m1s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:42:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m11s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:42:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m21s elapsed] + schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 + tests.go:393: [SCHEMATICS] There was an error retrieving output values: The requested statefile cannot be located. Run apply action to create a statefile. +--- FAIL: TestRunStandardSolutionSchematics (378.42s) +TestRunStandardUpgradeSolution 2025-02-23T18:42:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m31s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:42:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m41s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m51s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m1s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m11s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m21s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m31s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:43:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m41s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m51s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m1s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creation complete after 6m2s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::] +TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Reading... +TestRunStandardUpgradeSolution 2025-02-23T18:44:18+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Read complete after 1s [id=2025-02-23 13:14:18.808933 +0000 UTC] +TestRunStandardUpgradeSolution 2025-02-23T18:44:27+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [10s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:37+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:47+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creation complete after 32s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::] +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: Apply complete! Resources: 9 added, 0 changed, 0 destroyed. +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: Outputs: +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: adminuser = "admin" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: cbr_rule_ids = [] +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: certificate_base64 = +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: guid = "20d107d9-ff45-4131-90fa-f149001a6d8b" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: hostname = "20d107d9-ff45-4131-90fa-f149001a6d8b-0.c5kmhkid0ujpmrucb800.private.databases.appdomain.cloud" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: port = 30639 +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: version = "7.0" +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 retry.go:91: terraform [output -no-color -json] +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:521: State file copied to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard/terraform.tfstate +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:524: Init / Plan on PR Branch: test-coverage +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:525: Init / Plan on PR Branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:618: START: Init / Plan / Show w/Struct +TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-23T18:45:24+05:30 retry.go:91: terraform [plan -input=false -lock=false -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard/terratest-plan-file-2112165992] +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} +=== NAME TestRunStandardUpgradeSolution + tests.go:635: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:528 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} + Test: TestRunStandardUpgradeSolution + Messages: Failed to create plan: %!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Reference to undeclared local value + │  + │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": + │  268: identifier = local.existing_redis_guid + │  + │ A local value with the name "existing_redis_guid" has not been declared. + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": + │  360: target_resource_instance_id = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 7, in output "id": + │  7: value = module.mongodb.id + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "id" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 12, in output "version": + │  12: value = module.mongodb.version + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "version" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 17, in output "guid": + │  17: value = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 22, in output "crn": + │  22: value = module.mongodb.crn + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "crn" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 27, in output "cbr_rule_ids": + │  27: value = module.mongodb.cbr_rule_ids + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "cbr_rule_ids" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 32, in output "service_credentials_json": + │  32: value = module.mongodb.service_credentials_json + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_json" for a specific element of the list, or + │ across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 38, in output "service_credentials_object": + │  38: value = module.mongodb.service_credentials_object + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_object" for a specific element of the list, + │ or across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 44, in output "adminuser": + │  44: value = module.mongodb.adminuser + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "adminuser" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵}) +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:531: Error during Terraform Plan on PR branch: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} + tests.go:532: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:532 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} + Test: TestRunStandardUpgradeSolution + Messages: Terraform Plan on PR branch has failed +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:91: terraform [output -no-color -json] +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:196: START: Destroy +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] +TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared local value +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  268: identifier = local.existing_redis_guid +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ A local value with the name "existing_redis_guid" has not been declared. +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  360: target_resource_instance_id = module.mongodb.guid +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 7, in output "id": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  7: value = module.mongodb.id +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "id" for a specific element of the list, or across all elements +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 12, in output "version": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  12: value = module.mongodb.version +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "version" for a specific element of the list, or across all +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 17, in output "guid": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  17: value = module.mongodb.guid +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 22, in output "crn": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  22: value = module.mongodb.crn +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "crn" for a specific element of the list, or across all elements +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 27, in output "cbr_rule_ids": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  27: value = module.mongodb.cbr_rule_ids +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "cbr_rule_ids" for a specific element of the list, or across all +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 32, in output "service_credentials_json": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  32: value = module.mongodb.service_credentials_json +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "service_credentials_json" for a specific element of the list, or +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ across all elements of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 38, in output "service_credentials_object": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  38: value = module.mongodb.service_credentials_object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "service_credentials_object" for a specific element of the list, +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ or across all elements of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 44, in output "adminuser": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  44: value = module.mongodb.adminuser +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "adminuser" for a specific element of the list, or across all +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared input variable +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared input variable +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} + tests.go:198: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:535 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 + Error: Received unexpected error: + FatalError{Underlying: error while running command: exit status 1; ╷ + │ Error: Reference to undeclared local value + │  + │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": + │  268: identifier = local.existing_redis_guid + │  + │ A local value with the name "existing_redis_guid" has not been declared. + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": + │  360: target_resource_instance_id = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 7, in output "id": + │  7: value = module.mongodb.id + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "id" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 12, in output "version": + │  12: value = module.mongodb.version + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "version" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 17, in output "guid": + │  17: value = module.mongodb.guid + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "guid" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 22, in output "crn": + │  22: value = module.mongodb.crn + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "crn" for a specific element of the list, or across all elements + │ of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 27, in output "cbr_rule_ids": + │  27: value = module.mongodb.cbr_rule_ids + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "cbr_rule_ids" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 32, in output "service_credentials_json": + │  32: value = module.mongodb.service_credentials_json + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_json" for a specific element of the list, or + │ across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 38, in output "service_credentials_object": + │  38: value = module.mongodb.service_credentials_object + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "service_credentials_object" for a specific element of the list, + │ or across all elements of the list? + ╵ + ╷ + │ Error: Unsupported attribute + │  + │  on outputs.tf line 44, in output "adminuser": + │  44: value = module.mongodb.adminuser + │  ├──────────────── + │  │ module.mongodb is a list of object + │  + │ Can't access attributes on a list of objects. Did you mean to access + │ attribute "adminuser" for a specific element of the list, or across all + │ elements of the list? + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵ + ╷ + │ Error: Reference to undeclared input variable + │  + │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": + │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints + │  + │ An input variable with the name "endpoints" has not been declared. This + │ variable can be declared with a variable "endpoints" {} block. + ╵} + Test: TestRunStandardUpgradeSolution +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: Reference to undeclared local value +│  +│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": +│  268: identifier = local.existing_redis_guid +│  +│ A local value with the name "existing_redis_guid" has not been declared. +╵ +╷ +│ Error: Unsupported attribute +│  +│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": +│  360: target_resource_instance_id = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 7, in output "id": +│  7: value = module.mongodb.id +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "id" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 12, in output "version": +│  12: value = module.mongodb.version +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "version" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 17, in output "guid": +│  17: value = module.mongodb.guid +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "guid" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 22, in output "crn": +│  22: value = module.mongodb.crn +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "crn" for a specific element of the list, or across all elements +│ of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 27, in output "cbr_rule_ids": +│  27: value = module.mongodb.cbr_rule_ids +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "cbr_rule_ids" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 32, in output "service_credentials_json": +│  32: value = module.mongodb.service_credentials_json +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_json" for a specific element of the list, or +│ across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 38, in output "service_credentials_object": +│  38: value = module.mongodb.service_credentials_object +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "service_credentials_object" for a specific element of the list, +│ or across all elements of the list? +╵ +╷ +│ Error: Unsupported attribute +│  +│  on outputs.tf line 44, in output "adminuser": +│  44: value = module.mongodb.adminuser +│  ├──────────────── +│  │ module.mongodb is a list of object +│  +│ Can't access attributes on a list of objects. Did you mean to access +│ attribute "adminuser" for a specific element of the list, or across all +│ elements of the list? +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵ +╷ +│ Error: Reference to undeclared input variable +│  +│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": +│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints +│  +│ An input variable with the name "endpoints" has not been declared. This +│ variable can be declared with a variable "endpoints" {} block. +╵} +TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 tests.go:266: END: Destroy +TestRunStandardUpgradeSolution 2025-02-23T18:45:28+05:30 tests.go:384: Restoring UseTerraformWorkspace and WorkspacePath to original values: false + pr_test.go:138: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:138 + Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} + Test: TestRunStandardUpgradeSolution + Messages: This should not have errored + pr_test.go:139: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:139 + Error: Expected value not to be nil. + Test: TestRunStandardUpgradeSolution + Messages: Expected some output +--- FAIL: TestRunStandardUpgradeSolution (545.11s) +FAIL +exit status 1 +FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 546.298s diff --git a/main.tf b/main.tf index 3f9f4481..6e875e7e 100644 --- a/main.tf +++ b/main.tf @@ -12,9 +12,13 @@ locals { validate_backup_key = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn != null && (var.use_default_backup_encryption_key || var.use_same_kms_key_for_backups) ? tobool("When passing a value for 'backup_encryption_key_crn' you cannot set 'use_default_backup_encryption_key' to true or 'use_ibm_owned_encryption_key' to false.") : true # tflint-ignore: terraform_unused_declarations validate_backup_key_2 = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn == null && !var.use_same_kms_key_for_backups ? tobool("When 'use_same_kms_key_for_backups' is set to false, a value needs to be passed for 'backup_encryption_key_crn'.") : true +} - # If no value passed for 'backup_encryption_key_crn' use the value of 'kms_key_crn' and perform validation of 'kms_key_crn' to check if region is supported by backup encryption key. +######################################################################################################################## +# Locals +######################################################################################################################## +locals { # If 'use_ibm_owned_encryption_key' is true or 'use_default_backup_encryption_key' is true, default to null. # If no value is passed for 'backup_encryption_key_crn', then default to use 'kms_key_crn'. backup_encryption_key_crn = var.use_ibm_owned_encryption_key || var.use_default_backup_encryption_key ? null : (var.backup_encryption_key_crn != null ? var.backup_encryption_key_crn : var.kms_key_crn) @@ -113,9 +117,8 @@ resource "ibm_iam_authorization_policy" "kms_policy" { # workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478 resource "time_sleep" "wait_for_authorization_policy" { - count = local.create_kms_auth_policy - depends_on = [ibm_iam_authorization_policy.kms_policy] - + count = local.create_kms_auth_policy + depends_on = [ibm_iam_authorization_policy.kms_policy] create_duration = "30s" } @@ -169,8 +172,8 @@ resource "time_sleep" "wait_for_backup_kms_authorization_policy" { ######################################################################################################################## resource "ibm_database" "mongodb" { - depends_on = [time_sleep.wait_for_authorization_policy] - name = var.instance_name + depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] + name = var.name location = var.region plan = var.plan service = "databases-for-mongodb" @@ -178,7 +181,7 @@ resource "ibm_database" "mongodb" { resource_group_id = var.resource_group_id adminpassword = var.admin_pass tags = var.tags - service_endpoints = var.endpoints + service_endpoints = var.service_endpoints key_protect_key = var.kms_key_crn backup_encryption_key_crn = local.backup_encryption_key_crn backup_id = var.backup_crn @@ -204,7 +207,7 @@ resource "ibm_database" "mongodb" { id = var.member_host_flavor } disk { - allocation_mb = var.disk_mb + allocation_mb = var.member_disk_mb } members { allocation_count = var.members @@ -221,13 +224,13 @@ resource "ibm_database" "mongodb" { id = var.member_host_flavor } disk { - allocation_mb = var.disk_mb + allocation_mb = var.member_disk_mb } memory { - allocation_mb = var.memory_mb + allocation_mb = var.member_memory_mb } cpu { - allocation_count = var.cpu_count + allocation_count = var.member_cpu_count } members { allocation_count = var.members @@ -241,13 +244,13 @@ resource "ibm_database" "mongodb" { content { group_id = "member" # Only member type is allowed for IBM Cloud Databases memory { - allocation_mb = var.memory_mb + allocation_mb = var.member_memory_mb } disk { - allocation_mb = var.disk_mb + allocation_mb = var.member_disk_mb } cpu { - allocation_count = var.cpu_count + allocation_count = var.member_cpu_count } members { allocation_count = var.members diff --git a/modules/fscloud/README.md b/modules/fscloud/README.md index 0f3a6b57..ce54e2cf 100644 --- a/modules/fscloud/README.md +++ b/modules/fscloud/README.md @@ -36,14 +36,15 @@ No resources. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | +| [configuration](#input\_configuration) | Database Configuration. |
object({
maxmemory = optional(number)
maxmemory-policy = optional(string)
appendonly = optional(string)
maxmemory-samples = optional(number)
stop-writes-on-bgsave-error = optional(string)
})
| `null` | no | | [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | -| [disk\_mb](#input\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | -| [instance\_name](#input\_instance\_name) | Name of the mongodb instance | `string` | n/a | yes | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | +| [member\_disk\_mb](#input\_member\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | +| [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `14336` | no | | [members](#input\_members) | Allocated number of members | `number` | `3` | no | -| [memory\_mb](#input\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `14336` | no | | [mongodb\_version](#input\_mongodb\_version) | Version of the MongoDB instance. If no value is passed, the current preferred version of IBM Cloud Databases is used. | `string` | `null` | no | +| [name](#input\_name) | Name of the mongodb instance | `string` | n/a | yes | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"enterprise"` | no | | [region](#input\_region) | The region where you want to deploy your instance. Must be the same region as the Hyper Protect Crypto Services instance. | `string` | `"us-south"` | no | | [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the MongoDB instance will be created. | `string` | n/a | yes | diff --git a/modules/fscloud/main.tf b/modules/fscloud/main.tf index a1c57152..d1e33f84 100644 --- a/modules/fscloud/main.tf +++ b/modules/fscloud/main.tf @@ -1,10 +1,10 @@ module "mongodb" { source = "../../" resource_group_id = var.resource_group_id - instance_name = var.instance_name + name = var.name region = var.region skip_iam_authorization_policy = var.skip_iam_authorization_policy - endpoints = "private" + service_endpoints = "private" mongodb_version = var.mongodb_version use_ibm_owned_encryption_key = var.use_ibm_owned_encryption_key use_same_kms_key_for_backups = var.use_same_kms_key_for_backups @@ -17,11 +17,11 @@ module "mongodb" { tags = var.tags plan = var.plan members = var.members - memory_mb = var.memory_mb + member_memory_mb = var.member_memory_mb admin_pass = var.admin_pass users = var.users - disk_mb = var.disk_mb - cpu_count = var.cpu_count + member_disk_mb = var.member_disk_mb + member_cpu_count = var.cpu_count member_host_flavor = var.member_host_flavor auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names diff --git a/modules/fscloud/variables.tf b/modules/fscloud/variables.tf index 34999377..b4bd46b6 100644 --- a/modules/fscloud/variables.tf +++ b/modules/fscloud/variables.tf @@ -7,7 +7,7 @@ variable "resource_group_id" { description = "The resource group ID where the MongoDB instance will be created." } -variable "instance_name" { +variable "name" { type = string description = "Name of the mongodb instance" } @@ -46,7 +46,7 @@ variable "cpu_count" { default = 6 } -variable "disk_mb" { +variable "member_disk_mb" { type = number description = "Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 20480 @@ -58,7 +58,7 @@ variable "member_host_flavor" { default = null } -variable "memory_mb" { +variable "member_memory_mb" { type = number description = "Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 14336 @@ -101,6 +101,18 @@ variable "access_tags" { default = [] } +variable "configuration" { + type = object({ + maxmemory = optional(number) + maxmemory-policy = optional(string) + appendonly = optional(string) + maxmemory-samples = optional(number) + stop-writes-on-bgsave-error = optional(string) + }) + description = "Database Configuration." + default = null +} + ############################################################## # Auto Scaling ############################################################## diff --git a/solutions/standard/DA-types.md b/solutions/standard/DA-types.md index 8a8bc45c..082022f8 100644 --- a/solutions/standard/DA-types.md +++ b/solutions/standard/DA-types.md @@ -197,3 +197,45 @@ The following example shows values for both disk and memory for the `auto_scalin } } ``` + +## Configuration + +The Configuration variable tunes the Redis database to suit different use case. For more information, see [Configuration](https://cloud.ibm.com/docs/databases-for-redis?topic=databases-for-redis-changing-configuration&interface=cli). + +- Variable name: `configuration` +- Type: An object with `maxmemory`, `maxmemory-policy`, `appendonly`, `maxmemory-samples` and `stop-writes-on-bgsave-error` attributes +- Default value: An object with following configuration: +``` +{ + maxmemory : 80, + maxmemory-policy : "noeviction", + appendonly : "yes", + maxmemory-samples : 5, + stop-writes-on-bgsave-error : "yes" +} +``` + +### Options for configuration + +The configuration object in the input contains the following options. All options are optional. + +- `maxmemory`: Determines the amount of data that you can store in Redis as a percentage of the deployments memory. (default: `80`). +- `maxmemory-policy`: Determines eviction behavior when `maxmemory` limit is reached [Learn more](https://cloud.ibm.com/docs/databases-for-redis?topic=databases-for-redis-redis-cache&interface=cli#redis-cache-maxmemory-policy) (default: `noeviction`). +- `appendonly`: Enables Redis persistence when set to `yes`, If you are caching data, you want to set this value to `no`. (default: `yes`). +- `maxmemory-samples`: Tunes LRU eviction algorithm when Redis is configured as a cache [Learn more](https://cloud.ibm.com/docs/databases-for-redis?topic=databases-for-redis-redis-cache&interface=cli#redis-cache-other-settings) (default: `5`). +- `stop-writes-on-bgsave-error`: Redis stops accepting writes if it detects an unsuccessful backup snapshot. For caching, you can set to `no`. (default: `yes`). + + +### Example configuration + +The following example shows values for the `configuration` input. + +```hcl +{ + "maxmemory": 80, + "maxmemory-policy": "noeviction", + "appendonly": "yes", + "maxmemory-samples": 5, + "stop-writes-on-bgsave-error": "yes" +} +``` diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index d74dade7..0728c90e 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -28,7 +28,7 @@ locals { ####################################################################################################################### locals { - create_new_kms_key = !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? true : false # no need to create any KMS resources if passing an existing key, or using IBM owned keys + create_new_kms_key = !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? 1 : 0 # no need to create any KMS resources if passing an existing key, or using IBM owned keys mongodb_key_name = var.prefix != null ? "${var.prefix}-${var.key_name}" : var.key_name mongodb_key_ring_name = var.prefix != null ? "${var.prefix}-${var.key_ring_name}" : var.key_ring_name } @@ -233,6 +233,10 @@ locals { # if - replace first char with J # elseif _ replace first char with K # else use asis + generated_admin_password = startswith(random_password.admin_password[0].result, "-") ? "J${substr(random_password.admin_password[0].result, 1, -1)}" : startswith(random_password.admin_password[0].result, "_") ? "K${substr(random_password.admin_password[0].result, 1, -1)}" : random_password.admin_password[0].result + + + # admin password to use admin_pass = var.admin_pass == null ? (startswith(random_password.admin_password[0].result, "-") ? "J${substr(random_password.admin_password[0].result, 1, -1)}" : startswith(random_password.admin_password[0].result, "_") ? "K${substr(random_password.admin_password[0].result, 1, -1)}" : random_password.admin_password[0].result) : var.admin_pass } @@ -240,12 +244,55 @@ locals { # MongoDB ####################################################################################################################### +# Look up existing instance details if user passes one +module "mongodb_instance_crn_parser" { + count = var.existing_db_instance_crn != null ? 1 : 0 + source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser" + version = "1.1.0" + crn = var.existing_db_instance_crn +} + +# Existing instance local vars +locals { + existing_mongodb_guid = var.existing_db_instance_crn != null ? module.mongodb_instance_crn_parser[0].service_instance : null + existing_mongodb_region = var.existing_db_instance_crn != null ? module.mongodb_instance_crn_parser[0].region : null + + # Validate the region input matches region detected in existing instance CRN (approach based on https://github.com/hashicorp/terraform/issues/25609#issuecomment-1057614400) + # tflint-ignore: terraform_unused_declarations + validate_existing_instance_region = var.existing_db_instance_crn != null && var.region != local.existing_mongodb_region ? tobool("The region detected in the 'existing_db_instance_crn' value must match the value of the 'region' input variable when passing an existing instance.") : true +} + +# Do a data lookup on the resource GUID to get more info that is needed for the 'ibm_database' data lookup below +data "ibm_resource_instance" "existing_instance_resource" { + count = var.existing_db_instance_crn != null ? 1 : 0 + identifier = local.existing_redis_guid +} + +# Lookup details of existing instance +data "ibm_database" "existing_db_instance" { + count = var.existing_db_instance_crn != null ? 1 : 0 + name = data.ibm_resource_instance.existing_instance_resource[0].name + resource_group_id = data.ibm_resource_instance.existing_instance_resource[0].resource_group_id + location = var.region + service = "databases-for-redis" +} + +# Lookup existing instance connection details +data "ibm_database_connection" "existing_connection" { + count = var.existing_db_instance_crn != null ? 1 : 0 + endpoint_type = "private" + deployment_id = data.ibm_database.existing_db_instance[0].id + user_id = data.ibm_database.existing_db_instance[0].adminuser + user_type = "database" +} + # Create new instance module "mongodb" { + count = var.existing_db_instance_crn != null ? 0 : 1 source = "../../modules/fscloud" depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] resource_group_id = module.resource_group.resource_group_id - instance_name = var.prefix != null ? "${var.prefix}-${var.name}" : var.name + name = var.prefix != null ? "${var.prefix}-${var.name}" : var.name plan = var.plan region = var.region mongodb_version = var.mongodb_version @@ -261,18 +308,49 @@ module "mongodb" { users = var.users members = var.members member_host_flavor = var.member_host_flavor - memory_mb = var.member_memory_mb - disk_mb = var.member_disk_mb + member_memory_mb = var.member_memory_mb + member_disk_mb = var.member_disk_mb cpu_count = var.member_cpu_count auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names backup_crn = var.backup_crn + configuration = var.configuration } locals { + mongodb_guid = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].guid : module.mongodb[0].guid + mongodb_id = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].id : module.mongodb[0].id + mongodb_version = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].version : module.mongodb[0].version + mongodb_crn = var.existing_db_instance_crn != null ? var.existing_db_instance_crn : module.mongodb[0].crn + mongodb_hostname = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].https[0].hosts[0].hostname : module.mongodb[0].hostname + mongodb_port = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].https[0].hosts[0].port : module.mongodb[0].port +} + +####################################################################################################################### +# Secrets management +####################################################################################################################### + +locals { + ## Variable validation (approach based on https://github.com/hashicorp/terraform/issues/25609#issuecomment-1057614400) + # tflint-ignore: terraform_unused_declarations + validate_sm_crn = length(local.service_credential_secrets) > 0 && var.existing_secrets_manager_instance_crn == null ? tobool("`existing_secrets_manager_instance_crn` is required when adding service credentials to a secrets manager secret.") : false + # tflint-ignore: terraform_unused_declarations + validate_sm_sg = var.existing_secrets_manager_instance_crn != null && var.admin_pass_sm_secret_group == null ? tobool("`admin_pass_sm_secret_group` is required when `existing_secrets_manager_instance_crn` is set.") : false + # tflint-ignore: terraform_unused_declarations + validate_sm_sn = var.existing_secrets_manager_instance_crn != null && var.admin_pass_sm_secret_name == null ? tobool("`admin_pass_sm_secret_name` is required when `existing_secrets_manager_instance_crn` is set.") : false + create_sm_auth_policy = var.skip_mongodb_sm_auth_policy || var.existing_secrets_manager_instance_crn == null ? 0 : 1 } +# Parse the Secrets Manager CRN +module "sm_instance_crn_parser" { + count = var.existing_secrets_manager_instance_crn != null ? 1 : 0 + source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser" + version = "1.1.0" + crn = var.existing_secrets_manager_instance_crn +} + + # create a service authorization between Secrets Manager and the target service (Databases for MongoDB) resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" { count = local.create_sm_auth_policy @@ -314,12 +392,23 @@ locals { } ] - existing_secrets_manager_instance_crn_split = var.existing_secrets_manager_instance_crn != null ? split(":", var.existing_secrets_manager_instance_crn) : null - existing_secrets_manager_instance_guid = var.existing_secrets_manager_instance_crn != null ? element(local.existing_secrets_manager_instance_crn_split, length(local.existing_secrets_manager_instance_crn_split) - 3) : null - existing_secrets_manager_instance_region = var.existing_secrets_manager_instance_crn != null ? element(local.existing_secrets_manager_instance_crn_split, length(local.existing_secrets_manager_instance_crn_split) - 5) : null + # Build the structure of the arbitrary credential type secret for admin password + admin_pass_secret = [{ + secret_group_name = (var.prefix != null && var.prefix != "") && var.admin_pass_sm_secret_group != null ? "${var.prefix}-${var.admin_pass_sm_secret_group}" : var.admin_pass_sm_secret_group + existing_secret_group = var.use_existing_admin_pass_sm_secret_group + secrets = [{ + secret_name = (var.prefix != null && var.prefix != "") && var.admin_pass_sm_secret_name != null ? "${var.prefix}-${var.admin_pass_sm_secret_name}" : var.admin_pass_sm_secret_name + secret_type = "arbitrary" + secret_payload_password = local.admin_pass + } + ] + }] - # tflint-ignore: terraform_unused_declarations - validate_sm_crn = length(local.service_credential_secrets) > 0 && var.existing_secrets_manager_instance_crn == null ? tobool("`existing_secrets_manager_instance_crn` is required when adding service credentials to a secrets manager secret.") : false + # Concatinate into 1 secrets object + secrets = concat(local.service_credential_secrets, local.admin_pass_secret) + # Parse Secrets Manager details from the CRN + existing_secrets_manager_instance_guid = var.existing_secrets_manager_instance_crn != null ? module.sm_instance_crn_parser[0].service_instance : null + existing_secrets_manager_instance_region = var.existing_secrets_manager_instance_crn != null ? module.sm_instance_crn_parser[0].region : null } module "secrets_manager_service_credentials" { diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index f87b2c1f..58f06126 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -56,6 +56,12 @@ variable "plan" { } } +variable "existing_db_instance_crn" { + type = string + default = null + description = "The CRN of an existing Databases for MongoDB instance. If no value is specified, a new instance is created." +} + ############################################################################## # ICD hosting model properties ############################################################################## @@ -81,13 +87,36 @@ variable "member_cpu_count" { variable "member_disk_mb" { type = number description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)." - default = 10240 + default = 5120 } variable "member_host_flavor" { type = string description = "The host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)." - default = "multitenant" + default = "b3c.4x16.encrypted" + # Prevent null or "", require multitenant or a machine type + validation { + condition = (length(var.member_host_flavor) > 0) + error_message = "Member host flavor must be specified. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)." + } +} + +variable "configuration" { + description = "Database Configuration for MongoDb instance. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb/blob/main/solutions/standard/DA-types.md#configuration)." + type = object({ + maxmemory = optional(number) + maxmemory-policy = optional(string) + appendonly = optional(string) + maxmemory-samples = optional(number) + stop-writes-on-bgsave-error = optional(string) + }) + default = { + maxmemory : 80, + maxmemory-policy : "noeviction", + appendonly : "yes", + maxmemory-samples : 5, + stop-writes-on-bgsave-error : "yes" + } } variable "service_credential_names" { @@ -308,3 +337,21 @@ variable "skip_mongodb_sm_auth_policy" { description = "Whether an IAM authorization policy is created for Secrets Manager instance to create a service credential secrets for Databases for MongoDB. If set to false, the Secrets Manager instance passed by the user is granted the Key Manager access to the MongoDB instance created by the Deployable Architecture. Set to `true` to use an existing policy. The value of this is ignored if any value for 'existing_secrets_manager_instance_crn' is not passed." default = false } + +variable "admin_pass_sm_secret_group" { + type = string + description = "The name of a new or existing secrets manager secret group for admin password. To use existing secret group, `use_existing_admin_pass_secrets_manager_secret_group` must be set to `true`. If a prefix input variable is specified, the prefix is added to the name in the `-` format." + default = "mongodb-secrets" +} + +variable "use_existing_admin_pass_sm_secret_group" { + type = bool + description = "Whether to use an existing secrets manager secret group for admin password." + default = false +} + +variable "admin_pass_sm_secret_name" { + type = string + description = "The name of a new mongodb administrator secret. If a prefix input variable is specified, the prefix is added to the name in the `-` format." + default = "mongodb-admin-password" +} diff --git a/tests/other_test.go b/tests/other_test.go index 150a7a1c..9516d04e 100644 --- a/tests/other_test.go +++ b/tests/other_test.go @@ -4,27 +4,58 @@ package test import ( "fmt" "testing" + "crypto/rand" + "encoding/base64" + "log" "github.com/gruntwork-io/terratest/modules/terraform" "github.com/stretchr/testify/assert" "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper" ) -func TestRunBasicExample(t *testing.T) { +func TestRunCompleteExampleOtherVersion(t *testing.T) { t.Parallel() + // Generate a 15 char long random string for the admin_pass + randomBytes := make([]byte, 13) + _, err := rand.Read(randomBytes) + if err != nil { + log.Fatal(err) + } + randomPass := "A1" + base64.URLEncoding.EncodeToString(randomBytes)[:13] + options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ Testing: t, - TerraformDir: "examples/basic", - Prefix: "mongodb-basic", - BestRegionYAMLPath: regionSelectionPath, + TerraformDir: completeExampleTerraformDir, + Prefix: "mongodb-complete-test", ResourceGroup: resourceGroup, - CloudInfoService: sharedInfoSvc, + BestRegionYAMLPath: regionSelectionPath, + TerraformVars: map[string]interface{}{ + "mongodb_version": "7.0", + "existing_sm_instance_guid": permanentResources["secretsManagerGuid"], + "existing_sm_instance_region": permanentResources["secretsManagerRegion"], + "users": []map[string]interface{}{ + { + "name": "testuser", + "password": randomPass, // pragma: allowlist secret + "type": "database", + }, + }, + "admin_pass": randomPass, + }, + CloudInfoService: sharedInfoSvc, }) - + options.SkipTestTearDown = true output, err := options.RunTestConsistency() assert.Nil(t, err, "This should not have errored") assert.NotNil(t, output, "Expected some output") + + // check if outputs exist + outputs := terraform.OutputAll(options.Testing, options.TerraformOptions) + expectedOutputs := []string{"port", "hostname"} + _, outputErr := testhelper.ValidateTerraformOutputs(outputs, expectedOutputs...) + assert.NoErrorf(t, outputErr, "Some outputs not found or nil") + options.TestTearDown() } func testPlanICDVersions(t *testing.T, version string) { @@ -72,37 +103,3 @@ func TestRunRestoredDBExample(t *testing.T) { assert.Nil(t, err, "This should not have errored") assert.NotNil(t, output, "Expected some output") } - -func TestRunFSCloudExample(t *testing.T) { - t.Parallel() - options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ - Testing: t, - TerraformDir: "examples/fscloud", - Prefix: "mongodb-fscloud", - Region: "us-south", // For FSCloud locking into us-south since that is where the HPCS permanent instance is - /* - Comment out the 'ResourceGroup' input to force this test to create a unique resource group to ensure tests do - not clash. This is due to the fact that an auth policy may already exist in this resource group since we are - re-using a permanent HPCS instance. By using a new resource group, the auth policy will not already exist - since this module scopes auth policies by resource group. - */ - //ResourceGroup: resourceGroup, - TerraformVars: map[string]interface{}{ - "access_tags": permanentResources["accessTags"], - "kms_key_crn": permanentResources["hpcs_south_root_key_crn"], - "mongodb_version": "6.0", // Always lock this test into the latest supported MongoDB version - }, - CloudInfoService: sharedInfoSvc, - }) - options.SkipTestTearDown = true - output, err := options.RunTestConsistency() - assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") - - // check if outputs exist - outputs := terraform.OutputAll(options.Testing, options.TerraformOptions) - expectedOutputs := []string{"port", "hostname"} - _, outputErr := testhelper.ValidateTerraformOutputs(outputs, expectedOutputs...) - assert.NoErrorf(t, outputErr, "Some outputs not found or nil") - options.TestTearDown() -} diff --git a/tests/pr_test.go b/tests/pr_test.go index 9e694f4d..40daf309 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -2,17 +2,17 @@ package test import ( - "crypto/rand" - "encoding/base64" - "encoding/json" + "math/rand" "fmt" - "io/fs" "log" "os" - "path/filepath" "strings" "testing" + "github.com/gruntwork-io/terratest/modules/files" + "github.com/gruntwork-io/terratest/modules/logger" + "github.com/gruntwork-io/terratest/modules/random" + "github.com/gruntwork-io/terratest/modules/terraform" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/cloudinfo" @@ -21,7 +21,10 @@ import ( "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic" ) +const completeExampleTerraformDir = "examples/complete" +const fscloudExampleTerraformDir = "examples/fscloud" const standardSolutionTerraformDir = "solutions/standard" +const latestVersion = "7.0" // Use existing resource group const resourceGroup = "geretain-test-mongo" @@ -35,6 +38,10 @@ const yamlLocation = "../common-dev-assets/common-go-assets/common-permanent-res var permanentResources map[string]interface{} var sharedInfoSvc *cloudinfo.CloudInfoService +var validICDRegions = []string{ + "eu-de", + "us-south", +} // TestMain will be run before any parallel tests, used to read data from yaml for use with tests func TestMain(m *testing.M) { @@ -49,80 +56,21 @@ func TestMain(m *testing.M) { os.Exit(m.Run()) } -type tarIncludePatterns struct { - excludeDirs []string - - includeFiletypes []string - - includeDirs []string -} - -func getTarIncludePatternsRecursively(dir string, dirsToExclude []string, fileTypesToInclude []string) ([]string, error) { - r := tarIncludePatterns{dirsToExclude, fileTypesToInclude, nil} - err := filepath.WalkDir(dir, func(path string, entry fs.DirEntry, err error) error { - return walk(&r, path, entry, err) - }) - if err != nil { - fmt.Println("error") - return r.includeDirs, err - } - return r.includeDirs, nil -} - -func walk(r *tarIncludePatterns, s string, d fs.DirEntry, err error) error { - if err != nil { - return err - } - if d.IsDir() { - for _, excludeDir := range r.excludeDirs { - if strings.Contains(s, excludeDir) { - return nil - } - } - if s == ".." { - r.includeDirs = append(r.includeDirs, "*.tf") - return nil - } - for _, includeFiletype := range r.includeFiletypes { - r.includeDirs = append(r.includeDirs, strings.ReplaceAll(s+"/*"+includeFiletype, "../", "")) - } - } - return nil -} - func TestRunStandardSolutionSchematics(t *testing.T) { t.Parallel() - excludeDirs := []string{ - ".terraform", - ".docs", - ".github", - ".git", - ".idea", - "common-dev-assets", - "examples", - "tests", - "reference-architectures", - } - includeFiletypes := []string{ - ".tf", - ".yaml", - ".py", - ".tpl", - ".sh", - } - - tarIncludePatterns, recurseErr := getTarIncludePatternsRecursively("..", excludeDirs, includeFiletypes) - - // if error producing tar patterns (very unexpected) fail test immediately - require.NoError(t, recurseErr, "Schematic Test had unexpected error traversing directory tree") - prefix := "mongodb-st-da" options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{ - Testing: t, - TarIncludePatterns: tarIncludePatterns, + Testing: t, + TarIncludePatterns: []string{ + "*.tf", + fmt.Sprintf("%s/*.tf", standardSolutionTerraformDir), + fmt.Sprintf("%s/*.tf", fscloudExampleTerraformDir), + fmt.Sprintf("%s/*.tf", "modules/fscloud"), + fmt.Sprintf("%s/*.sh", "scripts"), + }, TemplateFolder: standardSolutionTerraformDir, BestRegionYAMLPath: regionSelectionPath, - Prefix: prefix, + Prefix: "mongodb-st-da", ResourceGroup: resourceGroup, DeleteWorkspaceOnFail: false, WaitJobCompleteMinutes: 60, @@ -144,33 +92,27 @@ func TestRunStandardSolutionSchematics(t *testing.T) { }, } - serviceCredentialNames := map[string]string{ - "admin": "Administrator", - "user1": "Viewer", - "user2": "Editor", - } - - serviceCredentialNamesJSON, err := json.Marshal(serviceCredentialNames) - if err != nil { - log.Fatalf("Error converting to JSON: %s", err) - } - - options.TerraformVars = []testschematic.TestSchematicTerraformVar{ + options.TerraformVars = []testschematic.TestSchematicTerraformVar{ {Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true}, {Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"}, {Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"}, + {Name: "existing_backup_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"}, {Name: "kms_endpoint_type", Value: "private", DataType: "string"}, - {Name: "mongodb_version", Value: "6.0", DataType: "string"}, // Always lock this test into the latest supported MongoDB version {Name: "resource_group_name", Value: options.Prefix, DataType: "string"}, + {Name: "plan", Value: "platinum", DataType: "string"}, + {Name: "enable_elser_model", Value: true, DataType: "bool"}, + {Name: "service_credential_names", Value: "{\"admin_test\": \"Administrator\", \"editor_test\": \"Editor\"}", DataType: "map(string)"}, {Name: "existing_secrets_manager_instance_crn", Value: permanentResources["secretsManagerCRN"], DataType: "string"}, {Name: "service_credential_secrets", Value: serviceCredentialSecrets, DataType: "list(object)"}, - {Name: "service_credential_names", Value: string(serviceCredentialNamesJSON), DataType: "map(string)"}, - {Name: "admin_pass", Value: GetRandomAdminPassword(t), DataType: "string"}, + {Name: "admin_pass_secrets_manager_secret_group", Value: options.Prefix, DataType: "string"}, + {Name: "admin_pass_secrets_manager_secret_name", Value: options.Prefix, DataType: "string"}, + {Name: "enable_kibana_dashboard", Value: true, DataType: "bool"}, + {Name: "provider_visibility", Value: "private", DataType: "string"}, + {Name: "prefix", Value: options.Prefix, DataType: "string"}, } - err = options.RunSchematicTest() + err := options.RunSchematicTest() assert.Nil(t, err, "This should not have errored") } - func TestRunStandardUpgradeSolution(t *testing.T) { t.Parallel() @@ -180,6 +122,7 @@ func TestRunStandardUpgradeSolution(t *testing.T) { BestRegionYAMLPath: regionSelectionPath, Prefix: "mongodb-st-da-upg", ResourceGroup: resourceGroup, + CheckApplyResultForUpgrade: true, }) options.TerraformVars = map[string]interface{}{ @@ -197,49 +140,101 @@ func TestRunStandardUpgradeSolution(t *testing.T) { } } -func TestRunCompleteUpgradeExample(t *testing.T) { +func TestRunExistingInstance(t *testing.T) { t.Parallel() - - // Generate a 15 char long random string for the admin_pass - randomBytes := make([]byte, 13) - _, err := rand.Read(randomBytes) - if err != nil { - log.Fatal(err) - } - randomPass := "A1" + base64.URLEncoding.EncodeToString(randomBytes)[:13] - - options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ - Testing: t, - TerraformDir: "examples/complete", - Prefix: "mongodb-upg", - BestRegionYAMLPath: regionSelectionPath, - ResourceGroup: resourceGroup, - TerraformVars: map[string]interface{}{ - "mongodb_version": "6.0", // Always lock to the lowest supported MongoDB version - "users": []map[string]interface{}{ - { - "name": "testuser", - "password": randomPass, // pragma: allowlist secret - "type": "database", - }, - }, - "admin_pass": randomPass, + prefix := fmt.Sprintf("mongodb-t-%s", strings.ToLower(random.UniqueId())) + realTerraformDir := ".." + tempTerraformDir, _ := files.CopyTerraformFolderToTemp(realTerraformDir, fmt.Sprintf(prefix+"-%s", strings.ToLower(random.UniqueId()))) + region := validICDRegions[rand.Intn(len(validICDRegions))] + + // Verify ibmcloud_api_key variable is set + checkVariable := "TF_VAR_ibmcloud_api_key" + val, present := os.LookupEnv(checkVariable) + require.True(t, present, checkVariable+" environment variable not set") + require.NotEqual(t, "", val, checkVariable+" environment variable is empty") + + logger.Log(t, "Tempdir: ", tempTerraformDir) + existingTerraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ + TerraformDir: tempTerraformDir + "/examples/basic", + Vars: map[string]interface{}{ + "prefix": prefix, + "region": region, + "mongodb_version": latestVersion, + "service_endpoints": "public-and-private", }, - CloudInfoService: sharedInfoSvc, + // Set Upgrade to true to ensure latest version of providers and modules are used by terratest. + // This is the same as setting the -upgrade=true flag with terraform. + Upgrade: true, }) - output, err := options.RunTestUpgrade() - if !options.UpgradeTestSkipped { + terraform.WorkspaceSelectOrNew(t, existingTerraformOptions, prefix) + _, existErr := terraform.InitAndApplyE(t, existingTerraformOptions) + if existErr != nil { + assert.True(t, existErr == nil, "Init and Apply of temp existing resource failed") + } else { + logger.Log(t, "existing_mongodb_instance_crn: ", terraform.Output(t, existingTerraformOptions, "mongodb_crn")) + options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{ + Testing: t, + TarIncludePatterns: []string{ + "*.tf", + fmt.Sprintf("%s/*.tf", standardSolutionTerraformDir), + fmt.Sprintf("%s/*.tf", fscloudExampleTerraformDir), + fmt.Sprintf("%s/*.tf", "modules/fscloud"), + fmt.Sprintf("%s/*.sh", "scripts"), + }, + TemplateFolder: standardSolutionTerraformDir, + BestRegionYAMLPath: regionSelectionPath, + Prefix: "mongodb-sr-da", + ResourceGroup: resourceGroup, + DeleteWorkspaceOnFail: false, + WaitJobCompleteMinutes: 60, + }) + + options.TerraformVars = []testschematic.TestSchematicTerraformVar{ + {Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true}, + {Name: "existing_mongodb_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "mongodb_crn"), DataType: "string"}, + {Name: "resource_group_name", Value: fmt.Sprintf("%s-resource-group", prefix), DataType: "string"}, + {Name: "region", Value: region, DataType: "string"}, + {Name: "use_existing_resource_group", Value: true, DataType: "bool"}, + {Name: "provider_visibility", Value: "public", DataType: "string"}, + } + err := options.RunSchematicTest() assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") + + } + envVal, _ := os.LookupEnv("DO_NOT_DESTROY_ON_FAILURE") + // Destroy the temporary existing resources if required + if t.Failed() && strings.ToLower(envVal) == "true" { + fmt.Println("Terratest failed. Debug the test and delete resources manually.") + } else { + logger.Log(t, "START: Destroy (existing resources)") + terraform.Destroy(t, existingTerraformOptions) + terraform.WorkspaceDelete(t, existingTerraformOptions, prefix) + logger.Log(t, "END: Destroy (existing resources)") } + } -func GetRandomAdminPassword(t *testing.T) string { - // Generate a 15 char long random string for the admin_pass - randomBytes := make([]byte, 13) - _, randErr := rand.Read(randomBytes) - require.Nil(t, randErr) // do not proceed if we can't gen a random password - randomPass := "A1" + base64.URLEncoding.EncodeToString(randomBytes)[:13] - return randomPass +// Test the DA when using IBM owned encryption keys +func TestRunStandardSolutionIBMKeys(t *testing.T) { + t.Parallel() + + options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ + Testing: t, + TerraformDir: standardSolutionTerraformDir, + Region: "us-south", + Prefix: "mongodb-icd-key", + ResourceGroup: resourceGroup, + }) + + options.TerraformVars = map[string]interface{}{ + "mongodb_version": "7.0", + "provider_visibility": "public", + "resource_group_name": options.Prefix, + "use_ibm_owned_encryption_key": true, + } + + output, err := options.RunTestConsistency() + assert.Nil(t, err, "This should not have errored") + assert.NotNil(t, output, "Expected some output") } diff --git a/variables.tf b/variables.tf index f49b864e..48cecf69 100644 --- a/variables.tf +++ b/variables.tf @@ -7,7 +7,7 @@ variable "resource_group_id" { description = "The resource group ID where the MongoDB instance will be created." } -variable "instance_name" { +variable "name" { type = string description = "The name to give the MongoDB instance." } @@ -52,22 +52,22 @@ variable "plan" { variable "members" { type = number - description = "Allocated number of members" + description = "The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)" default = 3 # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "cpu_count" { +variable "member_cpu_count" { type = number description = "Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 0 # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "disk_mb" { +variable "member_disk_mb" { type = number - description = "Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" - default = 10240 + description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" + default = 5120 # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } @@ -78,7 +78,7 @@ variable "member_host_flavor" { # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "memory_mb" { +variable "member_memory_mb" { type = number description = "Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 4096 @@ -115,14 +115,14 @@ variable "service_credential_names" { } } -variable "endpoints" { +variable "service_endpoints" { type = string - description = "Specify whether you want to enable the public, private, or both service endpoints. Supported values are 'public', 'private', or 'public-and-private'." - default = "private" + description = "The type of endpoint of the database instance. Possible values: `public`, `private`, `public-and-private`." + default = "public" validation { - condition = can(regex("public|private|public-and-private", var.endpoints)) - error_message = "Valid values are (public, private, or public-and-private)." + condition = can(regex("public|public-and-private|private", var.service_endpoints)) + error_message = "Valid values for service_endpoints are 'public', 'public-and-private', and 'private'" } } From 89d796bef52ac92c850e38612c0c38806513179c Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Mon, 24 Feb 2025 14:24:09 +0530 Subject: [PATCH 02/21] fixed errors --- README.md | 7 +- .../catalogValidationValues.json.template | 2 +- examples/basic/main.tf | 21 - examples/basic/outputs.tf | 2 +- examples/basic/version.tf | 11 +- examples/complete/main.tf | 44 +- examples/complete/outputs.tf | 14 +- logs.txt | 3743 ----------------- main.tf | 27 +- modules/fscloud/README.md | 2 +- modules/fscloud/main.tf | 5 +- modules/fscloud/variables.tf | 2 +- outputs.tf | 10 +- solutions/standard/main.tf | 6 +- solutions/standard/moved.tf | 4 + solutions/standard/outputs.tf | 32 +- solutions/standard/variables.tf | 2 +- tests/other_test.go | 52 +- tests/pr_test.go | 25 +- variables.tf | 17 +- 20 files changed, 130 insertions(+), 3898 deletions(-) delete mode 100644 logs.txt create mode 100644 solutions/standard/moved.tf diff --git a/README.md b/README.md index 21c6685a..fb27bf6a 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,11 @@ You need the following permissions to run this module. | Name | Type | |------|------| -| [ibm_database.mongodb](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database) | resource | +| [ibm_database.mongodb_database](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database) | resource | | [ibm_iam_authorization_policy.backup_kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource | | [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource | | [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource | -| [ibm_resource_tag.mongodb_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource | +| [ibm_resource_tag.access_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource | | [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | | [time_sleep.wait_for_backup_kms_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | | [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source | @@ -90,9 +90,10 @@ You need the following permissions to run this module. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | +| [configuration](#input\_configuration) | Database Configuration. Default values will get picked up if not all the values are passed. |
object({
maxmemory = optional(number)
maxmemory-policy = optional(string)
appendonly = optional(string)
maxmemory-samples = optional(number)
stop-writes-on-bgsave-error = optional(string)
})
| `null` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | -| [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `5120` | no | +| [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | | [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no | | [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no | diff --git a/examples/backup-restore/catalogValidationValues.json.template b/examples/backup-restore/catalogValidationValues.json.template index fec7904a..d761afae 100644 --- a/examples/backup-restore/catalogValidationValues.json.template +++ b/examples/backup-restore/catalogValidationValues.json.template @@ -3,4 +3,4 @@ "region": "us-south", "resource_tags": $TAGS, "prefix": $PREFIX -} \ No newline at end of file +} diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 78483b15..71961a0f 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -31,24 +31,3 @@ module "database" { "mongodb_editor" : "Editor", } } - -# wait 60 secs to allow IAM credential access to kick in before configuring instance -# without the wait, you can intermittently get "Error 401 (Unauthorized)" -resource "time_sleep" "wait" { - depends_on = [module.database] - create_duration = "60s" -} - -resource "mongodb_index" "test" { - depends_on = [time_sleep.wait] - name = "terraform-test" - number_of_shards = 1 - number_of_replicas = 1 - force_destroy = true -} - -resource "mongodb_cluster_settings" "global" { - depends_on = [time_sleep.wait] - cluster_max_shards_per_node = 10 - action_auto_create_index = "my-index-000001,index10,-index1*,+ind*" -} diff --git a/examples/basic/outputs.tf b/examples/basic/outputs.tf index 234d6c61..1a033244 100644 --- a/examples/basic/outputs.tf +++ b/examples/basic/outputs.tf @@ -7,7 +7,7 @@ output "id" { } output "mongodb_crn" { - description = "Elasticsearch CRN" + description = "Mongodb CRN" value = module.database.crn } diff --git a/examples/basic/version.tf b/examples/basic/version.tf index fc2e6fe5..d4e885b2 100644 --- a/examples/basic/version.tf +++ b/examples/basic/version.tf @@ -6,15 +6,6 @@ terraform { source = "IBM-Cloud/ibm" version = "1.70.0" } - # The mongodb provider is not actually required by the module itself, just this example, so OK to use ">=" here instead of locking into a version - mongodb = { - source = "phillbaker/mongodb" - version = ">= 2.0.7" - } - # The time provider is not actually required by the module itself, just this example, so OK to use ">=" here instead of locking into a version - time = { - source = "hashicorp/time" - version = ">= 0.9.1" - } + } } diff --git a/examples/complete/main.tf b/examples/complete/main.tf index bebdb482..57481735 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -18,12 +18,30 @@ locals { ############################################################################## module "resource_group" { - source = "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6" + source = "terraform-ibm-modules/resource-group/ibm" # if an existing resource group is not set (null) create a new one using prefix + version = "1.1.6" resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null existing_resource_group_name = var.resource_group } +############################################################################## +# VPC +############################################################################## +resource "ibm_is_vpc" "example_vpc" { + name = "${var.prefix}-vpc" + resource_group = module.resource_group.resource_group_id + tags = var.resource_tags +} + +resource "ibm_is_subnet" "testacc_subnet" { + name = "${var.prefix}-subnet" + vpc = ibm_is_vpc.example_vpc.id + zone = "${var.region}-1" + total_ipv4_address_count = 256 + resource_group = module.resource_group.resource_group_id +} + ############################################################################## # Key Protect All Inclusive ############################################################################## @@ -60,7 +78,29 @@ module "key_protect_all_inclusive" { } ############################################################################## -# MongoDB +# Get Cloud Account ID +############################################################################## + +data "ibm_iam_account_settings" "iam_account_settings" { +} + +############################################################################## +# Create CBR Zone +############################################################################## +module "cbr_zone" { + source = "terraform-ibm-modules/cbr/ibm//modules/cbr-zone-module" + version = "1.29.0" + name = "${var.prefix}-VPC-network-zone" + zone_description = "CBR Network zone containing VPC" + account_id = data.ibm_iam_account_settings.iam_account_settings.account_id + addresses = [{ + type = "vpc", # to bind a specific vpc to the zone + value = ibm_is_vpc.example_vpc.crn, + }] +} + +############################################################################## +# MongoDB Instance ############################################################################## module "icd_mongodb" { diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index c887d4f4..3df4d2e6 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -4,17 +4,17 @@ output "id" { description = "MongoDB instance id" - value = module.mongodb.id + value = module.icd_mongodb.id } output "version" { description = "MongoDB instance version" - value = module.mongodb.version + value = module.icd_mongodb.version } output "guid" { description = "mongodb instance guid" - value = module.mongodb.guid + value = module.icd_mongodb.guid } output "crn" { @@ -24,22 +24,22 @@ output "crn" { output "service_credentials_json" { description = "Service credentials json map" - value = module.mongodb.service_credentials_json + value = module.icd_mongodb.service_credentials_json sensitive = true } output "service_credentials_object" { description = "Service credentials object" - value = module.mongodb.service_credentials_object + value = module.icd_mongodb.service_credentials_object sensitive = true } output "hostname" { description = "MongoDB instance hostname" - value = module.mongodb.hostname + value = module.icd_mongodb.hostname } output "port" { description = "MongoDB instance port" - value = module.mongodb.port + value = module.icd_mongodb.port } diff --git a/logs.txt b/logs.txt deleted file mode 100644 index e98e2930..00000000 --- a/logs.txt +++ /dev/null @@ -1,3743 +0,0 @@ -cd tests && go test -run '' -count=1 -v -timeout 600m -=== RUN TestRunCompleteExampleOtherVersion -=== PAUSE TestRunCompleteExampleOtherVersion -=== RUN TestPlanICDVersions -=== PAUSE TestPlanICDVersions -=== RUN TestRunRestoredDBExample -=== PAUSE TestRunRestoredDBExample -=== RUN TestRunStandardSolutionSchematics -=== PAUSE TestRunStandardSolutionSchematics -=== RUN TestRunStandardUpgradeSolution -=== PAUSE TestRunStandardUpgradeSolution -=== RUN TestRunExistingInstance -=== PAUSE TestRunExistingInstance -=== RUN TestRunStandardSolutionIBMKeys -=== PAUSE TestRunStandardSolutionIBMKeys -=== CONT TestRunCompleteExampleOtherVersion -=== CONT TestRunStandardUpgradeSolution -=== CONT TestRunStandardSolutionIBMKeys -=== CONT TestRunRestoredDBExample -=== CONT TestRunStandardSolutionSchematics -=== CONT TestRunExistingInstance -=== CONT TestPlanICDVersions -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongo-restored-tmpaok4122674307 -TestRunExistingInstance 2025-02-23T18:36:23+05:30 pr_test.go:156: Tempdir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/mongodb-t-ujp0he-l22ltm1542836640/terraform-ibm-icd-mongodb -TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace list] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace list] -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongodb-icd-key-zqz3wy1305121850 -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:582: START: Init / Apply / Consistency Check -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 tests.go:661: START: Init / Apply -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:582: START: Init / Apply / Consistency Check -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 tests.go:661: START: Init / Apply -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: * default -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: -TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace new mongodb-t-ujp0he] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace new mongodb-t-ujp0he] -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Created and switched to workspace "mongodb-t-ujp0he"! -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: You're now on a new, empty workspace. Workspaces isolate their state, -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: so if you run "terraform plan" Terraform will not see any existing state -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: for this configuration. -TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [workspace show] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [workspace show] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: mongodb-t-ujp0he -TestRunExistingInstance 2025-02-23T18:36:23+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Initializing the backend... -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: - database in ../.. -TestRunExistingInstance 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for kms... -TestRunRestoredDBExample 2025-02-23T18:36:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -=== RUN TestPlanICDVersions/7.0 -=== PAUSE TestPlanICDVersions/7.0 -=== RUN TestPlanICDVersions/6.0 -=== PAUSE TestPlanICDVersions/6.0 -=== CONT TestPlanICDVersions/7.0 -=== CONT TestPlanICDVersions/6.0 -TestRunExistingInstance 2025-02-23T18:36:25+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:36:25+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:25+05:30 logger.go:67: - kms in .terraform/modules/kms -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:26+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.existing_key_ring_keys... -TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: - restored_icd_mongodb in ../.. -TestRunRestoredDBExample 2025-02-23T18:36:26+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for restored_icd_mongodb.backup_key_crn_parser... -2025/02/23 18:36:27 Region eu-de VPC count: 1 -2025/02/23 18:36:27 --- new best region is eu-de -2025/02/23 18:36:27 Region eu-de VPC count: 1 -2025/02/23 18:36:27 --- new best region is eu-de -TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module -TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... -TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:28+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... -TestRunRestoredDBExample 2025-02-23T18:36:28+05:30 logger.go:67: - restored_icd_mongodb.backup_key_crn_parser in .terraform/modules/restored_icd_mongodb.backup_key_crn_parser/modules/crn-parser -TestRunRestoredDBExample 2025-02-23T18:36:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for restored_icd_mongodb.cbr_rule... -2025/02/23 18:36:28 Region eu-de VPC count: 1 -2025/02/23 18:36:28 --- new best region is eu-de -2025/02/23 18:36:29 Region us-south VPC count: 12 -2025/02/23 18:36:29 Best region was found!: eu-de -=== NAME TestRunStandardSolutionSchematics - tests.go:329: [SCHEMATICS] Random Workspace region chosen: us - schematics.go:136: [SCHEMATICS] Schematics API for region us: https://us.schematics.cloud.ibm.com -2025/02/23 18:36:30 Region us-south VPC count: 12 -2025/02/23 18:36:30 Best region was found!: eu-de -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-mongodb-complete-test-ede05r3823344689 -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:582: START: Init / Apply / Consistency Check -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 tests.go:661: START: Init / Apply -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Initializing the backend... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Upgrading modules... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: - icd_mongodb in ../.. -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for icd_mongodb.backup_key_crn_parser... -TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: Initializing provider plugins... -TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... -2025/02/23 18:36:30 Region us-south VPC count: 12 -2025/02/23 18:36:30 Best region was found!: eu-de -TestRunExistingInstance 2025-02-23T18:36:30+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... -TestRunStandardUpgradeSolution 2025-02-23T18:36:30+05:30 tests.go:341: PR Branch: test-coverage -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - restored_icd_mongodb.cbr_rule in .terraform/modules/restored_icd_mongodb.cbr_rule/modules/cbr-rule-module -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for restored_icd_mongodb.kms_key_crn_parser... -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - restored_icd_mongodb.kms_key_crn_parser in .terraform/modules/restored_icd_mongodb.kms_key_crn_parser/modules/crn-parser -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: Initializing provider plugins... -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, < 2.0.0"... -TestRunRestoredDBExample 2025-02-23T18:36:30+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:31+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:31+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... -TestRunRestoredDBExample 2025-02-23T18:36:31+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunExistingInstance 2025-02-23T18:36:31+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... - tests.go:100: [SCHEMATICS] Creating Test Workspace -TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 tests.go:349: Base Repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git -TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 tests.go:350: Base Branch: main -TestRunStandardUpgradeSolution 2025-02-23T18:36:31+05:30 git.go:400: Remote name: upstream-ya055x -TestRunExistingInstance 2025-02-23T18:36:31+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunRestoredDBExample 2025-02-23T18:36:31+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 git.go:415: Fetch output: - [] -Commit Messages (main): -TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:382: Temporarily disabling UseTerraformWorkspace in Upgrade Test as temporary directories are used instead of workspaces -TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:403: TEMP PR DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331 -TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:415: TEMP UPGRADE BASE DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-wqj45p2116203492 -TestRunStandardUpgradeSolution 2025-02-23T18:36:32+05:30 tests.go:438: Copied current code to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331 -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:32+05:30 logger.go:67: - icd_mongodb.backup_key_crn_parser in .terraform/modules/icd_mongodb.backup_key_crn_parser/modules/crn-parser -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:32+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for icd_mongodb.cbr_rule... -2025/02/23 18:36:32 Region us-south VPC count: 12 -2025/02/23 18:36:32 --- new best region is us-south -2025/02/23 18:36:32 Best region was found!: us-south -2025/02/23 18:36:32 Error getting least vpc region -TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform--f0zulz913650281 -TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 tests.go:75: TEMP CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform--2qbilr3162798947 -TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 tests.go:618: START: Init / Plan / Show w/Struct -TestPlanICDVersions/6.0 2025-02-23T18:36:32+05:30 retry.go:91: terraform [init -upgrade=true] -TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 tests.go:618: START: Init / Plan / Show w/Struct -TestPlanICDVersions/7.0 2025-02-23T18:36:32+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 git.go:491: Cloned base repo and branch with authentication -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:473: Init / Apply on Base repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:474: Init / Apply on Base branch: main -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 tests.go:475: Init / Apply on Base branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-wqj45p2116203492/solutions/standard -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Initializing the backend... -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Upgrading modules... -TestRunStandardUpgradeSolution 2025-02-23T18:36:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.8 for kms... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:33+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... -TestRunExistingInstance 2025-02-23T18:36:34+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... -TestRunRestoredDBExample 2025-02-23T18:36:34+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:34+05:30 logger.go:67: - icd_mongodb.cbr_rule in .terraform/modules/icd_mongodb.cbr_rule/modules/cbr-rule-module -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:34+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for icd_mongodb.kms_key_crn_parser... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:35+05:30 logger.go:67: - icd_mongodb.kms_key_crn_parser in .terraform/modules/icd_mongodb.kms_key_crn_parser/modules/crn-parser -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for key_protect_all_inclusive... -TestRunStandardUpgradeSolution 2025-02-23T18:36:35+05:30 logger.go:67: - kms in .terraform/modules/kms -TestRunStandardUpgradeSolution 2025-02-23T18:36:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.existing_key_ring_keys... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.kms_keys... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... - tests.go:106: [SCHEMATICS] Workspace Created: mongodb-st-da-s6ixic (us-east.workspace.mongodb-st-da-s6ixic.bef18192) - schematics.go:233: [SCHEMATICS] Creating TAR file - schematics.go:239: [SCHEMATICS] Uploading TAR file -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:37+05:30 logger.go:67: - key_protect_all_inclusive in .terraform/modules/key_protect_all_inclusive -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:37+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for key_protect_all_inclusive.existing_key_ring_keys... -TestRunStandardUpgradeSolution 2025-02-23T18:36:38+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys -TestRunStandardUpgradeSolution 2025-02-23T18:36:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb in ../../modules/fscloud -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb in ../.. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb_instance_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: - mongodb_instance_crn_parser in .terraform/modules/mongodb_instance_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:39+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:40+05:30 logger.go:67: - key_protect_all_inclusive.existing_key_ring_keys in .terraform/modules/key_protect_all_inclusive.existing_key_ring_keys -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:40+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for key_protect_all_inclusive.key_protect... -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ Error: Failed to query available provider packages -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ All modules should specify their required_providers so that external -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │ command: -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: │  terraform providers -TestRunExistingInstance 2025-02-23T18:36:41+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-23T18:36:41+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestRunExistingInstance 2025-02-23T18:36:41+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardUpgradeSolution 2025-02-23T18:36:41+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect -TestRunStandardUpgradeSolution 2025-02-23T18:36:41+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:42+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:42+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager_service_credentials... -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: selections it made above. Include this file in your version control repository -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: you run "terraform init" in the future. -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Terraform has been successfully initialized! -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67:  -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: should now work. -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: ╷ -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ Error: Value for undeclared variable -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │  -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ A variable named "mongo_db_crn" was assigned on the command line, but the -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ root module does not declare a variable of that name. To use this value, -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: │ add a "variable" block to the configuration. -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 logger.go:67: ╵ -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Value for undeclared variable -│  -│ A variable named "mongo_db_crn" was assigned on the command line, but the -│ root module does not declare a variable of that name. To use this value, -│ add a "variable" block to the configuration. -╵} -=== NAME TestRunRestoredDBExample - tests.go:663: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:102 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001713908)} - Test: TestRunRestoredDBExample - Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Value for undeclared variable - │  - │ A variable named "mongo_db_crn" was assigned on the command line, but the - │ root module does not declare a variable of that name. To use this value, - │ add a "variable" block to the configuration. - ╵}) -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 tests.go:664: FINISHED: Init / Apply -TestRunRestoredDBExample 2025-02-23T18:36:42+05:30 retry.go:91: terraform [output -no-color -json] -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:196: START: Destroy -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var resource_tags=[] -var prefix=mongo-restored-tmpaok -var region=us-south -var mongo_db_crn=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:10e1efff-d5fa-4d83-adef-f47f81ac5f00:: -var resource_group=geretain-test-mongo -lock=false] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: - key_protect_all_inclusive.key_protect in .terraform/modules/key_protect_all_inclusive.key_protect -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for key_protect_all_inclusive.key_protect.cbr_rule... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: - key_protect_all_inclusive.key_protect.cbr_rule in .terraform/modules/key_protect_all_inclusive.key_protect.cbr_rule/modules/cbr-rule-module -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:43+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for key_protect_all_inclusive.kms_key_rings... -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: ╷ -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ Error: Value for undeclared variable -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │  -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ A variable named "mongo_db_crn" was assigned on the command line, but the -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ root module does not declare a variable of that name. To use this value, -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: │ add a "variable" block to the configuration. -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 command.go:206: ╵ -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Value for undeclared variable -│  -│ A variable named "mongo_db_crn" was assigned on the command line, but the -│ root module does not declare a variable of that name. To use this value, -│ add a "variable" block to the configuration. -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:585 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:102 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Value for undeclared variable - │  - │ A variable named "mongo_db_crn" was assigned on the command line, but the - │ root module does not declare a variable of that name. To use this value, - │ add a "variable" block to the configuration. - ╵} - Test: TestRunRestoredDBExample -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Value for undeclared variable -│  -│ A variable named "mongo_db_crn" was assigned on the command line, but the -│ root module does not declare a variable of that name. To use this value, -│ add a "variable" block to the configuration. -╵} -TestRunRestoredDBExample 2025-02-23T18:36:43+05:30 tests.go:266: END: Destroy - other_test.go:103: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:103 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001713908)} - Test: TestRunRestoredDBExample - Messages: This should not have errored - other_test.go:104: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:104 - Error: Expected value not to be nil. - Test: TestRunRestoredDBExample - Messages: Expected some output ---- FAIL: TestRunRestoredDBExample (20.04s) -TestRunStandardUpgradeSolution 2025-02-23T18:36:44+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module -TestRunStandardUpgradeSolution 2025-02-23T18:36:44+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:44+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:44+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: - key_protect_all_inclusive.kms_key_rings in .terraform/modules/key_protect_all_inclusive.kms_key_rings -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for key_protect_all_inclusive.kms_keys... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: - key_protect_all_inclusive.kms_keys in .terraform/modules/key_protect_all_inclusive.kms_keys -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:45+05:30 logger.go:67: Downloading https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6 for resource_group... -TestRunExistingInstance 2025-02-23T18:36:46+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Initializing the backend... -TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: - database in ../.. -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:46+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager... -TestRunExistingInstance 2025-02-23T18:36:46+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings -TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.kms_keys... -TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys -TestRunStandardUpgradeSolution 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... -TestPlanICDVersions/6.0 2025-02-23T18:36:47+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/6.0 2025-02-23T18:36:47+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:47+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:47+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials.secrets... -TestPlanICDVersions/7.0 2025-02-23T18:36:48+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/7.0 2025-02-23T18:36:48+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunExistingInstance 2025-02-23T18:36:49+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb in ../../modules/fscloud -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager in .terraform/modules/secrets_manager -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for secrets_manager.cbr_rule... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb in ../.. -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager.cbr_rule in .terraform/modules/secrets_manager.cbr_rule/modules/cbr-rule-module -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: - secrets_manager.secrets in .terraform/modules/secrets_manager/modules/secrets -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager.secrets.secret_groups... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:36:49+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for sm_instance_crn_parser... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - sm_instance_crn_parser in .terraform/modules/sm_instance_crn_parser/modules/crn-parser -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: Initializing provider plugins... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:50+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... -TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module -TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... -TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:36:51+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunStandardUpgradeSolution 2025-02-23T18:36:52+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunStandardUpgradeSolution 2025-02-23T18:36:52+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.9 for secrets_manager_service_credentials... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:52+05:30 logger.go:67: - secrets_manager.secrets.secret_groups in .terraform/modules/secrets_manager.secrets.secret_groups -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:52+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager.secrets.secrets... -TestPlanICDVersions/6.0 2025-02-23T18:36:52+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:52+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... -TestPlanICDVersions/7.0 2025-02-23T18:36:53+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: Initializing provider plugins... -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunExistingInstance 2025-02-23T18:36:54+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager.secrets.secrets in .terraform/modules/secrets_manager.secrets.secrets -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_secrets_group... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_secrets_group in .terraform/modules/secrets_manager_secrets_group -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials_cert... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials_cert in .terraform/modules/secrets_manager_service_credentials_cert -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials_user_pass... -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials_user_pass in .terraform/modules/secrets_manager_service_credentials_user_pass -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: ╷ -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ Error: Failed to download module -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  on main.tf line 20: -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  20: module "resource_group" { -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │  -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ Could not download module "resource_group" (main.tf:20) source code from -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ error downloading -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: │ no source URL was returned -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 logger.go:67: ╵ -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Failed to download module -│  -│  on main.tf line 20: -│  20: module "resource_group" { -│  -│ Could not download module "resource_group" (main.tf:20) source code from -│ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": -│ error downloading -│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': -│ no source URL was returned -╵} -=== NAME TestRunCompleteExampleOtherVersion - tests.go:663: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:49 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c060)} - Test: TestRunCompleteExampleOtherVersion - Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Failed to download module - │  - │  on main.tf line 20: - │  20: module "resource_group" { - │  - │ Could not download module "resource_group" (main.tf:20) source code from - │ "https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6": - │ error downloading - │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=v1.1.6': - │ no source URL was returned - ╵}) -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:664: FINISHED: Init / Apply -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:282: Skipping automatic Test Teardown - other_test.go:50: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:50 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c060)} - Test: TestRunCompleteExampleOtherVersion - Messages: This should not have errored - other_test.go:51: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:51 - Error: Expected value not to be nil. - Test: TestRunCompleteExampleOtherVersion - Messages: Expected some output -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:121: Running command terraform with args [output -no-color -json] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: {} - other_test.go:57: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:57 - Error: Received unexpected error: - output: 'port' was not found - output: 'hostname' was not found - Test: TestRunCompleteExampleOtherVersion - Messages: Some outputs not found or nil -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [output -no-color -json] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:196: START: Destroy -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=mongodb-complete-test-ede05r -var region=eu-de -var existing_sm_instance_region=us-south -var users=[{"name" = "testuser", "password" = "A16LIpfJgUXs8A4", "type" = "database"}] -var existing_sm_instance_guid=79c6d411-c18f-4670-b009-b0044a238667 -var admin_pass=A16LIpfJgUXs8A4 -var mongodb_version=7.0 -var resource_group=geretain-test-mongo -var resource_tags=[] -lock=false] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var prefix=mongodb-complete-test-ede05r -var region=eu-de -var existing_sm_instance_region=us-south -var users=[{"name" = "testuser", "password" = "A16LIpfJgUXs8A4", "type" = "database"}] -var existing_sm_instance_guid=79c6d411-c18f-4670-b009-b0044a238667 -var admin_pass=A16LIpfJgUXs8A4 -var mongodb_version=7.0 -var resource_group=geretain-test-mongo -var resource_tags=[] -lock=false] -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: ╷ -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ Error: Module not installed -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  on main.tf line 20: -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  20: module "resource_group" { -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │  -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ This module is not yet installed. Run "terraform init" to install all -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: │ modules required by this configuration. -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 command.go:206: ╵ -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Module not installed -│  -│  on main.tf line 20: -│  20: module "resource_group" { -│  -│ This module is not yet installed. Run "terraform init" to install all -│ modules required by this configuration. -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:121 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Module not installed - │  - │  on main.tf line 20: - │  20: module "resource_group" { - │  - │ This module is not yet installed. Run "terraform init" to install all - │ modules required by this configuration. - ╵} - Test: TestRunCompleteExampleOtherVersion -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Module not installed -│  -│  on main.tf line 20: -│  20: module "resource_group" { -│  -│ This module is not yet installed. Run "terraform init" to install all -│ modules required by this configuration. -╵} -TestRunCompleteExampleOtherVersion 2025-02-23T18:36:55+05:30 tests.go:266: END: Destroy -TestRunStandardUpgradeSolution 2025-02-23T18:36:55+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets -TestRunStandardUpgradeSolution 2025-02-23T18:36:55+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... ---- FAIL: TestRunCompleteExampleOtherVersion (32.36s) -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:56+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:56+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... -TestRunExistingInstance 2025-02-23T18:36:57+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... -TestRunStandardUpgradeSolution 2025-02-23T18:36:57+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: selections it made above. Include this file in your version control repository -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: you run "terraform init" in the future. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Terraform has been successfully initialized! -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67:  -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: should now work. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] -TestRunStandardSolutionIBMKeys 2025-02-23T18:36:57+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] -TestRunStandardUpgradeSolution 2025-02-23T18:36:57+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.7.0 for secrets_manager_service_credentials.secrets... -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared local value -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  268: identifier = local.existing_redis_guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ A local value with the name "existing_redis_guid" has not been declared. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  360: target_resource_instance_id = module.mongodb.guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 7, in output "id": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  7: value = module.mongodb.id -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "id" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 12, in output "version": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  12: value = module.mongodb.version -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "version" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 17, in output "guid": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  17: value = module.mongodb.guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 22, in output "crn": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  22: value = module.mongodb.crn -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "crn" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 27, in output "cbr_rule_ids": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  27: value = module.mongodb.cbr_rule_ids -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "cbr_rule_ids" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 32, in output "service_credentials_json": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  32: value = module.mongodb.service_credentials_json -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "service_credentials_json" for a specific element of the list, or -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ across all elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 38, in output "service_credentials_object": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  38: value = module.mongodb.service_credentials_object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "service_credentials_object" for a specific element of the list, -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ or across all elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on outputs.tf line 44, in output "adminuser": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  44: value = module.mongodb.adminuser -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ attribute "adminuser" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared input variable -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Reference to undeclared input variable -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} -=== NAME TestRunStandardSolutionIBMKeys - tests.go:663: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:663 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:583 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:237 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c1c8)} - Test: TestRunStandardSolutionIBMKeys - Messages: Failed%!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Reference to undeclared local value - │  - │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": - │  268: identifier = local.existing_redis_guid - │  - │ A local value with the name "existing_redis_guid" has not been declared. - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": - │  360: target_resource_instance_id = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 7, in output "id": - │  7: value = module.mongodb.id - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "id" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 12, in output "version": - │  12: value = module.mongodb.version - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "version" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 17, in output "guid": - │  17: value = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 22, in output "crn": - │  22: value = module.mongodb.crn - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "crn" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 27, in output "cbr_rule_ids": - │  27: value = module.mongodb.cbr_rule_ids - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "cbr_rule_ids" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 32, in output "service_credentials_json": - │  32: value = module.mongodb.service_credentials_json - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_json" for a specific element of the list, or - │ across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 38, in output "service_credentials_object": - │  38: value = module.mongodb.service_credentials_object - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_object" for a specific element of the list, - │ or across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 44, in output "adminuser": - │  44: value = module.mongodb.adminuser - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "adminuser" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵}) -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 tests.go:664: FINISHED: Init / Apply -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:91: terraform [output -no-color -json] -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 tests.go:196: START: Destroy -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:00+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var mongodb_version=7.0 -var provider_visibility=public -var resource_group_name=mongodb-icd-key-zqz3wy -var use_ibm_owned_encryption_key=true -lock=false] -TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets -TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: Initializing provider plugins... -TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... -TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... -TestRunStandardUpgradeSolution 2025-02-23T18:37:00+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ Error: Failed to query available provider packages -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ All modules should specify their required_providers so that external -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │ command: -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: │  terraform providers -TestRunExistingInstance 2025-02-23T18:37:00+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-23T18:37:00+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestRunExistingInstance 2025-02-23T18:37:00+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared local value -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  268: identifier = local.existing_redis_guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ A local value with the name "existing_redis_guid" has not been declared. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  360: target_resource_instance_id = module.mongodb.guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 7, in output "id": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  7: value = module.mongodb.id -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "id" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 12, in output "version": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  12: value = module.mongodb.version -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "version" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 17, in output "guid": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  17: value = module.mongodb.guid -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 22, in output "crn": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  22: value = module.mongodb.crn -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "crn" for a specific element of the list, or across all elements -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 27, in output "cbr_rule_ids": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  27: value = module.mongodb.cbr_rule_ids -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "cbr_rule_ids" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 32, in output "service_credentials_json": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  32: value = module.mongodb.service_credentials_json -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "service_credentials_json" for a specific element of the list, or -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ across all elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 38, in output "service_credentials_object": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  38: value = module.mongodb.service_credentials_object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "service_credentials_object" for a specific element of the list, -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ or across all elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on outputs.tf line 44, in output "adminuser": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  44: value = module.mongodb.adminuser -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  ├──────────────── -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ attribute "adminuser" for a specific element of the list, or across all -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ elements of the list? -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared input variable -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╷ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ Error: Reference to undeclared input variable -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │  -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 command.go:206: ╵ -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:585 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:237 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Reference to undeclared local value - │  - │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": - │  268: identifier = local.existing_redis_guid - │  - │ A local value with the name "existing_redis_guid" has not been declared. - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": - │  360: target_resource_instance_id = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 7, in output "id": - │  7: value = module.mongodb.id - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "id" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 12, in output "version": - │  12: value = module.mongodb.version - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "version" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 17, in output "guid": - │  17: value = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 22, in output "crn": - │  22: value = module.mongodb.crn - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "crn" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 27, in output "cbr_rule_ids": - │  27: value = module.mongodb.cbr_rule_ids - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "cbr_rule_ids" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 32, in output "service_credentials_json": - │  32: value = module.mongodb.service_credentials_json - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_json" for a specific element of the list, or - │ across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 38, in output "service_credentials_object": - │  38: value = module.mongodb.service_credentials_object - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_object" for a specific element of the list, - │ or across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 44, in output "adminuser": - │  44: value = module.mongodb.adminuser - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "adminuser" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵} - Test: TestRunStandardSolutionIBMKeys -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} -TestRunStandardSolutionIBMKeys 2025-02-23T18:37:01+05:30 tests.go:266: END: Destroy - pr_test.go:238: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:238 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x1400194c1c8)} - Test: TestRunStandardSolutionIBMKeys - Messages: This should not have errored - pr_test.go:239: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:239 - Error: Expected value not to be nil. - Test: TestRunStandardSolutionIBMKeys - Messages: Expected some output ---- FAIL: TestRunStandardSolutionIBMKeys (38.40s) -TestRunStandardUpgradeSolution 2025-02-23T18:37:03+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... -TestRunExistingInstance 2025-02-23T18:37:05+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Initializing the backend... -TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: - database in ../.. -TestRunExistingInstance 2025-02-23T18:37:05+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:37:06+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) -TestRunStandardUpgradeSolution 2025-02-23T18:37:06+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunStandardUpgradeSolution 2025-02-23T18:37:08+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunExistingInstance 2025-02-23T18:37:08+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-23T18:37:08+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... -TestRunExistingInstance 2025-02-23T18:37:08+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... -TestPlanICDVersions/6.0 2025-02-23T18:37:08+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/6.0 2025-02-23T18:37:08+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: selections it made above. Include this file in your version control repository -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: you run "terraform init" in the future. -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Terraform has been successfully initialized! -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: should now work. -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false] -TestRunStandardUpgradeSolution 2025-02-23T18:37:10+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false] -TestPlanICDVersions/7.0 2025-02-23T18:37:10+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/7.0 2025-02-23T18:37:10+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module -TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... -TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:37:11+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: Initializing provider plugins... -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... -TestPlanICDVersions/6.0 2025-02-23T18:37:13+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:37:13+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunExistingInstance 2025-02-23T18:37:14+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunStandardUpgradeSolution 2025-02-23T18:37:14+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Reading... -TestRunStandardUpgradeSolution 2025-02-23T18:37:15+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... -TestPlanICDVersions/7.0 2025-02-23T18:37:15+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-23T18:37:16+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] -TestRunExistingInstance 2025-02-23T18:37:16+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ Error: Failed to query available provider packages -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ All modules should specify their required_providers so that external -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │ command: -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: │  terraform providers -TestRunExistingInstance 2025-02-23T18:37:19+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-23T18:37:19+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestRunExistingInstance 2025-02-23T18:37:19+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Terraform used the selected providers to generate the following execution -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: <= read (data resources) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Terraform will perform the following actions: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # random_password.admin_password[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "random_password" "admin_password" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + bcrypt_hash = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + length = 32 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + lower = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_lower = 0 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_numeric = 1 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_special = 0 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + min_upper = 0 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + number = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + numeric = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + override_special = "-_" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + result = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + special = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + upper = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_at = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + default = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "mongodb-st-da-upg-wqj45p" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + payment_methods_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + quota_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + quota_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_linkages = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + state = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + teams_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_at = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key_rings" "key_ring" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + force_delete = false -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key" "key" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + force_delete = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_name = "mongodb-key" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + payload = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + registrations = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + standard_key = false -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_kms_key_policies" "root_key_policy" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + dual_auth_delete { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + creation_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + enabled = false -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + last_update_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + rotation { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + created_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + creation_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + enabled = true -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + interval_month = 3 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + last_update_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + updated_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.data.ibm_database_connection.database_connection will be read during apply -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: # (config refers to values not yet known) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + amqps = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + analytics = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + bi_connector = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cli = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + deployment_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + emp = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + endpoint_type = "private" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + grpc = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + https = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mongodb = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mqtts = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + mysql = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + ops_manager = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + postgres = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + rediss = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + secure = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + stomp_ssl = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + user_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + user_type = "database" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_database.mongodb will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_database" "mongodb" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminpassword = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminuser = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + backup_encryption_key_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + configuration_schema = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + deletion_protection = false -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + groups = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + guid = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + key_protect_key = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + location = "us-south" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "mongodb" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + plan = "standard" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_group_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + service = "databases-for-mongodb" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + service_endpoints = "private" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tags = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + auto_scaling (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + group { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + group_id = "member" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cpu { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_count = 0 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + disk { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_mb = 10240 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + host_flavor { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = "multitenant" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + members { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_count = 3 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + memory { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + allocation_mb = 4096 -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + timeouts { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create = "120m" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + delete = "15m" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + update = "120m" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_iam_authorization_policy" "kms_policy" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + description = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + roles = [ -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "Reader", -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: ] -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_instance_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_resource_type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_service_account = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + source_service_name = "databases-for-mongodb" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_instance_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_resource_type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + target_service_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + transaction_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "accountId" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "resource" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "resourceType" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = "key" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "serviceInstance" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + name = "serviceName" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + subject_attributes (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "ibm_resource_tag" "mongodb_tag" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + account_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + replace = false -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + resource_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tag_type = "access" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + tags = [ -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "geretain-dev-1:permanent-test-tag-4", -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + "geretain-dev:permanent-test-tag-1", -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: ] -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  + resource "time_sleep" "wait_for_authorization_policy" { -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + create_duration = "30s" -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Plan: 9 to add, 0 to change, 0 to destroy. -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: Changes to Outputs: -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + adminuser = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + cbr_rule_ids = [] -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + certificate_base64 = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + guid = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + hostname = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + port = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: random_password.admin_password[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-23T18:37:20+05:30 logger.go:67: random_password.admin_password[0]: Creation complete after 0s [id=none] -TestRunStandardUpgradeSolution 2025-02-23T18:37:22+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creating... -TestRunStandardUpgradeSolution 2025-02-23T18:37:22+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... -TestRunExistingInstance 2025-02-23T18:37:24+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Initializing the backend... -TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: - database in ../.. -TestRunExistingInstance 2025-02-23T18:37:24+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-23T18:37:25+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 4s [id=c25adf4fc71a4118b4cfcc1c6bd066ed] -TestRunExistingInstance 2025-02-23T18:37:27+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:37:27+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... -TestRunStandardUpgradeSolution 2025-02-23T18:37:27+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creation complete after 6s [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-23T18:37:27+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creating... -TestPlanICDVersions/7.0 2025-02-23T18:37:29+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/7.0 2025-02-23T18:37:29+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module -TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... -TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-23T18:37:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunStandardUpgradeSolution 2025-02-23T18:37:32+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creation complete after 4s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:a39aeb99-9d56-40a4-a71e-f74412b9647f] -TestRunStandardUpgradeSolution 2025-02-23T18:37:32+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creating... -TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: Initializing provider plugins... -TestRunExistingInstance 2025-02-23T18:37:32+05:30 logger.go:67: - Finding phillbaker/mongodb versions matching ">= 2.0.7"... -TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... -TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunExistingInstance 2025-02-23T18:37:33+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestPlanICDVersions/7.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [init -upgrade=true] -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Failed to download module -│  -│  on main.tf line 5: -│  5: module "resource_group" { -│  -│ Could not download module "resource_group" (main.tf:5) source code from -│ "git::https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d": -│ error downloading -│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d': -│ /usr/bin/git exited with 128: Cloning into -│ '.terraform/modules/resource_group'... -│ fatal: unable to access -│ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group/': -│ Failed to connect to github.com port 443 after 15427 ms: Couldn't connect -│ to server -│ . -╵} -=== NAME TestPlanICDVersions/6.0 - tests.go:635: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:609 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001712120)} - Test: TestPlanICDVersions/6.0 - Messages: Failed to create plan: %!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Failed to download module - │  - │  on main.tf line 5: - │  5: module "resource_group" { - │  - │ Could not download module "resource_group" (main.tf:5) source code from - │ "git::https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d": - │ error downloading - │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group?ref=0c4a55a6ce0e592a4cffc9d160066040d094fa1d': - │ /usr/bin/git exited with 128: Cloning into - │ '.terraform/modules/resource_group'... - │ fatal: unable to access - │ 'https://github.com/terraform-ibm-modules/terraform-ibm-resource-group/': - │ Failed to connect to github.com port 443 after 15427 ms: Couldn't connect - │ to server - │ . - ╵}) -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [output -no-color -json] -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 tests.go:196: START: Destroy -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var mongodb_version=6.0 -var prefix=-f0zulz -var region=us-south -var resource_tags=[] -lock=false] -TestPlanICDVersions/6.0 2025-02-23T18:37:34+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var mongodb_version=6.0 -var prefix=-f0zulz -var region=us-south -var resource_tags=[] -lock=false] -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: ╷ -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ Error: Module not installed -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  on main.tf line 5: -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  5: module "resource_group" { -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │  -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ This module is not yet installed. Run "terraform init" to install all -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: │ modules required by this configuration. -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 command.go:206: ╵ -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Module not installed -│  -│  on main.tf line 5: -│  5: module "resource_group" { -│  -│ This module is not yet installed. Run "terraform init" to install all -│ modules required by this configuration. -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:610 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Module not installed - │  - │  on main.tf line 5: - │  5: module "resource_group" { - │  - │ This module is not yet installed. Run "terraform init" to install all - │ modules required by this configuration. - ╵} - Test: TestPlanICDVersions/6.0 -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Module not installed -│  -│  on main.tf line 5: -│  5: module "resource_group" { -│  -│ This module is not yet installed. Run "terraform init" to install all -│ modules required by this configuration. -╵} -TestPlanICDVersions/6.0 2025-02-23T18:37:35+05:30 tests.go:266: END: Destroy - other_test.go:73: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:73 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x14001712120)} - Test: TestPlanICDVersions/6.0 - Messages: This should not have errored - other_test.go:74: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:74 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected value not to be nil. - Test: TestPlanICDVersions/6.0 - Messages: Expected some output -TestRunExistingInstance 2025-02-23T18:37:36+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... -TestRunStandardUpgradeSolution 2025-02-23T18:37:37+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creation complete after 6s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:a39aeb99-9d56-40a4-a71e-f74412b9647f] -TestRunStandardUpgradeSolution 2025-02-23T18:37:37+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creating... -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ Error: Failed to query available provider packages -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ Could not retrieve the list of available versions for provider -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ phillbaker/mongodb: provider registry registry.terraform.io does not have a -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ provider named registry.terraform.io/phillbaker/mongodb -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ All modules should specify their required_providers so that external -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ consumers will get the correct providers when using a module. To see which -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ modules are currently depending on phillbaker/mongodb, run the following -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │ command: -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: │  terraform providers -TestRunExistingInstance 2025-02-23T18:37:39+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-23T18:37:39+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestRunExistingInstance 2025-02-23T18:37:39+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -TestRunStandardUpgradeSolution 2025-02-23T18:37:43+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creation complete after 6s [id=a6d41af2-0242-4e4e-b7c2-1d69bbd0608c] -TestRunStandardUpgradeSolution 2025-02-23T18:37:43+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creating... -=== NAME TestRunExistingInstance - pr_test.go:173: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:173 - Error: Should be true - Test: TestRunExistingInstance - Messages: Init and Apply of temp existing resource failed -TestRunExistingInstance 2025-02-23T18:37:44+05:30 pr_test.go:210: START: Destroy (existing resources) -TestRunExistingInstance 2025-02-23T18:37:44+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=mongodb-t-ujp0he -var region=us-south -var mongodb_version=7.0 -var service_endpoints=public-and-private -lock=false] -TestRunExistingInstance 2025-02-23T18:37:44+05:30 logger.go:67: Running command terraform with args [destroy -auto-approve -input=false -var prefix=mongodb-t-ujp0he -var region=us-south -var mongodb_version=7.0 -var service_endpoints=public-and-private -lock=false] -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ Error: Inconsistent dependency lock file -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ The following dependency selections recorded in the lock file are -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ inconsistent with the current configuration: -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ To make the initial dependency selections that will initialize the -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │ dependency lock file, run: -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: │  terraform init -TestRunExistingInstance 2025-02-23T18:37:45+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-23T18:37:45+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Inconsistent dependency lock file -│  -│ The following dependency selections recorded in the lock file are -│ inconsistent with the current configuration: -│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected -│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected -│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected -│  -│ To make the initial dependency selections that will initialize the -│ dependency lock file, run: -│  terraform init -╵} - destroy.go:11: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/gruntwork-io/terratest@v0.48.2/modules/terraform/destroy.go:11 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:211 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Inconsistent dependency lock file - │  - │ The following dependency selections recorded in the lock file are - │ inconsistent with the current configuration: - │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected - │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected - │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected - │  - │ To make the initial dependency selections that will initialize the - │ dependency lock file, run: - │  terraform init - ╵} - Test: TestRunExistingInstance ---- FAIL: TestRunExistingInstance (81.86s) -=== NAME TestRunStandardSolutionSchematics - schematics.go:557: [SCHEMATICS] ... still waiting for job TAR_WORKSPACE_UPLOAD to complete: 1 minutes - schematics.go:566: [SCHEMATICS] The status of job TAR_WORKSPACE_UPLOAD is: COMPLETED - tests.go:136: [SCHEMATICS] Updating Workspace Variablestore -TestPlanICDVersions/7.0 2025-02-23T18:37:48+05:30 retry.go:144: 'terraform [init -upgrade=true]' failed with the error 'error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵' but this error was expected and warrants a retry. Further details: Failed to retrieve plugin due to transient network error. - -TestPlanICDVersions/7.0 2025-02-23T18:37:48+05:30 retry.go:103: terraform [init -upgrade=true] returned an error: error while running command: exit status 1; ╷ -│ Error: Failed to query available provider packages -│  -│ Could not retrieve the list of available versions for provider -│ phillbaker/mongodb: provider registry registry.terraform.io does not have a -│ provider named registry.terraform.io/phillbaker/mongodb -│  -│ All modules should specify their required_providers so that external -│ consumers will get the correct providers when using a module. To see which -│ modules are currently depending on phillbaker/mongodb, run the following -│ command: -│  terraform providers -╵. Sleeping for 5s and will try again. -=== NAME TestPlanICDVersions/7.0 - tests.go:635: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:609 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected nil, but got: retry.MaxRetriesExceeded{Description:"terraform [init -upgrade=true]", MaxRetries:3} - Test: TestPlanICDVersions/7.0 - Messages: Failed to create plan: %!(EXTRA retry.MaxRetriesExceeded='terraform [init -upgrade=true]' unsuccessful after 3 retries) -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:91: terraform [output -no-color -json] -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:196: START: Destroy -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var prefix=-2qbilr -var region=us-south -var resource_tags=[] -var mongodb_version=7.0 -lock=false] -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var prefix=-2qbilr -var region=us-south -var resource_tags=[] -var mongodb_version=7.0 -lock=false] -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: ╷ -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ Error: Inconsistent dependency lock file -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ The following dependency selections recorded in the lock file are -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ inconsistent with the current configuration: -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ To make the initial dependency selections that will initialize the -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │ dependency lock file, run: -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: │  terraform init -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 command.go:206: ╵ -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Inconsistent dependency lock file -│  -│ The following dependency selections recorded in the lock file are -│ inconsistent with the current configuration: -│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected -│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected -│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected -│  -│ To make the initial dependency selections that will initialize the -│ dependency lock file, run: -│  terraform init -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:610 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:72 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Inconsistent dependency lock file - │  - │ The following dependency selections recorded in the lock file are - │ inconsistent with the current configuration: - │  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected - │  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected - │  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected - │  - │ To make the initial dependency selections that will initialize the - │ dependency lock file, run: - │  terraform init - ╵} - Test: TestPlanICDVersions/7.0 -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Inconsistent dependency lock file -│  -│ The following dependency selections recorded in the lock file are -│ inconsistent with the current configuration: -│  - provider registry.terraform.io/hashicorp/time: required by this configuration but no version is selected -│  - provider registry.terraform.io/ibm-cloud/ibm: required by this configuration but no version is selected -│  - provider registry.terraform.io/phillbaker/mongodb: required by this configuration but no version is selected -│  -│ To make the initial dependency selections that will initialize the -│ dependency lock file, run: -│  terraform init -╵} -TestPlanICDVersions/7.0 2025-02-23T18:37:53+05:30 tests.go:266: END: Destroy - other_test.go:73: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:73 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected nil, but got: retry.MaxRetriesExceeded{Description:"terraform [init -upgrade=true]", MaxRetries:3} - Test: TestPlanICDVersions/7.0 - Messages: This should not have errored - other_test.go:74: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:74 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/other_test.go:83 - Error: Expected value not to be nil. - Test: TestPlanICDVersions/7.0 - Messages: Expected some output ---- FAIL: TestPlanICDVersions (2.26s) - --- FAIL: TestPlanICDVersions/6.0 (69.64s) - --- FAIL: TestPlanICDVersions/7.0 (88.28s) -TestRunStandardUpgradeSolution 2025-02-23T18:37:53+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [10s elapsed] -=== NAME TestRunStandardSolutionSchematics - tests.go:152: [SCHEMATICS] Starting PLAN job ... -TestRunStandardUpgradeSolution 2025-02-23T18:38:03+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:38:13+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:38:13+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creation complete after 30s [id=2025-02-23T13:08:13Z] -TestRunStandardUpgradeSolution 2025-02-23T18:38:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creating... -TestRunStandardUpgradeSolution 2025-02-23T18:38:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [10s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:38:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:38:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:38:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [40s elapsed] - schematics.go:557: [SCHEMATICS] ... still waiting for job PLAN to complete: 1 minutes -TestRunStandardUpgradeSolution 2025-02-23T18:39:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [50s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:39:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:39:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:39:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:39:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m31s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:39:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m41s elapsed] - schematics.go:557: [SCHEMATICS] ... still waiting for job PLAN to complete: 2 minutes - schematics.go:566: [SCHEMATICS] The status of job PLAN is: FAILED - tests.go:155: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testschematic/tests.go:155 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testschematic/tests.go:27 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:113 - Error: Not equal: - expected: "COMPLETED" - actual : "FAILED" - - Diff: - --- Expected - +++ Actual - @@ -1 +1 @@ - -COMPLETED - +FAILED - Test: TestRunStandardSolutionSchematics - Messages: PLAN has failed with status FAILED - [ mongodb-st-da-s6ixic (us-east.workspace.mongodb-st-da-s6ixic.bef18192) ] - tests.go:513: =============== BEGIN PLAN JOB LOG (us-east.workspace.mongodb-st-da-s6ixic.bef18192) =============== - SCHEMATICS LOG URL: https://cloud.ibm.com/schematics/workspaces/us-east.workspace.mongodb-st-da-s6ixic.bef18192/log/5a6ed1c596a9f24d2826f780c8963cc3 - 2025/02/23 13:08:06 ----- New Workspace Action ----- - 2025/02/23 13:08:06 Request: activitId=5a6ed1c596a9f24d2826f780c8963cc3, account=abac0df06b644a9cabc6e44f55b3880e, owner=Aatreyee.Mukherjee@ibm.com, requestID=7fd15a70-01e0-468a-9c14-301ddd62ec1b - 2025/02/23 13:08:07 Related Activity: action=PLAN, workspaceID=us-east.workspace.mongodb-st-da-s6ixic.bef18192, processedBy=orchestrator-6cb446ddb7-gx9wh - 2025/02/23 13:08:07 Related Workspace: name=mongodb-st-da-s6ixic, sourcerelease=(not specified), sourceurl=, folder=solutions/standard - 2025/02/23 13:08:11 --- Ready to execute the command --- - 2025/02/23 13:08:13 workspace.template.EnvFile: 54c57457-c6df-4049-813b-b84de3727105 - 2025/02/23 13:08:14 workspace.template.SecFile: 9863e485-84b4-4bc1-8ec2-42e11152491c - 2025/02/23 13:08:12 ----- New Action ----- - 2025/02/23 13:08:12 Request: requestID=7fd15a70-01e0-468a-9c14-301ddd62ec1b - 2025/02/23 13:08:14 Related Activity: action=Plan, workspaceID=us-east.workspace.mongodb-st-da-s6ixic.bef18192, processedByOrchestrator=7fd15a70-01e0-468a-9c14-301ddd62ec1b_5a6ed1c596a9f24d2826f780c8963cc3, processedByJob=job12-7b594d589-6f824, actionType=Terraform - - 2025/02/23 13:08:19 ----- Terraform INIT ----- - - 2025/02/23 13:08:20 Starting command: terraform1.9 init -input=false -no-color - 2025/02/23 13:08:20 Starting command: terraform1.9 init -input=false -no-color - 2025/02/23 13:08:20 Terraform init | Initializing the backend... - 2025/02/23 13:08:20 Terraform init | Initializing modules... - 2025/02/23 13:08:20 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.7 for kms... - 2025/02/23 13:08:22 Terraform init | - kms in .terraform/modules/kms - 2025/02/23 13:08:22 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.existing_key_ring_keys... - 2025/02/23 13:08:25 Terraform init | - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys - 2025/02/23 13:08:25 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... - 2025/02/23 13:08:28 Terraform init | - kms.key_protect in .terraform/modules/kms.key_protect - 2025/02/23 13:08:28 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... - 2025/02/23 13:08:30 Terraform init | - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module - 2025/02/23 13:08:30 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... - 2025/02/23 13:08:33 Terraform init | - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings - 2025/02/23 13:08:33 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.3.1 for kms.kms_keys... - 2025/02/23 13:08:33 Terraform init | - kms.kms_keys in .terraform/modules/kms.kms_keys - 2025/02/23 13:08:33 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... - 2025/02/23 13:08:35 Terraform init | - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... - 2025/02/23 13:08:35 Terraform init | - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... - 2025/02/23 13:08:35 Terraform init | - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | - mongodb in ../../modules/fscloud - 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb in ../.. - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... - 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... - 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... - 2025/02/23 13:08:35 Terraform init | - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb_instance_crn_parser... - 2025/02/23 13:08:35 Terraform init | - mongodb_instance_crn_parser in .terraform/modules/mongodb_instance_crn_parser/modules/crn-parser - 2025/02/23 13:08:35 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... - 2025/02/23 13:08:38 Terraform init | - resource_group in .terraform/modules/resource_group - 2025/02/23 13:08:38 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.6 for secrets_manager_service_credentials... - 2025/02/23 13:08:40 Terraform init | - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets - 2025/02/23 13:08:40 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... - 2025/02/23 13:08:43 Terraform init | - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups - 2025/02/23 13:08:43 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.6.0 for secrets_manager_service_credentials.secrets... - 2025/02/23 13:08:45 Terraform init | - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets - 2025/02/23 13:08:45 Terraform init | Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for sm_instance_crn_parser... - 2025/02/23 13:08:45 Terraform init | - sm_instance_crn_parser in .terraform/modules/sm_instance_crn_parser/modules/crn-parser - 2025/02/23 13:08:45 Terraform init | Initializing provider plugins... - 2025/02/23 13:08:45 Terraform init | - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... - 2025/02/23 13:08:45 Terraform init | - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... - 2025/02/23 13:08:45 Terraform init | - Finding hashicorp/random versions matching "3.6.3"... - 2025/02/23 13:08:47 Terraform init | - Installing ibm-cloud/ibm v1.75.2... - 2025/02/23 13:08:50 Terraform init | - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) - 2025/02/23 13:08:53 Terraform init | - Installing hashicorp/time v0.12.1... - 2025/02/23 13:08:53 Terraform init | - Installed hashicorp/time v0.12.1 (signed by HashiCorp) - 2025/02/23 13:08:53 Terraform init | - Installing hashicorp/random v3.6.3... - 2025/02/23 13:08:53 Terraform init | - Installed hashicorp/random v3.6.3 (signed by HashiCorp) - 2025/02/23 13:08:53 Terraform init | Partner and community providers are signed by their developers. - 2025/02/23 13:08:53 Terraform init | If you'd like to know more about provider signing, you can read about it here: - 2025/02/23 13:08:53 Terraform init | https://www.terraform.io/docs/cli/plugins/signing.html - 2025/02/23 13:08:53 Terraform init | Terraform has created a lock file .terraform.lock.hcl to record the provider - 2025/02/23 13:08:53 Terraform init | selections it made above. Include this file in your version control repository - 2025/02/23 13:08:53 Terraform init | so that Terraform can guarantee to make the same selections by default when - 2025/02/23 13:08:53 Terraform init | you run "terraform init" in the future. - 2025/02/23 13:08:53 Terraform init | - 2025/02/23 13:08:53 Terraform init | Terraform has been successfully initialized! - 2025/02/23 13:08:53 Command finished successfully. - - 2025/02/23 13:08:53 ----- Terraform PLAN ----- - - 2025/02/23 13:08:53 Starting command: terraform1.9 plan -input=false -refresh=true -state=terraform.tfstate -var-file=schematics.tfvars -no-color -out=tfplan.binary - 2025/02/23 13:08:53 Starting command: terraform1.9 plan -input=false -refresh=true -state=terraform.tfstate -var-file=schematics.tfvars -no-color -out=tfplan.binary - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | Warning: Value for undeclared variable - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | The root module does not declare a variable named - 2025/02/23 13:09:01 Terraform plan | "admin_pass_secrets_manager_secret_name" but a value was found in file - 2025/02/23 13:09:01 Terraform plan | "schematics.tfvars". If you meant to use this value, add a "variable" block - 2025/02/23 13:09:01 Terraform plan | to the configuration. - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | To silence these warnings, use TF_VAR_... environment variables to provide - 2025/02/23 13:09:01 Terraform plan | certain "global" settings to all configurations in your organization. To - 2025/02/23 13:09:01 Terraform plan | reduce the verbosity of these warnings, use the -compact-warnings option. - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | Warning: Value for undeclared variable - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | The root module does not declare a variable named "enable_kibana_dashboard" - 2025/02/23 13:09:01 Terraform plan | but a value was found in file "schematics.tfvars". If you meant to use this - 2025/02/23 13:09:01 Terraform plan | value, add a "variable" block to the configuration. - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | To silence these warnings, use TF_VAR_... environment variables to provide - 2025/02/23 13:09:01 Terraform plan | certain "global" settings to all configurations in your organization. To - 2025/02/23 13:09:01 Terraform plan | reduce the verbosity of these warnings, use the -compact-warnings option. - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | Warning: Values for undeclared variables - 2025/02/23 13:09:01 Terraform plan | - 2025/02/23 13:09:01 Terraform plan | In addition to the other similar warnings shown, 2 other variable(s) defined - 2025/02/23 13:09:01 Terraform plan | without being declared. - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared local value - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": - 2025/02/23 13:09:02 Terraform plan | 268: identifier = local.existing_redis_guid - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | A local value with the name "existing_redis_guid" has not been declared. - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": - 2025/02/23 13:09:02 Terraform plan | 360: target_resource_instance_id = module.mongodb.guid - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "guid" for a specific element of the list, or across all elements - 2025/02/23 13:09:02 Terraform plan | of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 7, in output "id": - 2025/02/23 13:09:02 Terraform plan | 7: value = module.mongodb.id - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "id" for a specific element of the list, or across all elements of - 2025/02/23 13:09:02 Terraform plan | the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 12, in output "version": - 2025/02/23 13:09:02 Terraform plan | 12: value = module.mongodb.version - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "version" for a specific element of the list, or across all - 2025/02/23 13:09:02 Terraform plan | elements of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 17, in output "guid": - 2025/02/23 13:09:02 Terraform plan | 17: value = module.mongodb.guid - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "guid" for a specific element of the list, or across all elements - 2025/02/23 13:09:02 Terraform plan | of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 22, in output "crn": - 2025/02/23 13:09:02 Terraform plan | 22: value = module.mongodb.crn - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "crn" for a specific element of the list, or across all elements of - 2025/02/23 13:09:02 Terraform plan | the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 27, in output "cbr_rule_ids": - 2025/02/23 13:09:02 Terraform plan | 27: value = module.mongodb.cbr_rule_ids - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "cbr_rule_ids" for a specific element of the list, or across all - 2025/02/23 13:09:02 Terraform plan | elements of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 32, in output "service_credentials_json": - 2025/02/23 13:09:02 Terraform plan | 32: value = module.mongodb.service_credentials_json - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "service_credentials_json" for a specific element of the list, or - 2025/02/23 13:09:02 Terraform plan | across all elements of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 38, in output "service_credentials_object": - 2025/02/23 13:09:02 Terraform plan | 38: value = module.mongodb.service_credentials_object - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "service_credentials_object" for a specific element of the list, or - 2025/02/23 13:09:02 Terraform plan | across all elements of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Unsupported attribute - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on outputs.tf line 44, in output "adminuser": - 2025/02/23 13:09:02 Terraform plan | 44: value = module.mongodb.adminuser - 2025/02/23 13:09:02 Terraform plan | ├──────────────── - 2025/02/23 13:09:02 Terraform plan | │ module.mongodb is a list of object - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Can't access attributes on a list of objects. Did you mean to access - 2025/02/23 13:09:02 Terraform plan | attribute "adminuser" for a specific element of the list, or across all - 2025/02/23 13:09:02 Terraform plan | elements of the list? - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared input variable - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - 2025/02/23 13:09:02 Terraform plan | 386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | An input variable with the name "endpoints" has not been declared. This - 2025/02/23 13:09:02 Terraform plan | variable can be declared with a variable "endpoints" {} block. - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | Error: Reference to undeclared input variable - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - 2025/02/23 13:09:02 Terraform plan | 386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - 2025/02/23 13:09:02 Terraform plan | - 2025/02/23 13:09:02 Terraform plan | An input variable with the name "endpoints" has not been declared. This - 2025/02/23 13:09:02 Terraform plan | variable can be declared with a variable "endpoints" {} block. - 2025/02/23 13:09:02 Terraform PLAN error: Terraform PLAN errorexit status 1 - 2025/02/23 13:09:02 Could not execute job: Error : Terraform PLAN errorexit status 1 - - =============== END PLAN JOB LOG (us-east.workspace.mongodb-st-da-s6ixic.bef18192) =============== -TestRunStandardUpgradeSolution 2025-02-23T18:40:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m51s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:40:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m1s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:40:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m11s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:40:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m21s elapsed] - schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 -TestRunStandardUpgradeSolution 2025-02-23T18:40:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m31s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:40:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m41s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:41:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m51s elapsed] - schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 -TestRunStandardUpgradeSolution 2025-02-23T18:41:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m1s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:41:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m11s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:41:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m21s elapsed] - schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 -TestRunStandardUpgradeSolution 2025-02-23T18:41:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m31s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:41:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m41s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:42:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m51s elapsed] - schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 -TestRunStandardUpgradeSolution 2025-02-23T18:42:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m1s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:42:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m11s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:42:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m21s elapsed] - schematics.go:593: [SCHEMATICS] RETRY GetWorkspaceOutputs, status code: 404 - tests.go:393: [SCHEMATICS] There was an error retrieving output values: The requested statefile cannot be located. Run apply action to create a statefile. ---- FAIL: TestRunStandardSolutionSchematics (378.42s) -TestRunStandardUpgradeSolution 2025-02-23T18:42:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m31s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:42:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m41s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m51s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m1s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:26+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m11s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:36+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m21s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:46+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m31s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:43:56+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m41s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:06+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m51s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:16+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m1s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creation complete after 6m2s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::] -TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-23T18:44:17+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Reading... -TestRunStandardUpgradeSolution 2025-02-23T18:44:18+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Read complete after 1s [id=2025-02-23 13:14:18.808933 +0000 UTC] -TestRunStandardUpgradeSolution 2025-02-23T18:44:27+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [10s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:37+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:47+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creation complete after 32s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::] -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: Apply complete! Resources: 9 added, 0 changed, 0 destroyed. -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: Outputs: -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: adminuser = "admin" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: cbr_rule_ids = [] -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: certificate_base64 = -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: guid = "20d107d9-ff45-4131-90fa-f149001a6d8b" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: hostname = "20d107d9-ff45-4131-90fa-f149001a6d8b-0.c5kmhkid0ujpmrucb800.private.databases.appdomain.cloud" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:20d107d9-ff45-4131-90fa-f149001a6d8b::" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: port = 30639 -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 logger.go:67: version = "7.0" -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 retry.go:91: terraform [output -no-color -json] -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:521: State file copied to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard/terraform.tfstate -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:524: Init / Plan on PR Branch: test-coverage -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:525: Init / Plan on PR Branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 tests.go:618: START: Init / Plan / Show w/Struct -TestRunStandardUpgradeSolution 2025-02-23T18:44:50+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-23T18:45:24+05:30 retry.go:91: terraform [plan -input=false -lock=false -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-wqj45p848702331/solutions/standard/terratest-plan-file-2112165992] -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} -=== NAME TestRunStandardUpgradeSolution - tests.go:635: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:635 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:528 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} - Test: TestRunStandardUpgradeSolution - Messages: Failed to create plan: %!(EXTRA retry.FatalError=FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Reference to undeclared local value - │  - │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": - │  268: identifier = local.existing_redis_guid - │  - │ A local value with the name "existing_redis_guid" has not been declared. - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": - │  360: target_resource_instance_id = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 7, in output "id": - │  7: value = module.mongodb.id - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "id" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 12, in output "version": - │  12: value = module.mongodb.version - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "version" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 17, in output "guid": - │  17: value = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 22, in output "crn": - │  22: value = module.mongodb.crn - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "crn" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 27, in output "cbr_rule_ids": - │  27: value = module.mongodb.cbr_rule_ids - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "cbr_rule_ids" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 32, in output "service_credentials_json": - │  32: value = module.mongodb.service_credentials_json - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_json" for a specific element of the list, or - │ across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 38, in output "service_credentials_object": - │  38: value = module.mongodb.service_credentials_object - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_object" for a specific element of the list, - │ or across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 44, in output "adminuser": - │  44: value = module.mongodb.adminuser - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "adminuser" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵}) -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:531: Error during Terraform Plan on PR branch: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} - tests.go:532: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:532 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} - Test: TestRunStandardUpgradeSolution - Messages: Terraform Plan on PR branch has failed -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:91: terraform [output -no-color -json] -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 tests.go:196: START: Destroy -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] -TestRunStandardUpgradeSolution 2025-02-23T18:45:26+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var resource_group_name=mongodb-st-da-upg-wqj45p -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared local value -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  268: identifier = local.existing_redis_guid -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ A local value with the name "existing_redis_guid" has not been declared. -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  360: target_resource_instance_id = module.mongodb.guid -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 7, in output "id": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  7: value = module.mongodb.id -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "id" for a specific element of the list, or across all elements -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 12, in output "version": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  12: value = module.mongodb.version -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "version" for a specific element of the list, or across all -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 17, in output "guid": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  17: value = module.mongodb.guid -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "guid" for a specific element of the list, or across all elements -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 22, in output "crn": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  22: value = module.mongodb.crn -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "crn" for a specific element of the list, or across all elements -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 27, in output "cbr_rule_ids": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  27: value = module.mongodb.cbr_rule_ids -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "cbr_rule_ids" for a specific element of the list, or across all -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 32, in output "service_credentials_json": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  32: value = module.mongodb.service_credentials_json -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "service_credentials_json" for a specific element of the list, or -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ across all elements of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 38, in output "service_credentials_object": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  38: value = module.mongodb.service_credentials_object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "service_credentials_object" for a specific element of the list, -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ or across all elements of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Unsupported attribute -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on outputs.tf line 44, in output "adminuser": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  44: value = module.mongodb.adminuser -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  ├──────────────── -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  │ module.mongodb is a list of object -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Can't access attributes on a list of objects. Did you mean to access -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ attribute "adminuser" for a specific element of the list, or across all -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ elements of the list? -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared input variable -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╷ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ Error: Reference to undeclared input variable -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │  -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ An input variable with the name "endpoints" has not been declared. This -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: │ variable can be declared with a variable "endpoints" {} block. -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 command.go:206: ╵ -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} - tests.go:198: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:198 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:535 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:136 - Error: Received unexpected error: - FatalError{Underlying: error while running command: exit status 1; ╷ - │ Error: Reference to undeclared local value - │  - │  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": - │  268: identifier = local.existing_redis_guid - │  - │ A local value with the name "existing_redis_guid" has not been declared. - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": - │  360: target_resource_instance_id = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 7, in output "id": - │  7: value = module.mongodb.id - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "id" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 12, in output "version": - │  12: value = module.mongodb.version - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "version" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 17, in output "guid": - │  17: value = module.mongodb.guid - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "guid" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 22, in output "crn": - │  22: value = module.mongodb.crn - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "crn" for a specific element of the list, or across all elements - │ of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 27, in output "cbr_rule_ids": - │  27: value = module.mongodb.cbr_rule_ids - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "cbr_rule_ids" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 32, in output "service_credentials_json": - │  32: value = module.mongodb.service_credentials_json - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_json" for a specific element of the list, or - │ across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 38, in output "service_credentials_object": - │  38: value = module.mongodb.service_credentials_object - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "service_credentials_object" for a specific element of the list, - │ or across all elements of the list? - ╵ - ╷ - │ Error: Unsupported attribute - │  - │  on outputs.tf line 44, in output "adminuser": - │  44: value = module.mongodb.adminuser - │  ├──────────────── - │  │ module.mongodb is a list of object - │  - │ Can't access attributes on a list of objects. Did you mean to access - │ attribute "adminuser" for a specific element of the list, or across all - │ elements of the list? - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵ - ╷ - │ Error: Reference to undeclared input variable - │  - │  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": - │  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - │  - │ An input variable with the name "endpoints" has not been declared. This - │ variable can be declared with a variable "endpoints" {} block. - ╵} - Test: TestRunStandardUpgradeSolution -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 tests.go:199: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: Reference to undeclared local value -│  -│  on main.tf line 268, in data "ibm_resource_instance" "existing_instance_resource": -│  268: identifier = local.existing_redis_guid -│  -│ A local value with the name "existing_redis_guid" has not been declared. -╵ -╷ -│ Error: Unsupported attribute -│  -│  on main.tf line 360, in resource "ibm_iam_authorization_policy" "secrets_manager_key_manager": -│  360: target_resource_instance_id = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 7, in output "id": -│  7: value = module.mongodb.id -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "id" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 12, in output "version": -│  12: value = module.mongodb.version -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "version" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 17, in output "guid": -│  17: value = module.mongodb.guid -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "guid" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 22, in output "crn": -│  22: value = module.mongodb.crn -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "crn" for a specific element of the list, or across all elements -│ of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 27, in output "cbr_rule_ids": -│  27: value = module.mongodb.cbr_rule_ids -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "cbr_rule_ids" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 32, in output "service_credentials_json": -│  32: value = module.mongodb.service_credentials_json -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_json" for a specific element of the list, or -│ across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 38, in output "service_credentials_object": -│  38: value = module.mongodb.service_credentials_object -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "service_credentials_object" for a specific element of the list, -│ or across all elements of the list? -╵ -╷ -│ Error: Unsupported attribute -│  -│  on outputs.tf line 44, in output "adminuser": -│  44: value = module.mongodb.adminuser -│  ├──────────────── -│  │ module.mongodb is a list of object -│  -│ Can't access attributes on a list of objects. Did you mean to access -│ attribute "adminuser" for a specific element of the list, or across all -│ elements of the list? -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵ -╷ -│ Error: Reference to undeclared input variable -│  -│  on ../../main.tf line 386, in data "ibm_database_connection" "database_connection": -│  386: endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints -│  -│ An input variable with the name "endpoints" has not been declared. This -│ variable can be declared with a variable "endpoints" {} block. -╵} -TestRunStandardUpgradeSolution 2025-02-23T18:45:27+05:30 tests.go:266: END: Destroy -TestRunStandardUpgradeSolution 2025-02-23T18:45:28+05:30 tests.go:384: Restoring UseTerraformWorkspace and WorkspacePath to original values: false - pr_test.go:138: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:138 - Error: Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0x140017120d8)} - Test: TestRunStandardUpgradeSolution - Messages: This should not have errored - pr_test.go:139: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:139 - Error: Expected value not to be nil. - Test: TestRunStandardUpgradeSolution - Messages: Expected some output ---- FAIL: TestRunStandardUpgradeSolution (545.11s) -FAIL -exit status 1 -FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 546.298s diff --git a/main.tf b/main.tf index 6e875e7e..5a7b099a 100644 --- a/main.tf +++ b/main.tf @@ -28,6 +28,9 @@ locals { # Determine if host_flavor is used host_flavor_set = var.member_host_flavor != null ? true : false + + # maxmemory configuration should 80% of the deployment's memory. + calculate_config_maxmemory = tonumber(format("%.0f", var.member_memory_mb * 0.8)) } ######################################################################################################################## @@ -171,7 +174,7 @@ resource "time_sleep" "wait_for_backup_kms_authorization_policy" { # MongoDB instance ######################################################################################################################## -resource "ibm_database" "mongodb" { +resource "ibm_database" "mongodb_database" { depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] name = var.name location = var.region @@ -186,6 +189,14 @@ resource "ibm_database" "mongodb" { backup_encryption_key_crn = local.backup_encryption_key_crn backup_id = var.backup_crn + configuration = var.configuration == null ? null : jsonencode({ + maxmemory = var.configuration.maxmemory != null ? var.configuration.maxmemory : local.calculate_config_maxmemory + maxmemory-policy = var.configuration.maxmemory-policy != null ? var.configuration.maxmemory-policy : "noeviction" + appendonly = var.configuration.appendonly != null ? var.configuration.appendonly : "yes" + maxmemory-samples = var.configuration.maxmemory-samples != null ? var.configuration.maxmemory-samples : 5 + stop-writes-on-bgsave-error = var.configuration.stop-writes-on-bgsave-error != null ? var.configuration.stop-writes-on-bgsave-error : "yes" + }) + dynamic "users" { for_each = nonsensitive(var.users != null ? var.users : []) content { @@ -303,9 +314,9 @@ resource "ibm_database" "mongodb" { } } -resource "ibm_resource_tag" "mongodb_tag" { +resource "ibm_resource_tag" "access_tag" { count = length(var.access_tags) == 0 ? 0 : 1 - resource_id = ibm_database.mongodb.resource_crn + resource_id = ibm_database.mongodb_database.resource_crn tags = var.access_tags tag_type = "access" } @@ -330,7 +341,7 @@ module "cbr_rule" { }, { name = "serviceInstance" - value = ibm_database.mongodb.guid + value = ibm_database.mongodb_database.id operator = "stringEquals" }, { @@ -358,7 +369,7 @@ resource "ibm_resource_key" "service_credentials" { for_each = var.service_credential_names name = each.key role = each.value - resource_instance_id = ibm_database.mongodb.id + resource_instance_id = ibm_database.mongodb_database.id } locals { @@ -383,8 +394,8 @@ locals { } data "ibm_database_connection" "database_connection" { - endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints - deployment_id = ibm_database.mongodb.id - user_id = ibm_database.mongodb.adminuser + endpoint_type = var.service_endpoints == "public-and-private" ? "public" : var.service_endpoints + deployment_id = ibm_database.mongodb_database.id + user_id = ibm_database.mongodb_database.adminuser user_type = "database" } diff --git a/modules/fscloud/README.md b/modules/fscloud/README.md index ce54e2cf..435458c1 100644 --- a/modules/fscloud/README.md +++ b/modules/fscloud/README.md @@ -37,8 +37,8 @@ No resources. | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | | [configuration](#input\_configuration) | Database Configuration. |
object({
maxmemory = optional(number)
maxmemory-policy = optional(string)
appendonly = optional(string)
maxmemory-samples = optional(number)
stop-writes-on-bgsave-error = optional(string)
})
| `null` | no | -| [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | +| [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | | [member\_disk\_mb](#input\_member\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | | [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `14336` | no | diff --git a/modules/fscloud/main.tf b/modules/fscloud/main.tf index d1e33f84..02bd945a 100644 --- a/modules/fscloud/main.tf +++ b/modules/fscloud/main.tf @@ -3,6 +3,7 @@ module "mongodb" { resource_group_id = var.resource_group_id name = var.name region = var.region + plan = var.plan skip_iam_authorization_policy = var.skip_iam_authorization_policy service_endpoints = "private" mongodb_version = var.mongodb_version @@ -15,13 +16,13 @@ module "mongodb" { cbr_rules = var.cbr_rules access_tags = var.access_tags tags = var.tags - plan = var.plan + configuration = var.configuration members = var.members member_memory_mb = var.member_memory_mb admin_pass = var.admin_pass users = var.users member_disk_mb = var.member_disk_mb - member_cpu_count = var.cpu_count + member_cpu_count = var.member_cpu_count member_host_flavor = var.member_host_flavor auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names diff --git a/modules/fscloud/variables.tf b/modules/fscloud/variables.tf index b4bd46b6..d91d600c 100644 --- a/modules/fscloud/variables.tf +++ b/modules/fscloud/variables.tf @@ -40,7 +40,7 @@ variable "members" { default = 3 } -variable "cpu_count" { +variable "member_cpu_count" { type = number description = "Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 6 diff --git a/outputs.tf b/outputs.tf index 96371861..d3fc5ca9 100644 --- a/outputs.tf +++ b/outputs.tf @@ -4,22 +4,22 @@ output "id" { description = "MongoDB instance ID" - value = ibm_database.mongodb.id + value = ibm_database.mongodb_database.id } output "guid" { description = "MongoDB instance guid" - value = ibm_database.mongodb.guid + value = ibm_database.mongodb_database.guid } output "version" { description = "MongoDB instance version" - value = ibm_database.mongodb.version + value = ibm_database.mongodb_database.version } output "crn" { description = "MongoDB instance crn" - value = ibm_database.mongodb.resource_crn + value = ibm_database.mongodb_database.resource_crn } output "cbr_rule_ids" { @@ -41,7 +41,7 @@ output "service_credentials_object" { output "adminuser" { description = "Database admin user name" - value = ibm_database.mongodb.adminuser + value = ibm_database.mongodb_database.adminuser } output "hostname" { diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 0728c90e..6de3c98c 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -265,7 +265,7 @@ locals { # Do a data lookup on the resource GUID to get more info that is needed for the 'ibm_database' data lookup below data "ibm_resource_instance" "existing_instance_resource" { count = var.existing_db_instance_crn != null ? 1 : 0 - identifier = local.existing_redis_guid + identifier = local.existing_mongodb_guid } # Lookup details of existing instance @@ -310,7 +310,7 @@ module "mongodb" { member_host_flavor = var.member_host_flavor member_memory_mb = var.member_memory_mb member_disk_mb = var.member_disk_mb - cpu_count = var.member_cpu_count + member_cpu_count = var.member_cpu_count auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names backup_crn = var.backup_crn @@ -357,7 +357,7 @@ resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" { source_service_name = "secrets-manager" source_resource_instance_id = local.existing_secrets_manager_instance_guid target_service_name = "databases-for-mongodb" - target_resource_instance_id = module.mongodb.guid + target_resource_instance_id = local.mongodb_guid roles = ["Key Manager"] description = "Allow Secrets Manager with instance id ${local.existing_secrets_manager_instance_guid} to manage key for the databases-for-mongodb instance" } diff --git a/solutions/standard/moved.tf b/solutions/standard/moved.tf new file mode 100644 index 00000000..6cc83180 --- /dev/null +++ b/solutions/standard/moved.tf @@ -0,0 +1,4 @@ +moved { + from = module.mongodb + to = module.mongodb[0] +} \ No newline at end of file diff --git a/solutions/standard/outputs.tf b/solutions/standard/outputs.tf index ae2e4141..b70b16a7 100644 --- a/solutions/standard/outputs.tf +++ b/solutions/standard/outputs.tf @@ -4,60 +4,44 @@ output "id" { description = "MongoDB instance id" - value = module.mongodb.id + value = local.mongodb_id } output "version" { description = "MongoDB instance version" - value = module.mongodb.version + value = local.mongodb_version } output "guid" { description = "MongoDB instance guid" - value = module.mongodb.guid + value = local.mongodb_guid } output "crn" { description = "MongoDB instance crn" - value = module.mongodb.crn -} - -output "cbr_rule_ids" { - description = "CBR rule ids created to restrict MongoDB" - value = module.mongodb.cbr_rule_ids + value = local.mongodb_crn } output "service_credentials_json" { description = "Service credentials json map" - value = module.mongodb.service_credentials_json + value = var.existing_db_instance_crn != null ? null : module.mongodb[0].service_credentials_json sensitive = true } output "service_credentials_object" { description = "Service credentials object" - value = module.mongodb.service_credentials_object + value = var.existing_db_instance_crn != null ? null : module.mongodb[0].service_credentials_object sensitive = true } -output "adminuser" { - description = "Database admin user name" - value = module.mongodb.adminuser -} - output "hostname" { description = "Database connection hostname" - value = module.mongodb.hostname + value = local.mongodb_hostname } output "port" { description = "Database connection port" - value = module.mongodb.port -} - -output "certificate_base64" { - description = "Database connection certificate" - value = module.mongodb.certificate_base64 - sensitive = true + value = local.mongodb_port } output "secrets_manager_secrets" { diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index 58f06126..b8a6422f 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -87,7 +87,7 @@ variable "member_cpu_count" { variable "member_disk_mb" { type = number description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)." - default = 5120 + default = 10240 } variable "member_host_flavor" { diff --git a/tests/other_test.go b/tests/other_test.go index 9516d04e..47868c1d 100644 --- a/tests/other_test.go +++ b/tests/other_test.go @@ -3,61 +3,13 @@ package test import ( "fmt" + "testing" - "crypto/rand" - "encoding/base64" - "log" - "github.com/gruntwork-io/terratest/modules/terraform" "github.com/stretchr/testify/assert" "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper" ) -func TestRunCompleteExampleOtherVersion(t *testing.T) { - t.Parallel() - - // Generate a 15 char long random string for the admin_pass - randomBytes := make([]byte, 13) - _, err := rand.Read(randomBytes) - if err != nil { - log.Fatal(err) - } - randomPass := "A1" + base64.URLEncoding.EncodeToString(randomBytes)[:13] - - options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ - Testing: t, - TerraformDir: completeExampleTerraformDir, - Prefix: "mongodb-complete-test", - ResourceGroup: resourceGroup, - BestRegionYAMLPath: regionSelectionPath, - TerraformVars: map[string]interface{}{ - "mongodb_version": "7.0", - "existing_sm_instance_guid": permanentResources["secretsManagerGuid"], - "existing_sm_instance_region": permanentResources["secretsManagerRegion"], - "users": []map[string]interface{}{ - { - "name": "testuser", - "password": randomPass, // pragma: allowlist secret - "type": "database", - }, - }, - "admin_pass": randomPass, - }, - CloudInfoService: sharedInfoSvc, - }) - options.SkipTestTearDown = true - output, err := options.RunTestConsistency() - assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") - - // check if outputs exist - outputs := terraform.OutputAll(options.Testing, options.TerraformOptions) - expectedOutputs := []string{"port", "hostname"} - _, outputErr := testhelper.ValidateTerraformOutputs(outputs, expectedOutputs...) - assert.NoErrorf(t, outputErr, "Some outputs not found or nil") - options.TestTearDown() -} - func testPlanICDVersions(t *testing.T, version string) { t.Parallel() @@ -94,7 +46,7 @@ func TestRunRestoredDBExample(t *testing.T) { Region: fmt.Sprint(permanentResources["mongodbRegion"]), ResourceGroup: resourceGroup, TerraformVars: map[string]interface{}{ - "mongo_db_crn": permanentResources["mongodbCrn"], + "existing_database_crn": permanentResources["mongodbCrn"], }, CloudInfoService: sharedInfoSvc, }) diff --git a/tests/pr_test.go b/tests/pr_test.go index 40daf309..3d6b5faa 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -2,9 +2,9 @@ package test import ( - "math/rand" "fmt" "log" + "math/rand" "os" "strings" "testing" @@ -21,7 +21,6 @@ import ( "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic" ) -const completeExampleTerraformDir = "examples/complete" const fscloudExampleTerraformDir = "examples/fscloud" const standardSolutionTerraformDir = "solutions/standard" const latestVersion = "7.0" @@ -92,7 +91,7 @@ func TestRunStandardSolutionSchematics(t *testing.T) { }, } - options.TerraformVars = []testschematic.TestSchematicTerraformVar{ + options.TerraformVars = []testschematic.TestSchematicTerraformVar{ {Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true}, {Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"}, {Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"}, @@ -117,11 +116,11 @@ func TestRunStandardUpgradeSolution(t *testing.T) { t.Parallel() options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ - Testing: t, - TerraformDir: standardSolutionTerraformDir, - BestRegionYAMLPath: regionSelectionPath, - Prefix: "mongodb-st-da-upg", - ResourceGroup: resourceGroup, + Testing: t, + TerraformDir: standardSolutionTerraformDir, + BestRegionYAMLPath: regionSelectionPath, + Prefix: "mongodb-st-da-upg", + ResourceGroup: resourceGroup, CheckApplyResultForUpgrade: true, }) @@ -157,10 +156,10 @@ func TestRunExistingInstance(t *testing.T) { existingTerraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ TerraformDir: tempTerraformDir + "/examples/basic", Vars: map[string]interface{}{ - "prefix": prefix, - "region": region, - "mongodb_version": latestVersion, - "service_endpoints": "public-and-private", + "prefix": prefix, + "region": region, + "mongodb_version": latestVersion, + "service_endpoints": "public-and-private", }, // Set Upgrade to true to ensure latest version of providers and modules are used by terratest. // This is the same as setting the -upgrade=true flag with terraform. @@ -228,7 +227,7 @@ func TestRunStandardSolutionIBMKeys(t *testing.T) { }) options.TerraformVars = map[string]interface{}{ - "mongodb_version": "7.0", + "mongodb_version": "7.0", "provider_visibility": "public", "resource_group_name": options.Prefix, "use_ibm_owned_encryption_key": true, diff --git a/variables.tf b/variables.tf index 48cecf69..c87a7801 100644 --- a/variables.tf +++ b/variables.tf @@ -21,8 +21,9 @@ variable "mongodb_version" { condition = anytrue([ var.mongodb_version == null, var.mongodb_version == "6.0", + var.mongodb_version == "7.0", ]) - error_message = "Version must be 6.0. If no value is passed, the current preferred version of IBM Cloud Databases is used." + error_message = "Version must be either 6.0 or 7.0. If no value is passed, the current preferred version of IBM Cloud Databases is used." } } @@ -67,7 +68,7 @@ variable "member_cpu_count" { variable "member_disk_mb" { type = number description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" - default = 5120 + default = 10240 # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } @@ -145,6 +146,18 @@ variable "access_tags" { } } +variable "configuration" { + type = object({ + maxmemory = optional(number) + maxmemory-policy = optional(string) + appendonly = optional(string) + maxmemory-samples = optional(number) + stop-writes-on-bgsave-error = optional(string) + }) + description = "Database Configuration. Default values will get picked up if not all the values are passed." + default = null +} + ############################################################## # Auto Scaling ############################################################## From c2a690c40bb0ea4951229ab878134f6dd3da817f Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Tue, 25 Feb 2025 11:56:28 +0530 Subject: [PATCH 03/21] fixed errors --- solutions/standard/main.tf | 6 +++--- solutions/standard/moved.tf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 6de3c98c..43e915dc 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -37,7 +37,7 @@ module "kms" { providers = { ibm = ibm.kms } - count = local.create_new_kms_key ? 1 : 0 + count = local.create_new_kms_key source = "terraform-ibm-modules/kms-all-inclusive/ibm" version = "4.19.7" create_key_protect_instance = false @@ -237,7 +237,7 @@ locals { # admin password to use - admin_pass = var.admin_pass == null ? (startswith(random_password.admin_password[0].result, "-") ? "J${substr(random_password.admin_password[0].result, 1, -1)}" : startswith(random_password.admin_password[0].result, "_") ? "K${substr(random_password.admin_password[0].result, 1, -1)}" : random_password.admin_password[0].result) : var.admin_pass + admin_pass = var.admin_pass == null ? local.generated_admin_password : var.admin_pass } ####################################################################################################################### @@ -419,5 +419,5 @@ module "secrets_manager_service_credentials" { existing_sm_instance_guid = local.existing_secrets_manager_instance_guid existing_sm_instance_region = local.existing_secrets_manager_instance_region endpoint_type = var.existing_secrets_manager_endpoint_type - secrets = local.service_credential_secrets + secrets = local.secrets } diff --git a/solutions/standard/moved.tf b/solutions/standard/moved.tf index 6cc83180..248dfb7d 100644 --- a/solutions/standard/moved.tf +++ b/solutions/standard/moved.tf @@ -1,4 +1,4 @@ moved { from = module.mongodb to = module.mongodb[0] -} \ No newline at end of file +} From 93317daede8468b61170e3633978ce3b650752f6 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Wed, 26 Feb 2025 11:54:25 +0530 Subject: [PATCH 04/21] fixed errors --- logs.logs | 1674 +++++++++++++++++++++++++++++++ main.tf | 8 - modules/fscloud/main.tf | 1 - modules/fscloud/variables.tf | 12 - solutions/standard/main.tf | 3 +- solutions/standard/variables.tf | 18 - tests/pr_test.go | 13 +- variables.tf | 11 - 8 files changed, 1680 insertions(+), 60 deletions(-) create mode 100644 logs.logs diff --git a/logs.logs b/logs.logs new file mode 100644 index 00000000..b321dea5 --- /dev/null +++ b/logs.logs @@ -0,0 +1,1674 @@ +cd tests && go test -run TestRunStandardUpgradeSolution -count=1 -v -timeout 600m +=== RUN TestRunStandardUpgradeSolution +=== PAUSE TestRunStandardUpgradeSolution +=== CONT TestRunStandardUpgradeSolution +2025/02/26 01:09:13 Region eu-de VPC count: 5 +2025/02/26 01:09:13 --- new best region is eu-de +2025/02/26 01:09:15 Region us-south VPC count: 18 +2025/02/26 01:09:15 Best region was found!: eu-de +TestRunStandardUpgradeSolution 2025-02-26T01:09:15+05:30 tests.go:341: PR Branch: test-coverage +TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 tests.go:349: Base Repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git +TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 tests.go:350: Base Branch: main +TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 git.go:400: Remote name: upstream-fnguum +TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 git.go:415: Fetch output: + [] +Commit Messages (main): +commit c2a690c40bb0ea4951229ab878134f6dd3da817f +Author: Aatreyee Mukherjee +Date: Tue Feb 25 11:56:28 2025 +0530 + + fixed errors + +commit 89d796bef52ac92c850e38612c0c38806513179c +Author: Aatreyee Mukherjee +Date: Mon Feb 24 14:24:09 2025 +0530 + + fixed errors + +commit 2d39c714c1b9f944144989a1a1163a9efc3207b5 +Author: Aatreyee Mukherjee +Date: Sun Feb 23 19:12:53 2025 +0530 + + test-coverage for mongodb +TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:382: Temporarily disabling UseTerraformWorkspace in Upgrade Test as temporary directories are used instead of workspaces +TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:403: TEMP PR DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910 +TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:415: TEMP UPGRADE BASE DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-dtedo22412033432 +TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:438: Copied current code to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910 +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 git.go:491: Cloned base repo and branch with authentication +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:473: Init / Apply on Base repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:474: Init / Apply on Base branch: main +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:475: Init / Apply on Base branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-dtedo22412033432/solutions/standard +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Initializing the backend... +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Upgrading modules... +TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.8 for kms... +TestRunStandardUpgradeSolution 2025-02-26T01:09:20+05:30 logger.go:67: - kms in .terraform/modules/kms +TestRunStandardUpgradeSolution 2025-02-26T01:09:20+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.existing_key_ring_keys... +TestRunStandardUpgradeSolution 2025-02-26T01:09:23+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys +TestRunStandardUpgradeSolution 2025-02-26T01:09:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... +TestRunStandardUpgradeSolution 2025-02-26T01:09:25+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect +TestRunStandardUpgradeSolution 2025-02-26T01:09:25+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... +TestRunStandardUpgradeSolution 2025-02-26T01:09:28+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module +TestRunStandardUpgradeSolution 2025-02-26T01:09:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... +TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings +TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.kms_keys... +TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys +TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb in ../../modules/fscloud +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb in ../.. +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser +TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunStandardUpgradeSolution 2025-02-26T01:09:36+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunStandardUpgradeSolution 2025-02-26T01:09:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.9 for secrets_manager_service_credentials... +TestRunStandardUpgradeSolution 2025-02-26T01:09:38+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets +TestRunStandardUpgradeSolution 2025-02-26T01:09:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... +TestRunStandardUpgradeSolution 2025-02-26T01:09:40+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups +TestRunStandardUpgradeSolution 2025-02-26T01:09:40+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.7.0 for secrets_manager_service_credentials.secrets... +TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets +TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: Initializing provider plugins... +TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... +TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... +TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... +TestRunStandardUpgradeSolution 2025-02-26T01:09:46+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... +TestRunStandardUpgradeSolution 2025-02-26T01:09:51+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) +TestRunStandardUpgradeSolution 2025-02-26T01:09:51+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunStandardUpgradeSolution 2025-02-26T01:09:52+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunStandardUpgradeSolution 2025-02-26T01:09:52+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: selections it made above. Include this file in your version control repository +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: you run "terraform init" in the future. +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Terraform has been successfully initialized! +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: should now work. +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var resource_group_name=mongodb-st-da-upg-dtedo2 -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] +TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var resource_group_name=mongodb-st-da-upg-dtedo2 -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] +TestRunStandardUpgradeSolution 2025-02-26T01:09:56+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:09:56+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:09:57+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 3s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Terraform used the selected providers to generate the following execution +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: <= read (data resources) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Terraform will perform the following actions: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # random_password.admin_password[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "random_password" "admin_password" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + bcrypt_hash = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + length = 32 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + lower = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_lower = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_numeric = 1 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_special = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_upper = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + number = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + numeric = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + override_special = "-_" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + result = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + special = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + upper = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_at = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + default = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "mongodb-st-da-upg-dtedo2" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + payment_methods_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + quota_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + quota_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_linkages = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + state = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + teams_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_at = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key_rings" "key_ring" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + force_delete = false +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key" "key" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + force_delete = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_name = "mongodb-key" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + payload = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + registrations = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + standard_key = false +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key_policies" "root_key_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + dual_auth_delete { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + creation_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + enabled = false +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + last_update_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + rotation { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + creation_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + enabled = true +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + interval_month = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + last_update_date = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_by = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.data.ibm_database_connection.database_connection will be read during apply +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: # (config refers to values not yet known) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + amqps = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + analytics = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + bi_connector = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cli = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + deployment_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + emp = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "private" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + grpc = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + https = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mongodb = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mqtts = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mysql = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + ops_manager = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + postgres = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + rediss = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + secure = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + stomp_ssl = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + user_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + user_type = "database" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_database.mongodb will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_database" "mongodb" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminpassword = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminuser = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + backup_encryption_key_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + configuration_schema = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + deletion_protection = false +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + groups = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + guid = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_protect_key = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + location = "us-south" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "mongodb" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + plan = "standard" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + service = "databases-for-mongodb" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + service_endpoints = "private" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tags = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + auto_scaling (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + group { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + group_id = "member" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cpu { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_count = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + disk { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_mb = 10240 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + host_flavor { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = "multitenant" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + members { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + memory { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_mb = 4096 +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + timeouts { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create = "120m" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + delete = "15m" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + update = "120m" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_iam_authorization_policy" "kms_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + description = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + roles = [ +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "Reader", +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: ] +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_instance_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_service_account = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_service_name = "databases-for-mongodb" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_group_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_instance_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_type = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_service_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + transaction_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "accountId" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "resource" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "resourceType" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = "key" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "serviceInstance" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "serviceName" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + subject_attributes (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_resource_tag" "mongodb_tag" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + account_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + replace = false +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tag_type = "access" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tags = [ +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "geretain-dev-1:permanent-test-tag-4", +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "geretain-dev:permanent-test-tag-1", +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: ] +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "time_sleep" "wait_for_authorization_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create_duration = "30s" +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Plan: 9 to add, 0 to change, 0 to destroy. +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Changes to Outputs: +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminuser = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cbr_rule_ids = [] +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + certificate_base64 = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + guid = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + hostname = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + port = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: random_password.admin_password[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: random_password.admin_password[0]: Creation complete after 0s [id=none] +TestRunStandardUpgradeSolution 2025-02-26T01:10:01+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:01+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:03+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 3s [id=915e8c5a65524a83987eadf520846357] +TestRunStandardUpgradeSolution 2025-02-26T01:10:05+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creation complete after 5s [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:10:05+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:10+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creation complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:10:10+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:15+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creation complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:10:15+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:18+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creation complete after 3s [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +TestRunStandardUpgradeSolution 2025-02-26T01:10:18+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:10:28+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:10:38+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:10:48+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:10:48+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creation complete after 30s [id=2025-02-25T19:40:48Z] +TestRunStandardUpgradeSolution 2025-02-26T01:10:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:11:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:11:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:11:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:11:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:11:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:11:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:12:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:13:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:14:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:15:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:16:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m0s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m40s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m50s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creation complete after 6m56s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creating... +TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:17:47+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Read complete after 1s [id=2025-02-25 19:47:47.249415 +0000 UTC] +TestRunStandardUpgradeSolution 2025-02-26T01:17:55+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:18:05+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [20s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:18:15+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [30s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creation complete after 32s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: Apply complete! Resources: 9 added, 0 changed, 0 destroyed. +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67:  +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: Outputs: +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: adminuser = "admin" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: cbr_rule_ids = [] +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: certificate_base64 = +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: port = 30478 +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: version = "7.0" +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 retry.go:91: terraform [output -no-color -json] +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:521: State file copied to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terraform.tfstate +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:524: Init / Plan on PR Branch: test-coverage +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:525: Init / Plan on PR Branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:618: START: Init / Plan / Show w/Struct +TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunStandardUpgradeSolution 2025-02-26T01:18:53+05:30 retry.go:91: terraform [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] +TestRunStandardUpgradeSolution 2025-02-26T01:19:13+05:30 retry.go:91: terraform [show -no-color -json /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] +TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct +TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 tests.go:540: Parsing plan output to determine if any resources identified for destroy (PR branch)... + terraform.go:236: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/terraform.go:236 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:541 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:133 + Error: Should be false + Test: TestRunStandardUpgradeSolution + Messages: Resource(s) identified to be destroyed + Name: mongodb + Address: module.mongodb[0].module.mongodb.ibm_database.mongodb + Actions: [delete] + DIFF: + Error getting diff: missing 'before' or 'after' key in JSON + + Change Detail: + { + "actions": [ + "delete" + ], + "after_sensitive": false, + "after_unknown": {}, + "before": { + "adminpassword": "SECURE_VALUE_HIDDEN_HASH:-64a77101d01bde937487ba5e23c43dcf4dd2f99e04764912ca071eea", + "adminuser": "admin", + "allowlist": "SECURE_VALUE_HIDDEN_HASH:-86dc5c4d2ad949cb18822fc487826d6d417ae240b74cce5980dc9c07", + "auto_scaling": "SECURE_VALUE_HIDDEN_HASH:-c657c6ce79a497218908be14107b0e73aa4382f3f8724e52f475bbf5", + "backup_encryption_key_crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2", + "backup_id": null, + "configuration": null, + "configuration_schema": null, + "deletion_protection": false, + "group": "SECURE_VALUE_HIDDEN_HASH:-b151cd993baba0db5296a7ba68f288d7909c98f90ea2ff6d24fe435c", + "groups": "SECURE_VALUE_HIDDEN_HASH:-a5b48b42a62cecb7cddabdde1b849533636608795fa0a5c6cd840edc", + "guid": "30aa3451-64c5-4e43-9317-a68eaff1c11a", + "id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", + "key_protect_instance": null, + "key_protect_key": "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2", + "location": "us-south", + "logical_replication_slot": "SECURE_VALUE_HIDDEN_HASH:-456f91291b3b7d2ba15ed392ba9cd67063236f7e5f704cdaad424206", + "name": "mongodb", + "offline_restore": null, + "plan": "standard", + "point_in_time_recovery_deployment_id": null, + "point_in_time_recovery_time": null, + "remote_leader_id": null, + "resource_controller_url": "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A", + "resource_crn": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", + "resource_group_id": "915e8c5a65524a83987eadf520846357", + "resource_group_name": "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357", + "resource_name": "mongodb", + "resource_status": "active", + "service": "databases-for-mongodb", + "service_endpoints": "private", + "skip_initial_backup": null, + "status": "active", + "tags": "SECURE_VALUE_HIDDEN_HASH:-eb67d8b81274b911a5a9c75a2aa21d50a7e2923f79d99d85c12ed690", + "timeouts": { + "create": "120m", + "delete": "15m", + "update": "120m" + }, + "users": "SECURE_VALUE_HIDDEN_HASH:-0cf0931b4a6471e7fcbdc8143a3d5abcdcc7937fa1a365296e5b43fb", + "version": "7.0" + }, + "before_sensitive": { + "adminpassword": true, + "allowlist": [], + "auto_scaling": [ + { + "cpu": [ + {} + ], + "disk": [ + {} + ], + "memory": [ + {} + ] + } + ], + "group": [ + { + "cpu": [ + {} + ], + "disk": [ + {} + ], + "host_flavor": [ + {} + ], + "members": [ + {} + ], + "memory": [ + {} + ] + } + ], + "groups": [ + { + "cpu": [ + {} + ], + "disk": [ + {} + ], + "host_flavor": [ + {} + ], + "memory": [ + {} + ] + } + ], + "logical_replication_slot": [], + "tags": [], + "timeouts": {}, + "users": [] + } + } + terraform.go:236: + Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/terraform.go:236 + /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:541 + /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:133 + Error: Should be false + Test: TestRunStandardUpgradeSolution + Messages: Resource(s) identified to be destroyed + Name: mongodb_tag + Address: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] + Actions: [delete] + DIFF: + Error getting diff: missing 'before' or 'after' key in JSON + + Change Detail: + { + "actions": [ + "delete" + ], + "after_sensitive": false, + "after_unknown": {}, + "before": { + "account_id": null, + "id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", + "replace": false, + "resource_id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", + "resource_type": "", + "tag_type": "access", + "tags": "SECURE_VALUE_HIDDEN_HASH:-40603cb705891b87e18d6f627d8e47f90b5d088293f137b961b6fd2c", + "timeouts": null + }, + "before_sensitive": { + "tags": [ + false, + false + ] + } + } +TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 retry.go:91: terraform [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] +TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 command.go:121: Running command terraform with args [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] +TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: random_password.admin_password[0]: Refreshing state... [id=none] +TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] +TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:16+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] +TestRunStandardUpgradeSolution 2025-02-26T01:19:17+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:19:17+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:21+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:26+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Terraform used the selected providers to generate the following execution +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: plan. Resource actions are indicated with the following symbols: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + create +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - destroy +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: <= read (data resources) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Terraform will perform the following actions: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.data.ibm_database_connection.database_connection will be read during apply +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (config refers to values not yet known) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.data.ibm_database_connection.database_connection) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  <= data "ibm_database_connection" "database_connection" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + amqps = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + analytics = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + bi_connector = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + cli = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + deployment_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + emp = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + endpoint_type = "private" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + grpc = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + https = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mongodb = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mqtts = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mysql = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + ops_manager = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + postgres = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + rediss = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + secure = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + stomp_ssl = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + user_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + user_type = "database" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (because module.mongodb.module.mongodb.ibm_database.mongodb was moved to module.mongodb[0].module.mongodb.ibm_database.mongodb, which is not in configuration) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.ibm_database.mongodb) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  - resource "ibm_database" "mongodb" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminpassword = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminuser = "admin" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - deletion_protection = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - groups = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_count = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "count" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 30720 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_mb = 30720 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_mb = 3072 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "mb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group_id = "member" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - host_flavor = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "multitenant" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: name = null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 12288 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu_enforcement_ratio_ceiling_mb = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu_enforcement_ratio_mb = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_mb = 12288 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_mb = 384 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "mb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - location = "us-south" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - name = "mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - plan = "standard" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_name = "mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_status = "active" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - service = "databases-for-mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - service_endpoints = "private" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - status = "active" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tags = [] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - version = "7.0" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - auto_scaling { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_count_per_member = 30 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "count" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - capacity_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - free_space_less_than_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_above_percent = 90 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_over_period = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_mb_per_member = 3670016 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "mb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_above_percent = 90 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_over_period = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_mb_per_member = 114688 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "mb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group_id = "member" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 0 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 10240 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - host_flavor { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "multitenant" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - members { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 3 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 4096 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - timeouts { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - create = "120m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - delete = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - update = "120m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb_database will be created +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  + resource "ibm_database" "mongodb_database" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + adminpassword = (sensitive value) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + adminuser = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + configuration_schema = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + deletion_protection = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + groups = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + guid = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + location = "us-south" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + name = "mongodb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + plan = "standard" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_controller_url = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_crn = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_group_id = "915e8c5a65524a83987eadf520846357" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_group_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_name = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + service = "databases-for-mongodb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + service_endpoints = "private" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + status = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tags = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + version = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + auto_scaling (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + group { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + group_id = "member" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + disk { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + allocation_mb = 10240 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + host_flavor { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = "b3c.4x16.encrypted" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + members { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + allocation_count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + timeouts { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + create = "120m" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + delete = "15m" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + update = "120m" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] has moved to module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  resource "ibm_iam_authorization_policy" "kms_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (12 unchanged attributes hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (5 unchanged blocks hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.access_tag[0] will be created +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  + resource "ibm_resource_tag" "access_tag" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + account_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + replace = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_id = (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tag_type = "access" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tags = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + "geretain-dev-1:permanent-test-tag-4", +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + "geretain-dev:permanent-test-tag-1", +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (because module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] was moved to module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0], which is not in configuration) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  - resource "ibm_resource_tag" "mongodb_tag" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - replace = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tag_type = "access" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tags = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - "geretain-dev-1:permanent-test-tag-4", +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - "geretain-dev:permanent-test-tag-1", +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] has moved to module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  resource "time_sleep" "wait_for_authorization_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: id = "2025-02-25T19:40:48Z" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Plan: 2 to add, 0 to change, 2 to destroy. +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Changes to Outputs: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminuser = "admin" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cbr_rule_ids = [] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - certificate_base64 = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ port = 30478 -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ version = "7.0" -> (known after apply) +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ───────────────────────────────────────────────────────────────────────────── +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Saved the plan to: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811 +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: To perform exactly these actions, run the following command to apply: +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: terraform apply "/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811" +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 retry.go:91: terraform [output -no-color -json] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 tests.go:196: START: Destroy +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false] +TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false] +TestRunStandardUpgradeSolution 2025-02-26T01:19:32+05:30 command.go:206: random_password.admin_password[0]: Refreshing state... [id=none] +TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] +TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... +TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:34+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] +TestRunStandardUpgradeSolution 2025-02-26T01:19:35+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:35+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:19:40+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:45+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Terraform used the selected providers to generate the following execution +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: plan. Resource actions are indicated with the following symbols: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - destroy +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Terraform will perform the following actions: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # random_password.admin_password[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "random_password" "admin_password" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - bcrypt_hash = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "none" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - length = 32 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - lower = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_lower = 0 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_numeric = 1 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_special = 0 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_upper = 0 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - number = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - numeric = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - override_special = "-_" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - result = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - special = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - upper = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_resource_group" "resource_group" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_at = "2025-02-25T19:40:02.083Z" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - default = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "mongodb-st-da-upg-dtedo2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_linkages = [] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - state = "ACTIVE" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_at = "2025-02-25T19:40:02.083Z" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key_rings" "key_ring" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - force_delete = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_ring_id = "mongodb-key-ring" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key" "key" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - force_delete = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_name = "mongodb-key" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_ring_id = "mongodb-key-ring" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - registrations = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:cloud-object-storage:global:a/59ead63c1cc247cbb97d014133fedb32:edda8825-da01-4e1c-8f9a-4683306866b9:bucket:30aa3451-64c5-4e43-9317-a68eaff1c11a" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=bucket-30aa3451-64c5-4e43-9317-a68eaff1c11a" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-12997260-3a97-4504-937d-3026ca40968c" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-4c3a7552-7a19-43c6-bcf2-d03910abeb29" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-6e1a89c2-07db-42d9-bbe3-63e5bada01d0" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-7f8675e9-1139-4572-abc1-94b8a52570f4" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb-key" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "1" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - standard_key = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - type = "hs-crypto" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (5 unchanged attributes hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key_policies" "root_key_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb-key" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "1" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - dual_auth_delete { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_by = "IBMid-695000L3KW" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:586868a3-11f5-400a-8503-5609f7b581ee" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "586868a3-11f5-400a-8503-5609f7b581ee" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_by = "IBMid-695000L3KW" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rotation { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_by = "IBMid-695000L3KW" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:0c292d03-8d13-465b-8d44-ee450768e927" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - enabled = true -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "0c292d03-8d13-465b-8d44-ee450768e927" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - interval_month = 3 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_by = "IBMid-695000L3KW" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_database" "mongodb" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminpassword = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminuser = "admin" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - deletion_protection = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - groups = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_count = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_count = 3 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "count" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 30720 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = false +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_mb = 30720 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_mb = 3072 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "mb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group_id = "member" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - host_flavor = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "multitenant" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: name = null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (1 unchanged attribute hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 12288 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu_enforcement_ratio_ceiling_mb = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu_enforcement_ratio_mb = 0 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_mb = 12288 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_mb = 384 +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "mb" +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - location = "us-south" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - plan = "standard" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "active" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - service = "databases-for-mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - service_endpoints = "private" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - status = "active" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tags = [] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - version = "7.0" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - auto_scaling { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_count_per_member = 30 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "count" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - capacity_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - free_space_less_than_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_above_percent = 90 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_over_period = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_mb_per_member = 3670016 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "mb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_above_percent = 90 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_enabled = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_over_period = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_mb_per_member = 114688 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "mb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group_id = "member" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 0 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 10240 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - host_flavor { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "multitenant" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - members { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 3 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 4096 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - timeouts { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - create = "120m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - delete = "15m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - update = "120m" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_iam_authorization_policy" "kms_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - description = "Allow all MongoDB instances in the resource group 915e8c5a65524a83987eadf520846357 to read the hs-crypto key 55893fa3-bf19-4da5-b5fb-8bf2449081a2 from the instance GUID e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - roles = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "Reader", +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_resource_group_id = "915e8c5a65524a83987eadf520846357" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_service_account = "abac0df06b644a9cabc6e44f55b3880e" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_service_name = "databases-for-mongodb" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_resource_instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_resource_type = "key" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_service_name = "hs-crypto" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - transaction_id = "012486de536d41c4a57382aff32244dd" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (3 unchanged attributes hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "accountId" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "abac0df06b644a9cabc6e44f55b3880e" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "resource" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "resourceType" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "key" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "serviceInstance" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "serviceName" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "hs-crypto" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_resource_tag" "mongodb_tag" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - replace = false -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tag_type = "access" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tags = [ +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "geretain-dev-1:permanent-test-tag-4", +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "geretain-dev:permanent-test-tag-1", +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (1 unchanged attribute hidden) +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] will be destroyed +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "time_sleep" "wait_for_authorization_policy" { +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - create_duration = "30s" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "2025-02-25T19:40:48Z" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Plan: 0 to add, 0 to change, 9 to destroy. +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Changes to Outputs: +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminuser = "admin" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cbr_rule_ids = [] -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - certificate_base64 = (sensitive value) -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - port = 30478 -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - version = "7.0" -> null +TestRunStandardUpgradeSolution 2025-02-26T01:19:50+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:19:51+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destruction complete after 1s +TestRunStandardUpgradeSolution 2025-02-26T01:19:51+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +TestRunStandardUpgradeSolution 2025-02-26T01:20:01+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Still destroying... [id=crn:v1:bluemix:public:databases-for-mon...30aa3451-64c5-4e43-9317-a68eaff1c11a::, 10s elapsed] +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Destruction complete after 12s +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destroying... [id=2025-02-25T19:40:48Z] +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: random_password.admin_password[0]: Destroying... [id=none] +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destruction complete after 0s +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: random_password.admin_password[0]: Destruction complete after 0s +TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destroying... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destruction complete after 1s +TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=915e8c5a65524a83987eadf520846357] +TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destruction complete after 0s +TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +TestRunStandardUpgradeSolution 2025-02-26T01:20:06+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s +TestRunStandardUpgradeSolution 2025-02-26T01:20:07+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destruction complete after 2s +TestRunStandardUpgradeSolution 2025-02-26T01:20:07+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destroying... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destruction complete after 2s +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206:  +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206: Destroy complete! Resources: 9 destroyed. +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206:  +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:261: random_password.admin_password[0]: Refreshing state... [id=none] +data.ibm_iam_account_settings.iam_account_settings: Reading... +module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] +module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... +module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] +module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] + +Terraform used the selected providers to generate the following execution +plan. Resource actions are indicated with the following symbols: + - destroy + +Terraform will perform the following actions: + + # random_password.admin_password[0] will be destroyed + - resource "random_password" "admin_password" { + - bcrypt_hash = (sensitive value) -> null + - id = "none" -> null + - length = 32 -> null + - lower = true -> null + - min_lower = 0 -> null + - min_numeric = 1 -> null + - min_special = 0 -> null + - min_upper = 0 -> null + - number = true -> null + - numeric = true -> null + - override_special = "-_" -> null + - result = (sensitive value) -> null + - special = true -> null + - upper = true -> null + } + + # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed + - resource "ibm_resource_group" "resource_group" { + - created_at = "2025-02-25T19:40:02.083Z" -> null + - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null + - default = false -> null + - id = "915e8c5a65524a83987eadf520846357" -> null + - name = "mongodb-st-da-upg-dtedo2" -> null + - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null + - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null + - resource_linkages = [] -> null + - state = "ACTIVE" -> null + - updated_at = "2025-02-25T19:40:02.083Z" -> null + } + + # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be destroyed + - resource "ibm_kms_key_rings" "key_ring" { + - endpoint_type = "public" -> null + - force_delete = false -> null + - id = "mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null + - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + - key_ring_id = "mongodb-key-ring" -> null + } + + # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be destroyed + - resource "ibm_kms_key" "key" { + - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - endpoint_type = "public" -> null + - force_delete = true -> null + - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - instance_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null + - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - key_name = "mongodb-key" -> null + - key_ring_id = "mongodb-key-ring" -> null + - registrations = [ + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:cloud-object-storage:global:a/59ead63c1cc247cbb97d014133fedb32:edda8825-da01-4e1c-8f9a-4683306866b9:bucket:30aa3451-64c5-4e43-9317-a68eaff1c11a" + }, + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=bucket-30aa3451-64c5-4e43-9317-a68eaff1c11a" + }, + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-12997260-3a97-4504-937d-3026ca40968c" + }, + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-4c3a7552-7a19-43c6-bcf2-d03910abeb29" + }, + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-6e1a89c2-07db-42d9-bbe3-63e5bada01d0" + }, + - { + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" + - prevent_key_deletion = false + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-7f8675e9-1139-4572-abc1-94b8a52570f4" + }, + ] -> null + - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null + - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - resource_name = "mongodb-key" -> null + - resource_status = "1" -> null + - standard_key = false -> null + - type = "hs-crypto" -> null + # (5 unchanged attributes hidden) + } + + # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be destroyed + - resource "ibm_kms_key_policies" "root_key_policy" { + - endpoint_type = "public" -> null + - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null + - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - resource_name = "mongodb-key" -> null + - resource_status = "1" -> null + + - dual_auth_delete { + - created_by = "IBMid-695000L3KW" -> null + - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null + - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:586868a3-11f5-400a-8503-5609f7b581ee" -> null + - enabled = false -> null + - id = "586868a3-11f5-400a-8503-5609f7b581ee" -> null + - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null + - updated_by = "IBMid-695000L3KW" -> null + } + + - rotation { + - created_by = "IBMid-695000L3KW" -> null + - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null + - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:0c292d03-8d13-465b-8d44-ee450768e927" -> null + - enabled = true -> null + - id = "0c292d03-8d13-465b-8d44-ee450768e927" -> null + - interval_month = 3 -> null + - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null + - updated_by = "IBMid-695000L3KW" -> null + } + } + + # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed + - resource "ibm_database" "mongodb" { + - adminpassword = (sensitive value) -> null + - adminuser = "admin" -> null + - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - deletion_protection = false -> null + - groups = [ + - { + - count = 3 + - cpu = [ + - { + - allocation_count = 0 + - can_scale_down = true + - is_adjustable = true + - minimum_count = 0 + - step_size_count = 3 + - units = "count" + }, + ] + - disk = [ + - { + - allocation_mb = 30720 + - can_scale_down = false + - is_adjustable = true + - minimum_mb = 30720 + - step_size_mb = 3072 + - units = "mb" + }, + ] + - group_id = "member" + - host_flavor = [ + - { + - id = "multitenant" + name = null + # (1 unchanged attribute hidden) + }, + ] + - memory = [ + - { + - allocation_mb = 12288 + - can_scale_down = true + - cpu_enforcement_ratio_ceiling_mb = 0 + - cpu_enforcement_ratio_mb = 0 + - is_adjustable = true + - minimum_mb = 12288 + - step_size_mb = 384 + - units = "mb" + }, + ] + }, + ] -> null + - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null + - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + - location = "us-south" -> null + - name = "mongodb" -> null + - plan = "standard" -> null + - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null + - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null + - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null + - resource_name = "mongodb" -> null + - resource_status = "active" -> null + - service = "databases-for-mongodb" -> null + - service_endpoints = "private" -> null + - status = "active" -> null + - tags = [] -> null + - version = "7.0" -> null + + - auto_scaling { + - cpu { + - rate_increase_percent = 10 -> null + - rate_limit_count_per_member = 30 -> null + - rate_period_seconds = 900 -> null + - rate_units = "count" -> null + } + - disk { + - capacity_enabled = false -> null + - free_space_less_than_percent = 10 -> null + - io_above_percent = 90 -> null + - io_enabled = false -> null + - io_over_period = "15m" -> null + - rate_increase_percent = 10 -> null + - rate_limit_mb_per_member = 3670016 -> null + - rate_period_seconds = 900 -> null + - rate_units = "mb" -> null + } + - memory { + - io_above_percent = 90 -> null + - io_enabled = false -> null + - io_over_period = "15m" -> null + - rate_increase_percent = 10 -> null + - rate_limit_mb_per_member = 114688 -> null + - rate_period_seconds = 900 -> null + - rate_units = "mb" -> null + } + } + + - group { + - group_id = "member" -> null + + - cpu { + - allocation_count = 0 -> null + } + + - disk { + - allocation_mb = 10240 -> null + } + + - host_flavor { + - id = "multitenant" -> null + } + + - members { + - allocation_count = 3 -> null + } + + - memory { + - allocation_mb = 4096 -> null + } + } + + - timeouts { + - create = "120m" -> null + - delete = "15m" -> null + - update = "120m" -> null + } + } + + # module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be destroyed + - resource "ibm_iam_authorization_policy" "kms_policy" { + - description = "Allow all MongoDB instances in the resource group 915e8c5a65524a83987eadf520846357 to read the hs-crypto key 55893fa3-bf19-4da5-b5fb-8bf2449081a2 from the instance GUID e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + - id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" -> null + - roles = [ + - "Reader", + ] -> null + - source_resource_group_id = "915e8c5a65524a83987eadf520846357" -> null + - source_service_account = "abac0df06b644a9cabc6e44f55b3880e" -> null + - source_service_name = "databases-for-mongodb" -> null + - target_resource_instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + - target_resource_type = "key" -> null + - target_service_name = "hs-crypto" -> null + - transaction_id = "012486de536d41c4a57382aff32244dd" -> null + # (3 unchanged attributes hidden) + + - resource_attributes { + - name = "accountId" -> null + - operator = "stringEquals" -> null + - value = "abac0df06b644a9cabc6e44f55b3880e" -> null + } + - resource_attributes { + - name = "resource" -> null + - operator = "stringEquals" -> null + - value = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null + } + - resource_attributes { + - name = "resourceType" -> null + - operator = "stringEquals" -> null + - value = "key" -> null + } + - resource_attributes { + - name = "serviceInstance" -> null + - operator = "stringEquals" -> null + - value = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null + } + - resource_attributes { + - name = "serviceName" -> null + - operator = "stringEquals" -> null + - value = "hs-crypto" -> null + } + } + + # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed + - resource "ibm_resource_tag" "mongodb_tag" { + - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - replace = false -> null + - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - tag_type = "access" -> null + - tags = [ + - "geretain-dev-1:permanent-test-tag-4", + - "geretain-dev:permanent-test-tag-1", + ] -> null + # (1 unchanged attribute hidden) + } + + # module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] will be destroyed + - resource "time_sleep" "wait_for_authorization_policy" { + - create_duration = "30s" -> null + - id = "2025-02-25T19:40:48Z" -> null + } + +Plan: 0 to add, 0 to change, 9 to destroy. + +Changes to Outputs: + - adminuser = "admin" -> null + - cbr_rule_ids = [] -> null + - certificate_base64 = (sensitive value) -> null + - crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null + - hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> null + - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null + - port = 30478 -> null + - version = "7.0" -> null +module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destruction complete after 1s +module.mongodb[0].module.mongodb.ibm_database.mongodb: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] +module.mongodb[0].module.mongodb.ibm_database.mongodb: Still destroying... [id=crn:v1:bluemix:public:databases-for-mon...30aa3451-64c5-4e43-9317-a68eaff1c11a::, 10s elapsed] +module.mongodb[0].module.mongodb.ibm_database.mongodb: Destruction complete after 12s +module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destroying... [id=2025-02-25T19:40:48Z] +random_password.admin_password[0]: Destroying... [id=none] +module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destruction complete after 0s +random_password.admin_password[0]: Destruction complete after 0s +module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destroying... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] +module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destruction complete after 1s +module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=915e8c5a65524a83987eadf520846357] +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destruction complete after 0s +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] +module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s +module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destruction complete after 2s +module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destroying... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] +module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destruction complete after 2s + +Destroy complete! Resources: 9 destroyed. + +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:266: END: Destroy +TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:384: Restoring UseTerraformWorkspace and WorkspacePath to original values: false +--- FAIL: TestRunStandardUpgradeSolution (660.41s) +FAIL +exit status 1 +FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 661.456s diff --git a/main.tf b/main.tf index 5a7b099a..eb14a376 100644 --- a/main.tf +++ b/main.tf @@ -189,14 +189,6 @@ resource "ibm_database" "mongodb_database" { backup_encryption_key_crn = local.backup_encryption_key_crn backup_id = var.backup_crn - configuration = var.configuration == null ? null : jsonencode({ - maxmemory = var.configuration.maxmemory != null ? var.configuration.maxmemory : local.calculate_config_maxmemory - maxmemory-policy = var.configuration.maxmemory-policy != null ? var.configuration.maxmemory-policy : "noeviction" - appendonly = var.configuration.appendonly != null ? var.configuration.appendonly : "yes" - maxmemory-samples = var.configuration.maxmemory-samples != null ? var.configuration.maxmemory-samples : 5 - stop-writes-on-bgsave-error = var.configuration.stop-writes-on-bgsave-error != null ? var.configuration.stop-writes-on-bgsave-error : "yes" - }) - dynamic "users" { for_each = nonsensitive(var.users != null ? var.users : []) content { diff --git a/modules/fscloud/main.tf b/modules/fscloud/main.tf index 02bd945a..d0f33b9f 100644 --- a/modules/fscloud/main.tf +++ b/modules/fscloud/main.tf @@ -16,7 +16,6 @@ module "mongodb" { cbr_rules = var.cbr_rules access_tags = var.access_tags tags = var.tags - configuration = var.configuration members = var.members member_memory_mb = var.member_memory_mb admin_pass = var.admin_pass diff --git a/modules/fscloud/variables.tf b/modules/fscloud/variables.tf index d91d600c..1005ca38 100644 --- a/modules/fscloud/variables.tf +++ b/modules/fscloud/variables.tf @@ -101,18 +101,6 @@ variable "access_tags" { default = [] } -variable "configuration" { - type = object({ - maxmemory = optional(number) - maxmemory-policy = optional(string) - appendonly = optional(string) - maxmemory-samples = optional(number) - stop-writes-on-bgsave-error = optional(string) - }) - description = "Database Configuration." - default = null -} - ############################################################## # Auto Scaling ############################################################## diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 43e915dc..354d3642 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -314,7 +314,6 @@ module "mongodb" { auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names backup_crn = var.backup_crn - configuration = var.configuration } locals { @@ -385,7 +384,7 @@ locals { service_credentials_ttl = secret.service_credentials_ttl service_credential_secret_description = secret.service_credential_secret_description service_credentials_source_service_role_crn = secret.service_credentials_source_service_role_crn - service_credentials_source_service_crn = module.mongodb.crn + service_credentials_source_service_crn = local.mongodb_crn secret_type = "service_credentials" #checkov:skip=CKV_SECRET_6 } ] diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index b8a6422f..afd0c2e6 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -101,24 +101,6 @@ variable "member_host_flavor" { } } -variable "configuration" { - description = "Database Configuration for MongoDb instance. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb/blob/main/solutions/standard/DA-types.md#configuration)." - type = object({ - maxmemory = optional(number) - maxmemory-policy = optional(string) - appendonly = optional(string) - maxmemory-samples = optional(number) - stop-writes-on-bgsave-error = optional(string) - }) - default = { - maxmemory : 80, - maxmemory-policy : "noeviction", - appendonly : "yes", - maxmemory-samples : 5, - stop-writes-on-bgsave-error : "yes" - } -} - variable "service_credential_names" { description = "Map of name, role for service credentials that you want to create for the database. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb/blob/main/solutions/standard/DA-types.md#svc-credential-name)" type = map(string) diff --git a/tests/pr_test.go b/tests/pr_test.go index 3d6b5faa..adb7fde4 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -69,7 +69,7 @@ func TestRunStandardSolutionSchematics(t *testing.T) { }, TemplateFolder: standardSolutionTerraformDir, BestRegionYAMLPath: regionSelectionPath, - Prefix: "mongodb-st-da", + Prefix: "mdb-st-da", ResourceGroup: resourceGroup, DeleteWorkspaceOnFail: false, WaitJobCompleteMinutes: 60, @@ -98,14 +98,12 @@ func TestRunStandardSolutionSchematics(t *testing.T) { {Name: "existing_backup_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"}, {Name: "kms_endpoint_type", Value: "private", DataType: "string"}, {Name: "resource_group_name", Value: options.Prefix, DataType: "string"}, - {Name: "plan", Value: "platinum", DataType: "string"}, - {Name: "enable_elser_model", Value: true, DataType: "bool"}, + {Name: "plan", Value: "standard", DataType: "string"}, {Name: "service_credential_names", Value: "{\"admin_test\": \"Administrator\", \"editor_test\": \"Editor\"}", DataType: "map(string)"}, {Name: "existing_secrets_manager_instance_crn", Value: permanentResources["secretsManagerCRN"], DataType: "string"}, {Name: "service_credential_secrets", Value: serviceCredentialSecrets, DataType: "list(object)"}, - {Name: "admin_pass_secrets_manager_secret_group", Value: options.Prefix, DataType: "string"}, - {Name: "admin_pass_secrets_manager_secret_name", Value: options.Prefix, DataType: "string"}, - {Name: "enable_kibana_dashboard", Value: true, DataType: "bool"}, + {Name: "admin_pass_sm_secret_group", Value: options.Prefix, DataType: "string"}, + {Name: "admin_pass_sm_secret_name", Value: options.Prefix, DataType: "string"}, {Name: "provider_visibility", Value: "private", DataType: "string"}, {Name: "prefix", Value: options.Prefix, DataType: "string"}, } @@ -121,8 +119,7 @@ func TestRunStandardUpgradeSolution(t *testing.T) { BestRegionYAMLPath: regionSelectionPath, Prefix: "mongodb-st-da-upg", ResourceGroup: resourceGroup, - CheckApplyResultForUpgrade: true, - }) +}) options.TerraformVars = map[string]interface{}{ "access_tags": permanentResources["accessTags"], diff --git a/variables.tf b/variables.tf index c87a7801..c6a24d33 100644 --- a/variables.tf +++ b/variables.tf @@ -146,17 +146,6 @@ variable "access_tags" { } } -variable "configuration" { - type = object({ - maxmemory = optional(number) - maxmemory-policy = optional(string) - appendonly = optional(string) - maxmemory-samples = optional(number) - stop-writes-on-bgsave-error = optional(string) - }) - description = "Database Configuration. Default values will get picked up if not all the values are passed." - default = null -} ############################################################## # Auto Scaling From 7c68e9aeec7c3e377ff4de3b237497685d703f33 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Wed, 26 Feb 2025 15:42:26 +0530 Subject: [PATCH 05/21] fixed errors --- README.md | 1 - ibm_catalog.json | 3 - logs.logs | 1674 ------------------------------------- main.tf | 3 - modules/fscloud/README.md | 1 - tests/pr_test.go | 12 +- 6 files changed, 6 insertions(+), 1688 deletions(-) delete mode 100644 logs.logs diff --git a/README.md b/README.md index fb27bf6a..0027b779 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,6 @@ You need the following permissions to run this module. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | -| [configuration](#input\_configuration) | Database Configuration. Default values will get picked up if not all the values are passed. |
object({
maxmemory = optional(number)
maxmemory-policy = optional(string)
appendonly = optional(string)
maxmemory-samples = optional(number)
stop-writes-on-bgsave-error = optional(string)
})
| `null` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | | [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | diff --git a/ibm_catalog.json b/ibm_catalog.json index 09d18a3f..686c21a7 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -215,9 +215,6 @@ { "key": "member_host_flavor" }, - { - "key": "configuration" - }, { "key": "service_credential_names" }, diff --git a/logs.logs b/logs.logs deleted file mode 100644 index b321dea5..00000000 --- a/logs.logs +++ /dev/null @@ -1,1674 +0,0 @@ -cd tests && go test -run TestRunStandardUpgradeSolution -count=1 -v -timeout 600m -=== RUN TestRunStandardUpgradeSolution -=== PAUSE TestRunStandardUpgradeSolution -=== CONT TestRunStandardUpgradeSolution -2025/02/26 01:09:13 Region eu-de VPC count: 5 -2025/02/26 01:09:13 --- new best region is eu-de -2025/02/26 01:09:15 Region us-south VPC count: 18 -2025/02/26 01:09:15 Best region was found!: eu-de -TestRunStandardUpgradeSolution 2025-02-26T01:09:15+05:30 tests.go:341: PR Branch: test-coverage -TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 tests.go:349: Base Repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git -TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 tests.go:350: Base Branch: main -TestRunStandardUpgradeSolution 2025-02-26T01:09:16+05:30 git.go:400: Remote name: upstream-fnguum -TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 git.go:415: Fetch output: - [] -Commit Messages (main): -commit c2a690c40bb0ea4951229ab878134f6dd3da817f -Author: Aatreyee Mukherjee -Date: Tue Feb 25 11:56:28 2025 +0530 - - fixed errors - -commit 89d796bef52ac92c850e38612c0c38806513179c -Author: Aatreyee Mukherjee -Date: Mon Feb 24 14:24:09 2025 +0530 - - fixed errors - -commit 2d39c714c1b9f944144989a1a1163a9efc3207b5 -Author: Aatreyee Mukherjee -Date: Sun Feb 23 19:12:53 2025 +0530 - - test-coverage for mongodb -TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:382: Temporarily disabling UseTerraformWorkspace in Upgrade Test as temporary directories are used instead of workspaces -TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:403: TEMP PR DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910 -TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:415: TEMP UPGRADE BASE DIR CREATED: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-dtedo22412033432 -TestRunStandardUpgradeSolution 2025-02-26T01:09:17+05:30 tests.go:438: Copied current code to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910 -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 git.go:491: Cloned base repo and branch with authentication -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:473: Init / Apply on Base repo: https://github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb.git -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:474: Init / Apply on Base branch: main -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 tests.go:475: Init / Apply on Base branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-base-mongodb-st-da-upg-dtedo22412033432/solutions/standard -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Initializing the backend... -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Upgrading modules... -TestRunStandardUpgradeSolution 2025-02-26T01:09:18+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-all-inclusive/ibm 4.19.8 for kms... -TestRunStandardUpgradeSolution 2025-02-26T01:09:20+05:30 logger.go:67: - kms in .terraform/modules/kms -TestRunStandardUpgradeSolution 2025-02-26T01:09:20+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.existing_key_ring_keys... -TestRunStandardUpgradeSolution 2025-02-26T01:09:23+05:30 logger.go:67: - kms.existing_key_ring_keys in .terraform/modules/kms.existing_key_ring_keys -TestRunStandardUpgradeSolution 2025-02-26T01:09:23+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/key-protect/ibm 2.10.0 for kms.key_protect... -TestRunStandardUpgradeSolution 2025-02-26T01:09:25+05:30 logger.go:67: - kms.key_protect in .terraform/modules/kms.key_protect -TestRunStandardUpgradeSolution 2025-02-26T01:09:25+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for kms.key_protect.cbr_rule... -TestRunStandardUpgradeSolution 2025-02-26T01:09:28+05:30 logger.go:67: - kms.key_protect.cbr_rule in .terraform/modules/kms.key_protect.cbr_rule/modules/cbr-rule-module -TestRunStandardUpgradeSolution 2025-02-26T01:09:28+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key-ring/ibm 2.5.0 for kms.kms_key_rings... -TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: - kms.kms_key_rings in .terraform/modules/kms.kms_key_rings -TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/kms-key/ibm 1.4.0 for kms.kms_keys... -TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: - kms.kms_keys in .terraform/modules/kms.kms_keys -TestRunStandardUpgradeSolution 2025-02-26T01:09:30+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_backup_key_crn_parser in .terraform/modules/kms_backup_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_instance_crn_parser... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_instance_crn_parser in .terraform/modules/kms_instance_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for kms_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - kms_key_crn_parser in .terraform/modules/kms_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb in ../../modules/fscloud -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb in ../.. -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.backup_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.backup_key_crn_parser in .terraform/modules/mongodb.mongodb.backup_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for mongodb.mongodb.cbr_rule... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.cbr_rule in .terraform/modules/mongodb.mongodb.cbr_rule/modules/cbr-rule-module -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for mongodb.mongodb.kms_key_crn_parser... -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: - mongodb.mongodb.kms_key_crn_parser in .terraform/modules/mongodb.mongodb.kms_key_crn_parser/modules/crn-parser -TestRunStandardUpgradeSolution 2025-02-26T01:09:33+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunStandardUpgradeSolution 2025-02-26T01:09:36+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunStandardUpgradeSolution 2025-02-26T01:09:36+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager/ibm 1.23.9 for secrets_manager_service_credentials... -TestRunStandardUpgradeSolution 2025-02-26T01:09:38+05:30 logger.go:67: - secrets_manager_service_credentials in .terraform/modules/secrets_manager_service_credentials/modules/secrets -TestRunStandardUpgradeSolution 2025-02-26T01:09:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret-group/ibm 1.2.2 for secrets_manager_service_credentials.secret_groups... -TestRunStandardUpgradeSolution 2025-02-26T01:09:40+05:30 logger.go:67: - secrets_manager_service_credentials.secret_groups in .terraform/modules/secrets_manager_service_credentials.secret_groups -TestRunStandardUpgradeSolution 2025-02-26T01:09:40+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/secrets-manager-secret/ibm 1.7.0 for secrets_manager_service_credentials.secrets... -TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - secrets_manager_service_credentials.secrets in .terraform/modules/secrets_manager_service_credentials.secrets -TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: Initializing provider plugins... -TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, 0.12.1, < 1.0.0"... -TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding hashicorp/random versions matching "3.6.3"... -TestRunStandardUpgradeSolution 2025-02-26T01:09:43+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.51.0, >= 1.62.0, >= 1.69.0, >= 1.70.0, 1.75.2, < 2.0.0"... -TestRunStandardUpgradeSolution 2025-02-26T01:09:46+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.75.2... -TestRunStandardUpgradeSolution 2025-02-26T01:09:51+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.75.2 (self-signed, key ID AAD3B791C49CC253) -TestRunStandardUpgradeSolution 2025-02-26T01:09:51+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunStandardUpgradeSolution 2025-02-26T01:09:52+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunStandardUpgradeSolution 2025-02-26T01:09:52+05:30 logger.go:67: - Installing hashicorp/random v3.6.3... -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: - Installed hashicorp/random v3.6.3 (signed by HashiCorp) -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: selections it made above. Include this file in your version control repository -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: you run "terraform init" in the future. -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Terraform has been successfully initialized! -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: should now work. -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var resource_group_name=mongodb-st-da-upg-dtedo2 -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] -TestRunStandardUpgradeSolution 2025-02-26T01:09:53+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var resource_group_name=mongodb-st-da-upg-dtedo2 -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -lock=false] -TestRunStandardUpgradeSolution 2025-02-26T01:09:56+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:09:56+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:09:57+05:30 logger.go:67: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 3s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Terraform used the selected providers to generate the following execution -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: <= read (data resources) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Terraform will perform the following actions: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # random_password.admin_password[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "random_password" "admin_password" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + bcrypt_hash = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + length = 32 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + lower = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_lower = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_numeric = 1 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_special = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + min_upper = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + number = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + numeric = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + override_special = "-_" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + result = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + special = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + upper = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_at = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + default = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "mongodb-st-da-upg-dtedo2" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + payment_methods_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + quota_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + quota_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_linkages = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + state = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + teams_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_at = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key_rings" "key_ring" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + force_delete = false -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key" "key" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + force_delete = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_name = "mongodb-key" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_ring_id = "mongodb-key-ring" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + payload = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + registrations = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + standard_key = false -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_kms_key_policies" "root_key_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "public" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + dual_auth_delete { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + creation_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + enabled = false -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + last_update_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + rotation { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + created_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + creation_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + enabled = true -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + interval_month = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + last_update_date = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + updated_by = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.data.ibm_database_connection.database_connection will be read during apply -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: # (config refers to values not yet known) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + amqps = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + analytics = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + bi_connector = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cli = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + deployment_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + emp = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + endpoint_type = "private" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + grpc = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + https = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mongodb = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mqtts = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + mysql = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + ops_manager = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + postgres = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + rediss = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + secure = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + stomp_ssl = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + user_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + user_type = "database" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_database.mongodb will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_database" "mongodb" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminpassword = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminuser = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + backup_encryption_key_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + configuration_schema = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + deletion_protection = false -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + groups = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + guid = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + key_protect_key = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + location = "us-south" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "mongodb" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + plan = "standard" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_group_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + service = "databases-for-mongodb" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + service_endpoints = "private" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tags = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + auto_scaling (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + group { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + group_id = "member" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cpu { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_count = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + disk { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_mb = 10240 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + host_flavor { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = "multitenant" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + members { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + memory { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + allocation_mb = 4096 -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + timeouts { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create = "120m" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + delete = "15m" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + update = "120m" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_iam_authorization_policy" "kms_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + description = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + roles = [ -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "Reader", -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: ] -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_instance_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_resource_type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_service_account = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + source_service_name = "databases-for-mongodb" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_group_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_instance_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_resource_type = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + target_service_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + transaction_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "accountId" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "resource" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "resourceType" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = "key" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "serviceInstance" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + name = "serviceName" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + operator = "stringEquals" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + value = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + subject_attributes (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "ibm_resource_tag" "mongodb_tag" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + account_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + replace = false -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + resource_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tag_type = "access" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + tags = [ -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "geretain-dev-1:permanent-test-tag-4", -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + "geretain-dev:permanent-test-tag-1", -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: ] -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  + resource "time_sleep" "wait_for_authorization_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + create_duration = "30s" -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: } -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Plan: 9 to add, 0 to change, 0 to destroy. -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: Changes to Outputs: -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + adminuser = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + cbr_rule_ids = [] -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + certificate_base64 = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + guid = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + hostname = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + port = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: random_password.admin_password[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:00+05:30 logger.go:67: random_password.admin_password[0]: Creation complete after 0s [id=none] -TestRunStandardUpgradeSolution 2025-02-26T01:10:01+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:01+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:03+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 3s [id=915e8c5a65524a83987eadf520846357] -TestRunStandardUpgradeSolution 2025-02-26T01:10:05+05:30 logger.go:67: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Creation complete after 5s [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:10:05+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:10+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Creation complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:10:10+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:15+05:30 logger.go:67: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Creation complete after 5s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:10:15+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:18+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Creation complete after 3s [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -TestRunStandardUpgradeSolution 2025-02-26T01:10:18+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:10:28+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:10:38+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:10:48+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:10:48+05:30 logger.go:67: module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0]: Creation complete after 30s [id=2025-02-25T19:40:48Z] -TestRunStandardUpgradeSolution 2025-02-26T01:10:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:11:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:11:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:11:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:11:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:11:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:11:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [1m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:12:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [2m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:13:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [3m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:14:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [4m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:15:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [5m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:16:50+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m0s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:00+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:10+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:20+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:30+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m40s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:40+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Still creating... [6m50s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_database.mongodb: Creation complete after 6m56s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creating... -TestRunStandardUpgradeSolution 2025-02-26T01:17:45+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:17:47+05:30 logger.go:67: module.mongodb.module.mongodb.data.ibm_database_connection.database_connection: Read complete after 1s [id=2025-02-25 19:47:47.249415 +0000 UTC] -TestRunStandardUpgradeSolution 2025-02-26T01:17:55+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:18:05+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [20s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:18:15+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Still creating... [30s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]: Creation complete after 32s [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: Apply complete! Resources: 9 added, 0 changed, 0 destroyed. -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67:  -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: Outputs: -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: adminuser = "admin" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: cbr_rule_ids = [] -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: certificate_base64 = -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: port = 30478 -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 logger.go:67: version = "7.0" -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 retry.go:91: terraform [output -no-color -json] -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:521: State file copied to PR branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terraform.tfstate -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:524: Init / Plan on PR Branch: test-coverage -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:525: Init / Plan on PR Branch dir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 tests.go:618: START: Init / Plan / Show w/Struct -TestRunStandardUpgradeSolution 2025-02-26T01:18:18+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunStandardUpgradeSolution 2025-02-26T01:18:53+05:30 retry.go:91: terraform [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] -TestRunStandardUpgradeSolution 2025-02-26T01:19:13+05:30 retry.go:91: terraform [show -no-color -json /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] -TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 tests.go:636: FINISHED: Init / Plan / Show w/Struct -TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 tests.go:540: Parsing plan output to determine if any resources identified for destroy (PR branch)... - terraform.go:236: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/terraform.go:236 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:541 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:133 - Error: Should be false - Test: TestRunStandardUpgradeSolution - Messages: Resource(s) identified to be destroyed - Name: mongodb - Address: module.mongodb[0].module.mongodb.ibm_database.mongodb - Actions: [delete] - DIFF: - Error getting diff: missing 'before' or 'after' key in JSON - - Change Detail: - { - "actions": [ - "delete" - ], - "after_sensitive": false, - "after_unknown": {}, - "before": { - "adminpassword": "SECURE_VALUE_HIDDEN_HASH:-64a77101d01bde937487ba5e23c43dcf4dd2f99e04764912ca071eea", - "adminuser": "admin", - "allowlist": "SECURE_VALUE_HIDDEN_HASH:-86dc5c4d2ad949cb18822fc487826d6d417ae240b74cce5980dc9c07", - "auto_scaling": "SECURE_VALUE_HIDDEN_HASH:-c657c6ce79a497218908be14107b0e73aa4382f3f8724e52f475bbf5", - "backup_encryption_key_crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2", - "backup_id": null, - "configuration": null, - "configuration_schema": null, - "deletion_protection": false, - "group": "SECURE_VALUE_HIDDEN_HASH:-b151cd993baba0db5296a7ba68f288d7909c98f90ea2ff6d24fe435c", - "groups": "SECURE_VALUE_HIDDEN_HASH:-a5b48b42a62cecb7cddabdde1b849533636608795fa0a5c6cd840edc", - "guid": "30aa3451-64c5-4e43-9317-a68eaff1c11a", - "id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", - "key_protect_instance": null, - "key_protect_key": "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2", - "location": "us-south", - "logical_replication_slot": "SECURE_VALUE_HIDDEN_HASH:-456f91291b3b7d2ba15ed392ba9cd67063236f7e5f704cdaad424206", - "name": "mongodb", - "offline_restore": null, - "plan": "standard", - "point_in_time_recovery_deployment_id": null, - "point_in_time_recovery_time": null, - "remote_leader_id": null, - "resource_controller_url": "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A", - "resource_crn": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", - "resource_group_id": "915e8c5a65524a83987eadf520846357", - "resource_group_name": "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357", - "resource_name": "mongodb", - "resource_status": "active", - "service": "databases-for-mongodb", - "service_endpoints": "private", - "skip_initial_backup": null, - "status": "active", - "tags": "SECURE_VALUE_HIDDEN_HASH:-eb67d8b81274b911a5a9c75a2aa21d50a7e2923f79d99d85c12ed690", - "timeouts": { - "create": "120m", - "delete": "15m", - "update": "120m" - }, - "users": "SECURE_VALUE_HIDDEN_HASH:-0cf0931b4a6471e7fcbdc8143a3d5abcdcc7937fa1a365296e5b43fb", - "version": "7.0" - }, - "before_sensitive": { - "adminpassword": true, - "allowlist": [], - "auto_scaling": [ - { - "cpu": [ - {} - ], - "disk": [ - {} - ], - "memory": [ - {} - ] - } - ], - "group": [ - { - "cpu": [ - {} - ], - "disk": [ - {} - ], - "host_flavor": [ - {} - ], - "members": [ - {} - ], - "memory": [ - {} - ] - } - ], - "groups": [ - { - "cpu": [ - {} - ], - "disk": [ - {} - ], - "host_flavor": [ - {} - ], - "memory": [ - {} - ] - } - ], - "logical_replication_slot": [], - "tags": [], - "timeouts": {}, - "users": [] - } - } - terraform.go:236: - Error Trace: /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/terraform.go:236 - /Users/aatreyeemukherjee/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.46.1/testhelper/tests.go:541 - /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:133 - Error: Should be false - Test: TestRunStandardUpgradeSolution - Messages: Resource(s) identified to be destroyed - Name: mongodb_tag - Address: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] - Actions: [delete] - DIFF: - Error getting diff: missing 'before' or 'after' key in JSON - - Change Detail: - { - "actions": [ - "delete" - ], - "after_sensitive": false, - "after_unknown": {}, - "before": { - "account_id": null, - "id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", - "replace": false, - "resource_id": "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::", - "resource_type": "", - "tag_type": "access", - "tags": "SECURE_VALUE_HIDDEN_HASH:-40603cb705891b87e18d6f627d8e47f90b5d088293f137b961b6fd2c", - "timeouts": null - }, - "before_sensitive": { - "tags": [ - false, - false - ] - } - } -TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 retry.go:91: terraform [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] -TestRunStandardUpgradeSolution 2025-02-26T01:19:14+05:30 command.go:121: Running command terraform with args [plan -input=false -lock=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false -out=/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811] -TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: random_password.admin_password[0]: Refreshing state... [id=none] -TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] -TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:19:15+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:16+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] -TestRunStandardUpgradeSolution 2025-02-26T01:19:17+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:19:17+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:21+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -TestRunStandardUpgradeSolution 2025-02-26T01:19:24+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:26+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Terraform used the selected providers to generate the following execution -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: plan. Resource actions are indicated with the following symbols: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + create -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - destroy -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: <= read (data resources) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Terraform will perform the following actions: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.data.ibm_database_connection.database_connection will be read during apply -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (config refers to values not yet known) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.data.ibm_database_connection.database_connection) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  <= data "ibm_database_connection" "database_connection" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + amqps = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + analytics = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + bi_connector = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + cli = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + deployment_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + emp = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + endpoint_type = "private" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + grpc = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + https = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mongodb = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mqtts = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + mysql = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + ops_manager = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + postgres = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + rediss = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + secure = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + stomp_ssl = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + user_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + user_type = "database" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (because module.mongodb.module.mongodb.ibm_database.mongodb was moved to module.mongodb[0].module.mongodb.ibm_database.mongodb, which is not in configuration) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.ibm_database.mongodb) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  - resource "ibm_database" "mongodb" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminpassword = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminuser = "admin" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - deletion_protection = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - groups = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_count = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "count" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 30720 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_mb = 30720 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_mb = 3072 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "mb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group_id = "member" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - host_flavor = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "multitenant" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: name = null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 12288 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - can_scale_down = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu_enforcement_ratio_ceiling_mb = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu_enforcement_ratio_mb = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - minimum_mb = 12288 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - step_size_mb = 384 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - units = "mb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - location = "us-south" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - name = "mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - plan = "standard" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_name = "mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_status = "active" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - service = "databases-for-mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - service_endpoints = "private" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - status = "active" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tags = [] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - version = "7.0" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - auto_scaling { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_count_per_member = 30 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "count" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - capacity_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - free_space_less_than_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_above_percent = 90 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_over_period = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_mb_per_member = 3670016 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "mb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_above_percent = 90 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - io_over_period = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_limit_mb_per_member = 114688 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - rate_units = "mb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - group_id = "member" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cpu { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 0 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - disk { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 10240 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - host_flavor { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "multitenant" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - members { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_count = 3 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - memory { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - allocation_mb = 4096 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - timeouts { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - create = "120m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - delete = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - update = "120m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb_database will be created -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  + resource "ibm_database" "mongodb_database" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + adminpassword = (sensitive value) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + adminuser = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + configuration_schema = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + deletion_protection = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + groups = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + guid = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + location = "us-south" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + name = "mongodb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + plan = "standard" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_controller_url = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_crn = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_group_id = "915e8c5a65524a83987eadf520846357" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_group_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_name = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + service = "databases-for-mongodb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + service_endpoints = "private" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + status = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tags = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + version = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + auto_scaling (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + group { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + group_id = "member" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + disk { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + allocation_mb = 10240 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + host_flavor { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = "b3c.4x16.encrypted" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + members { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + allocation_count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + timeouts { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + create = "120m" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + delete = "15m" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + update = "120m" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb.module.mongodb.ibm_iam_authorization_policy.kms_policy[0] has moved to module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  resource "ibm_iam_authorization_policy" "kms_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (12 unchanged attributes hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (5 unchanged blocks hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.access_tag[0] will be created -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  + resource "ibm_resource_tag" "access_tag" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + account_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + replace = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + resource_id = (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tag_type = "access" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + tags = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + "geretain-dev-1:permanent-test-tag-4", -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: + "geretain-dev:permanent-test-tag-1", -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (because module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0] was moved to module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0], which is not in configuration) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (moved from module.mongodb.module.mongodb.ibm_resource_tag.mongodb_tag[0]) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  - resource "ibm_resource_tag" "mongodb_tag" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - replace = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tag_type = "access" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - tags = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - "geretain-dev-1:permanent-test-tag-4", -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - "geretain-dev:permanent-test-tag-1", -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  # module.mongodb.module.mongodb.time_sleep.wait_for_authorization_policy[0] has moved to module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  resource "time_sleep" "wait_for_authorization_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: id = "2025-02-25T19:40:48Z" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: # (1 unchanged attribute hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Plan: 2 to add, 0 to change, 2 to destroy. -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Changes to Outputs: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - adminuser = "admin" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - cbr_rule_ids = [] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: - certificate_base64 = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ port = 30478 -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ~ version = "7.0" -> (known after apply) -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206:  -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: ───────────────────────────────────────────────────────────────────────────── -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: Saved the plan to: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811 -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: To perform exactly these actions, run the following command to apply: -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:206: terraform apply "/var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/terraform-pr-mongodb-st-da-upg-dtedo24098470910/solutions/standard/terratest-plan-file-863537811" -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 retry.go:91: terraform [output -no-color -json] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 tests.go:196: START: Destroy -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false] -TestRunStandardUpgradeSolution 2025-02-26T01:19:31+05:30 command.go:121: Running command terraform with args [destroy -auto-approve -input=false -var access_tags=["geretain-dev:permanent-test-tag-1", "geretain-dev-1:permanent-test-tag-4"] -var existing_kms_instance_crn=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:: -var kms_endpoint_type=public -var provider_visibility=public -var resource_group_name=mongodb-st-da-upg-dtedo2 -lock=false] -TestRunStandardUpgradeSolution 2025-02-26T01:19:32+05:30 command.go:206: random_password.admin_password[0]: Refreshing state... [id=none] -TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] -TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... -TestRunStandardUpgradeSolution 2025-02-26T01:19:33+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:34+05:30 command.go:206: data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] -TestRunStandardUpgradeSolution 2025-02-26T01:19:35+05:30 command.go:206: module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:35+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:19:40+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -TestRunStandardUpgradeSolution 2025-02-26T01:19:42+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:45+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Terraform used the selected providers to generate the following execution -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: plan. Resource actions are indicated with the following symbols: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - destroy -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Terraform will perform the following actions: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # random_password.admin_password[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "random_password" "admin_password" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - bcrypt_hash = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "none" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - length = 32 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - lower = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_lower = 0 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_numeric = 1 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_special = 0 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - min_upper = 0 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - number = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - numeric = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - override_special = "-_" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - result = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - special = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - upper = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_resource_group" "resource_group" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_at = "2025-02-25T19:40:02.083Z" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - default = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "mongodb-st-da-upg-dtedo2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_linkages = [] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - state = "ACTIVE" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_at = "2025-02-25T19:40:02.083Z" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key_rings" "key_ring" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - force_delete = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_ring_id = "mongodb-key-ring" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key" "key" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - force_delete = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_name = "mongodb-key" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_ring_id = "mongodb-key-ring" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - registrations = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:cloud-object-storage:global:a/59ead63c1cc247cbb97d014133fedb32:edda8825-da01-4e1c-8f9a-4683306866b9:bucket:30aa3451-64c5-4e43-9317-a68eaff1c11a" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=bucket-30aa3451-64c5-4e43-9317-a68eaff1c11a" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-12997260-3a97-4504-937d-3026ca40968c" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-4c3a7552-7a19-43c6-bcf2-d03910abeb29" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-6e1a89c2-07db-42d9-bbe3-63e5bada01d0" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - prevent_key_deletion = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-7f8675e9-1139-4572-abc1-94b8a52570f4" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb-key" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "1" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - standard_key = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - type = "hs-crypto" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (5 unchanged attributes hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_kms_key_policies" "root_key_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - endpoint_type = "public" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb-key" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "1" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - dual_auth_delete { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_by = "IBMid-695000L3KW" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:586868a3-11f5-400a-8503-5609f7b581ee" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "586868a3-11f5-400a-8503-5609f7b581ee" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_by = "IBMid-695000L3KW" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rotation { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - created_by = "IBMid-695000L3KW" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:0c292d03-8d13-465b-8d44-ee450768e927" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - enabled = true -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "0c292d03-8d13-465b-8d44-ee450768e927" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - interval_month = 3 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - updated_by = "IBMid-695000L3KW" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_database" "mongodb" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminpassword = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminuser = "admin" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - deletion_protection = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - groups = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_count = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_count = 3 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "count" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 30720 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = false -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_mb = 30720 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_mb = 3072 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "mb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group_id = "member" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - host_flavor = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "multitenant" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: name = null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (1 unchanged attribute hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 12288 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - can_scale_down = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu_enforcement_ratio_ceiling_mb = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu_enforcement_ratio_mb = 0 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - is_adjustable = true -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - minimum_mb = 12288 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - step_size_mb = 384 -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - units = "mb" -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: }, -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - location = "us-south" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - plan = "standard" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_name = "mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_status = "active" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - service = "databases-for-mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - service_endpoints = "private" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - status = "active" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tags = [] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - version = "7.0" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - auto_scaling { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_count_per_member = 30 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "count" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - capacity_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - free_space_less_than_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_above_percent = 90 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_over_period = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_mb_per_member = 3670016 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "mb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_above_percent = 90 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_enabled = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - io_over_period = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_increase_percent = 10 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_limit_mb_per_member = 114688 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_period_seconds = 900 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - rate_units = "mb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - group_id = "member" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cpu { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 0 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - disk { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 10240 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - host_flavor { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "multitenant" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - members { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_count = 3 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - memory { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - allocation_mb = 4096 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - timeouts { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - create = "120m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - delete = "15m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - update = "120m" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_iam_authorization_policy" "kms_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - description = "Allow all MongoDB instances in the resource group 915e8c5a65524a83987eadf520846357 to read the hs-crypto key 55893fa3-bf19-4da5-b5fb-8bf2449081a2 from the instance GUID e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - roles = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "Reader", -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_resource_group_id = "915e8c5a65524a83987eadf520846357" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_service_account = "abac0df06b644a9cabc6e44f55b3880e" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - source_service_name = "databases-for-mongodb" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_resource_instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_resource_type = "key" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - target_service_name = "hs-crypto" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - transaction_id = "012486de536d41c4a57382aff32244dd" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (3 unchanged attributes hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "accountId" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "abac0df06b644a9cabc6e44f55b3880e" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "resource" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "resourceType" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "key" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "serviceInstance" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_attributes { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - name = "serviceName" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - operator = "stringEquals" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - value = "hs-crypto" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "ibm_resource_tag" "mongodb_tag" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - replace = false -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tag_type = "access" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - tags = [ -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "geretain-dev-1:permanent-test-tag-4", -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - "geretain-dev:permanent-test-tag-1", -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: ] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: # (1 unchanged attribute hidden) -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  # module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] will be destroyed -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  - resource "time_sleep" "wait_for_authorization_policy" { -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - create_duration = "30s" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "2025-02-25T19:40:48Z" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: } -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Plan: 0 to add, 0 to change, 9 to destroy. -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206:  -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: Changes to Outputs: -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - adminuser = "admin" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - cbr_rule_ids = [] -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - certificate_base64 = (sensitive value) -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - port = 30478 -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:49+05:30 command.go:206: - version = "7.0" -> null -TestRunStandardUpgradeSolution 2025-02-26T01:19:50+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:19:51+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destruction complete after 1s -TestRunStandardUpgradeSolution 2025-02-26T01:19:51+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -TestRunStandardUpgradeSolution 2025-02-26T01:20:01+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Still destroying... [id=crn:v1:bluemix:public:databases-for-mon...30aa3451-64c5-4e43-9317-a68eaff1c11a::, 10s elapsed] -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_database.mongodb: Destruction complete after 12s -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destroying... [id=2025-02-25T19:40:48Z] -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: random_password.admin_password[0]: Destroying... [id=none] -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destruction complete after 0s -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: random_password.admin_password[0]: Destruction complete after 0s -TestRunStandardUpgradeSolution 2025-02-26T01:20:04+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destroying... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destruction complete after 1s -TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=915e8c5a65524a83987eadf520846357] -TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destruction complete after 0s -TestRunStandardUpgradeSolution 2025-02-26T01:20:05+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -TestRunStandardUpgradeSolution 2025-02-26T01:20:06+05:30 command.go:206: module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s -TestRunStandardUpgradeSolution 2025-02-26T01:20:07+05:30 command.go:206: module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destruction complete after 2s -TestRunStandardUpgradeSolution 2025-02-26T01:20:07+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destroying... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206: module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destruction complete after 2s -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206:  -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206: Destroy complete! Resources: 9 destroyed. -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 command.go:206:  -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:261: random_password.admin_password[0]: Refreshing state... [id=none] -data.ibm_iam_account_settings.iam_account_settings: Reading... -module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=915e8c5a65524a83987eadf520846357] -module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Reading... -module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Refreshing state... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -data.ibm_iam_account_settings.iam_account_settings: Read complete after 1s [id=abac0df06b644a9cabc6e44f55b3880e] -module.kms[0].data.ibm_resource_instance.existing_kms_instance[0]: Read complete after 2s [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Refreshing state... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Refreshing state... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -module.mongodb[0].module.mongodb.ibm_database.mongodb: Refreshing state... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Refreshing state... [id=2025-02-25T19:40:48Z] - -Terraform used the selected providers to generate the following execution -plan. Resource actions are indicated with the following symbols: - - destroy - -Terraform will perform the following actions: - - # random_password.admin_password[0] will be destroyed - - resource "random_password" "admin_password" { - - bcrypt_hash = (sensitive value) -> null - - id = "none" -> null - - length = 32 -> null - - lower = true -> null - - min_lower = 0 -> null - - min_numeric = 1 -> null - - min_special = 0 -> null - - min_upper = 0 -> null - - number = true -> null - - numeric = true -> null - - override_special = "-_" -> null - - result = (sensitive value) -> null - - special = true -> null - - upper = true -> null - } - - # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed - - resource "ibm_resource_group" "resource_group" { - - created_at = "2025-02-25T19:40:02.083Z" -> null - - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null - - default = false -> null - - id = "915e8c5a65524a83987eadf520846357" -> null - - name = "mongodb-st-da-upg-dtedo2" -> null - - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null - - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null - - resource_linkages = [] -> null - - state = "ACTIVE" -> null - - updated_at = "2025-02-25T19:40:02.083Z" -> null - } - - # module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring will be destroyed - - resource "ibm_kms_key_rings" "key_ring" { - - endpoint_type = "public" -> null - - force_delete = false -> null - - id = "mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null - - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - - key_ring_id = "mongodb-key-ring" -> null - } - - # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key will be destroyed - - resource "ibm_kms_key" "key" { - - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - endpoint_type = "public" -> null - - force_delete = true -> null - - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - instance_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::" -> null - - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - key_name = "mongodb-key" -> null - - key_ring_id = "mongodb-key-ring" -> null - - registrations = [ - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:cloud-object-storage:global:a/59ead63c1cc247cbb97d014133fedb32:edda8825-da01-4e1c-8f9a-4683306866b9:bucket:30aa3451-64c5-4e43-9317-a68eaff1c11a" - }, - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=bucket-30aa3451-64c5-4e43-9317-a68eaff1c11a" - }, - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-12997260-3a97-4504-937d-3026ca40968c" - }, - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-4c3a7552-7a19-43c6-bcf2-d03910abeb29" - }, - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-6e1a89c2-07db-42d9-bbe3-63e5bada01d0" - }, - - { - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" - - prevent_key_deletion = false - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::/agentid=pvc-7f8675e9-1139-4572-abc1-94b8a52570f4" - }, - ] -> null - - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null - - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - resource_name = "mongodb-key" -> null - - resource_status = "1" -> null - - standard_key = false -> null - - type = "hs-crypto" -> null - # (5 unchanged attributes hidden) - } - - # module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0] will be destroyed - - resource "ibm_kms_key_policies" "root_key_policy" { - - endpoint_type = "public" -> null - - id = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - - key_id = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - resource_controller_url = "https://cloud.ibm.com/services/kms/crn%3Av1%3Abluemix%3Apublic%3Ahs-crypto%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3Ae6dce284-e80f-46e1-a3c1-830f7adff7a9%3A%3A" -> null - - resource_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - resource_name = "mongodb-key" -> null - - resource_status = "1" -> null - - - dual_auth_delete { - - created_by = "IBMid-695000L3KW" -> null - - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null - - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:586868a3-11f5-400a-8503-5609f7b581ee" -> null - - enabled = false -> null - - id = "586868a3-11f5-400a-8503-5609f7b581ee" -> null - - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null - - updated_by = "IBMid-695000L3KW" -> null - } - - - rotation { - - created_by = "IBMid-695000L3KW" -> null - - creation_date = "2025-02-25 19:40:13 +0000 UTC" -> null - - crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:policy:0c292d03-8d13-465b-8d44-ee450768e927" -> null - - enabled = true -> null - - id = "0c292d03-8d13-465b-8d44-ee450768e927" -> null - - interval_month = 3 -> null - - last_update_date = "2025-02-25 19:40:13 +0000 UTC" -> null - - updated_by = "IBMid-695000L3KW" -> null - } - } - - # module.mongodb[0].module.mongodb.ibm_database.mongodb will be destroyed - - resource "ibm_database" "mongodb" { - - adminpassword = (sensitive value) -> null - - adminuser = "admin" -> null - - backup_encryption_key_crn = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - deletion_protection = false -> null - - groups = [ - - { - - count = 3 - - cpu = [ - - { - - allocation_count = 0 - - can_scale_down = true - - is_adjustable = true - - minimum_count = 0 - - step_size_count = 3 - - units = "count" - }, - ] - - disk = [ - - { - - allocation_mb = 30720 - - can_scale_down = false - - is_adjustable = true - - minimum_mb = 30720 - - step_size_mb = 3072 - - units = "mb" - }, - ] - - group_id = "member" - - host_flavor = [ - - { - - id = "multitenant" - name = null - # (1 unchanged attribute hidden) - }, - ] - - memory = [ - - { - - allocation_mb = 12288 - - can_scale_down = true - - cpu_enforcement_ratio_ceiling_mb = 0 - - cpu_enforcement_ratio_mb = 0 - - is_adjustable = true - - minimum_mb = 12288 - - step_size_mb = 384 - - units = "mb" - }, - ] - }, - ] -> null - - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null - - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - key_protect_key = "crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - - location = "us-south" -> null - - name = "mongodb" -> null - - plan = "standard" -> null - - resource_controller_url = "https://cloud.ibm.com/services/crn%3Av1%3Abluemix%3Apublic%3Adatabases-for-mongodb%3Aus-south%3Aa%2Fabac0df06b644a9cabc6e44f55b3880e%3A30aa3451-64c5-4e43-9317-a68eaff1c11a%3A%3A" -> null - - resource_crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - resource_group_id = "915e8c5a65524a83987eadf520846357" -> null - - resource_group_name = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:915e8c5a65524a83987eadf520846357" -> null - - resource_name = "mongodb" -> null - - resource_status = "active" -> null - - service = "databases-for-mongodb" -> null - - service_endpoints = "private" -> null - - status = "active" -> null - - tags = [] -> null - - version = "7.0" -> null - - - auto_scaling { - - cpu { - - rate_increase_percent = 10 -> null - - rate_limit_count_per_member = 30 -> null - - rate_period_seconds = 900 -> null - - rate_units = "count" -> null - } - - disk { - - capacity_enabled = false -> null - - free_space_less_than_percent = 10 -> null - - io_above_percent = 90 -> null - - io_enabled = false -> null - - io_over_period = "15m" -> null - - rate_increase_percent = 10 -> null - - rate_limit_mb_per_member = 3670016 -> null - - rate_period_seconds = 900 -> null - - rate_units = "mb" -> null - } - - memory { - - io_above_percent = 90 -> null - - io_enabled = false -> null - - io_over_period = "15m" -> null - - rate_increase_percent = 10 -> null - - rate_limit_mb_per_member = 114688 -> null - - rate_period_seconds = 900 -> null - - rate_units = "mb" -> null - } - } - - - group { - - group_id = "member" -> null - - - cpu { - - allocation_count = 0 -> null - } - - - disk { - - allocation_mb = 10240 -> null - } - - - host_flavor { - - id = "multitenant" -> null - } - - - members { - - allocation_count = 3 -> null - } - - - memory { - - allocation_mb = 4096 -> null - } - } - - - timeouts { - - create = "120m" -> null - - delete = "15m" -> null - - update = "120m" -> null - } - } - - # module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0] will be destroyed - - resource "ibm_iam_authorization_policy" "kms_policy" { - - description = "Allow all MongoDB instances in the resource group 915e8c5a65524a83987eadf520846357 to read the hs-crypto key 55893fa3-bf19-4da5-b5fb-8bf2449081a2 from the instance GUID e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - - id = "ee27b02e-6fc1-4f20-9f96-d0dd211e9864" -> null - - roles = [ - - "Reader", - ] -> null - - source_resource_group_id = "915e8c5a65524a83987eadf520846357" -> null - - source_service_account = "abac0df06b644a9cabc6e44f55b3880e" -> null - - source_service_name = "databases-for-mongodb" -> null - - target_resource_instance_id = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - - target_resource_type = "key" -> null - - target_service_name = "hs-crypto" -> null - - transaction_id = "012486de536d41c4a57382aff32244dd" -> null - # (3 unchanged attributes hidden) - - - resource_attributes { - - name = "accountId" -> null - - operator = "stringEquals" -> null - - value = "abac0df06b644a9cabc6e44f55b3880e" -> null - } - - resource_attributes { - - name = "resource" -> null - - operator = "stringEquals" -> null - - value = "55893fa3-bf19-4da5-b5fb-8bf2449081a2" -> null - } - - resource_attributes { - - name = "resourceType" -> null - - operator = "stringEquals" -> null - - value = "key" -> null - } - - resource_attributes { - - name = "serviceInstance" -> null - - operator = "stringEquals" -> null - - value = "e6dce284-e80f-46e1-a3c1-830f7adff7a9" -> null - } - - resource_attributes { - - name = "serviceName" -> null - - operator = "stringEquals" -> null - - value = "hs-crypto" -> null - } - } - - # module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0] will be destroyed - - resource "ibm_resource_tag" "mongodb_tag" { - - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - replace = false -> null - - resource_id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - tag_type = "access" -> null - - tags = [ - - "geretain-dev-1:permanent-test-tag-4", - - "geretain-dev:permanent-test-tag-1", - ] -> null - # (1 unchanged attribute hidden) - } - - # module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0] will be destroyed - - resource "time_sleep" "wait_for_authorization_policy" { - - create_duration = "30s" -> null - - id = "2025-02-25T19:40:48Z" -> null - } - -Plan: 0 to add, 0 to change, 9 to destroy. - -Changes to Outputs: - - adminuser = "admin" -> null - - cbr_rule_ids = [] -> null - - certificate_base64 = (sensitive value) -> null - - crn = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - guid = "30aa3451-64c5-4e43-9317-a68eaff1c11a" -> null - - hostname = "30aa3451-64c5-4e43-9317-a68eaff1c11a-0.8117147f814b4b2ea643610826cd2046.private.databases.appdomain.cloud" -> null - - id = "crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::" -> null - - port = 30478 -> null - - version = "7.0" -> null -module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -module.mongodb[0].module.mongodb.ibm_resource_tag.mongodb_tag[0]: Destruction complete after 1s -module.mongodb[0].module.mongodb.ibm_database.mongodb: Destroying... [id=crn:v1:bluemix:public:databases-for-mongodb:us-south:a/abac0df06b644a9cabc6e44f55b3880e:30aa3451-64c5-4e43-9317-a68eaff1c11a::] -module.mongodb[0].module.mongodb.ibm_database.mongodb: Still destroying... [id=crn:v1:bluemix:public:databases-for-mon...30aa3451-64c5-4e43-9317-a68eaff1c11a::, 10s elapsed] -module.mongodb[0].module.mongodb.ibm_database.mongodb: Destruction complete after 12s -module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destroying... [id=2025-02-25T19:40:48Z] -random_password.admin_password[0]: Destroying... [id=none] -module.mongodb[0].module.mongodb.time_sleep.wait_for_authorization_policy[0]: Destruction complete after 0s -random_password.admin_password[0]: Destruction complete after 0s -module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destroying... [id=ee27b02e-6fc1-4f20-9f96-d0dd211e9864] -module.mongodb[0].module.mongodb.ibm_iam_authorization_policy.kms_policy[0]: Destruction complete after 1s -module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=915e8c5a65524a83987eadf520846357] -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key_policies.root_key_policy[0]: Destruction complete after 0s -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destroying... [id=crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9:key:55893fa3-bf19-4da5-b5fb-8bf2449081a2] -module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s -module.kms[0].module.kms_keys["mongodb-key-ring.mongodb-key"].ibm_kms_key.key: Destruction complete after 2s -module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destroying... [id=mongodb-key-ring:keyRing:crn:v1:bluemix:public:hs-crypto:us-south:a/abac0df06b644a9cabc6e44f55b3880e:e6dce284-e80f-46e1-a3c1-830f7adff7a9::] -module.kms[0].module.kms_key_rings["mongodb-key-ring"].ibm_kms_key_rings.key_ring: Destruction complete after 2s - -Destroy complete! Resources: 9 destroyed. - -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:266: END: Destroy -TestRunStandardUpgradeSolution 2025-02-26T01:20:09+05:30 tests.go:384: Restoring UseTerraformWorkspace and WorkspacePath to original values: false ---- FAIL: TestRunStandardUpgradeSolution (660.41s) -FAIL -exit status 1 -FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 661.456s diff --git a/main.tf b/main.tf index eb14a376..aed8d14e 100644 --- a/main.tf +++ b/main.tf @@ -28,9 +28,6 @@ locals { # Determine if host_flavor is used host_flavor_set = var.member_host_flavor != null ? true : false - - # maxmemory configuration should 80% of the deployment's memory. - calculate_config_maxmemory = tonumber(format("%.0f", var.member_memory_mb * 0.8)) } ######################################################################################################################## diff --git a/modules/fscloud/README.md b/modules/fscloud/README.md index 435458c1..fd6916f8 100644 --- a/modules/fscloud/README.md +++ b/modules/fscloud/README.md @@ -36,7 +36,6 @@ No resources. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | -| [configuration](#input\_configuration) | Database Configuration. |
object({
maxmemory = optional(number)
maxmemory-policy = optional(string)
appendonly = optional(string)
maxmemory-samples = optional(number)
stop-writes-on-bgsave-error = optional(string)
})
| `null` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | | [member\_disk\_mb](#input\_member\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | diff --git a/tests/pr_test.go b/tests/pr_test.go index adb7fde4..1004007a 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -114,12 +114,12 @@ func TestRunStandardUpgradeSolution(t *testing.T) { t.Parallel() options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ - Testing: t, - TerraformDir: standardSolutionTerraformDir, - BestRegionYAMLPath: regionSelectionPath, - Prefix: "mongodb-st-da-upg", - ResourceGroup: resourceGroup, -}) + Testing: t, + TerraformDir: standardSolutionTerraformDir, + BestRegionYAMLPath: regionSelectionPath, + Prefix: "mongodb-st-da-upg", + ResourceGroup: resourceGroup, + }) options.TerraformVars = map[string]interface{}{ "access_tags": permanentResources["accessTags"], From fcd7b6d6b3175539b591ba3a81da1878157c4e76 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Wed, 26 Feb 2025 23:39:33 +0530 Subject: [PATCH 06/21] updated DA --- logs.txt | 506 +++++++++++++++++++++++++++++++++++++ solutions/standard/main.tf | 32 ++- tests/pr_test.go | 4 +- 3 files changed, 526 insertions(+), 16 deletions(-) create mode 100644 logs.txt diff --git a/logs.txt b/logs.txt new file mode 100644 index 00000000..e9efcbb0 --- /dev/null +++ b/logs.txt @@ -0,0 +1,506 @@ +cd tests && go test -run TestRunExistingInstance -count=1 -v -timeout 600m +=== RUN TestRunExistingInstance +=== PAUSE TestRunExistingInstance +=== CONT TestRunExistingInstance +TestRunExistingInstance 2025-02-26T23:21:32+05:30 pr_test.go:152: Tempdir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/mongodb-t-8w1nlj-64fjeu3759816593/terraform-ibm-icd-mongodb +TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace list] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace list] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: * default +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace new mongodb-t-8w1nlj] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace new mongodb-t-8w1nlj] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Created and switched to workspace "mongodb-t-8w1nlj"! +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: You're now on a new, empty workspace. Workspaces isolate their state, +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: so if you run "terraform plan" Terraform will not see any existing state +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: for this configuration. +TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace show] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace show] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: mongodb-t-8w1nlj +TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [init -upgrade=true] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Initializing the backend... +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Upgrading modules... +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: - database in ../.. +TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... +TestRunExistingInstance 2025-02-26T23:21:35+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-26T23:21:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... +TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module +TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... +TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser +TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: Initializing provider plugins... +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... +TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) +TestRunExistingInstance 2025-02-26T23:21:45+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Partner and community providers are signed by their developers. +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: selections it made above. Include this file in your version control repository +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: you run "terraform init" in the future. +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Terraform has been successfully initialized! +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67:  +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: should now work. +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. +TestRunExistingInstance 2025-02-26T23:21:50+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -var region=eu-de -var mongodb_version=7.0 -lock=false] +TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -var region=eu-de -var mongodb_version=7.0 -lock=false] +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Terraform used the selected providers to generate the following execution +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + create +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: <= read (data resources) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Terraform will perform the following actions: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.data.ibm_database_connection.database_connection will be read during apply +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: # (config refers to values not yet known) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + amqps = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + analytics = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + bi_connector = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + cli = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deployment_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + emp = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + endpoint_type = "public" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + grpc = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + https = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mongodb = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mqtts = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mysql = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + ops_manager = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + postgres = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + rediss = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + secure = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + stomp_ssl = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + user_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + user_type = "database" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_database.mongodb_database will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_database" "mongodb_database" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + adminuser = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + configuration_schema = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deletion_protection = false +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + groups = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + location = "eu-de" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb-t-8w1nlj-data-store" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + plan = "standard" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_controller_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_name = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_name = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + service = "databases-for-mongodb" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + service_endpoints = "public-and-private" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + tags = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + version = "7.0" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + auto_scaling (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + group { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + group_id = "member" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + cpu { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_count = 0 +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + disk { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_mb = 10240 +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + host_flavor { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = "multitenant" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + members { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_count = 3 +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + memory { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_mb = 4096 +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + timeouts { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + create = "120m" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + delete = "15m" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + update = "120m" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_admin"] will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_admin" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Administrator" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_editor"] will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_editor" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Editor" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_operator"] will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_operator" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Operator" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_viewer"] will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_viewer" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Viewer" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + default = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb-t-8w1nlj-resource-group" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + payment_methods_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + quota_id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + quota_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_linkages = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + teams_url = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Plan: 6 to add, 0 to change, 0 to destroy. +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Changes to Outputs: +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + adminuser = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + certificate_base64 = (sensitive value) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + hostname = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mongodb_crn = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + port = (known after apply) +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + version = "7.0" +TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... +TestRunExistingInstance 2025-02-26T23:21:59+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 2s [id=10038bac098945e9a9f827453c1a560e] +TestRunExistingInstance 2025-02-26T23:22:00+05:30 logger.go:67: module.database.ibm_database.mongodb_database: Creating... +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: ╷ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │ Error: [ERROR] Error creating database instance: Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists. { +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "StatusCode": 422, +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Headers": { +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Cache-Control": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "max-age=0, no-cache, no-store" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Content-Length": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "604" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Content-Type": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "application/json; charset=utf-8" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Date": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Wed, 26 Feb 2025 17:52:07 GMT" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Expires": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Wed, 26 Feb 2025 17:52:07 GMT" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Pragma": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "no-cache" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Request-Id": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-663bff3aeb544601" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Retry-After": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "0" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Server": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "istio-envoy" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Set-Cookie": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "ak_bmsc=6677C7022E30C7163850EA45FF3C97C9~000000000000000000000000000000~YAAQDjkgF223WQGVAQAA3StjQxp2IYDaiUR2LWwi4B7tOmsBBduny/JObBynDxV82ZA4dZJP8kYGtrxreSjkN7vmcd3woZ9oabDJTGRg+sSQGjqTDoApEYT4oZC2BUJDeV2E9aNTJACFcXRjMUacOSfUaVmn7kYGDlNy6wzg+fXmF5WtMV6tWBxsE2XiXlDEIqRU4fhNj5BBXNdHCsuJCyIb7jlZc3jK8/GJOEcHYQ8XZmY7Jb0BiI3AAoDRjsaDdcAIPKoWxC+801EV+0RMmdgJDOEjie4+c0ZfeGsnjVK9jKl5a9Pkf3sD1SaZojSXCnzvXI/H37Dam1yAIgiG3CdvOPRIxiiWUBQjfqm1EmZ534OaUIj4Kxkt0iubSbaqc8I1s2AsVq3mQnYIwzA=; Domain=.cloud.ibm.com; Path=/; Expires=Wed, 26 Feb 2025 19:52:02 GMT; Max-Age=7195" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Strict-Transport-Security": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "max-age=31536000;includeSubDomains" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Transaction-Id": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-72b1e26e001edc5a" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Content-Type-Options": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "nosniff" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Correlation-Id": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-72b1e26e001edc5a" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Envoy-Upstream-Service-Time": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "5113" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Op-Completion-Time": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Limit": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "100" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Remaining": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "99" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Reset": [ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "0" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ] +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  }, +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Result": { +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "details": "{\"error\":\"BadRequest\",\"description\":\"We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.\"}", +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "error_code": "RC-ServiceBrokerErrorResponse", +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "message": "Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.", +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "status_code": 422, +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "transaction_id": "626c-72b1e26e001edc5a" +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  }, +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "RawResult": null +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │ } +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  with module.database.ibm_database.mongodb_database, +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  on ../../main.tf line 174, in resource "ibm_database" "mongodb_database": +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  174: resource "ibm_database" "mongodb_database" { +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: ╵ +TestRunExistingInstance 2025-02-26T23:22:07+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ +│ Error: [ERROR] Error creating database instance: Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists. { +│  "StatusCode": 422, +│  "Headers": { +│  "Cache-Control": [ +│  "max-age=0, no-cache, no-store" +│  ], +│  "Content-Length": [ +│  "604" +│  ], +│  "Content-Type": [ +│  "application/json; charset=utf-8" +│  ], +│  "Date": [ +│  "Wed, 26 Feb 2025 17:52:07 GMT" +│  ], +│  "Expires": [ +│  "Wed, 26 Feb 2025 17:52:07 GMT" +│  ], +│  "Pragma": [ +│  "no-cache" +│  ], +│  "Request-Id": [ +│  "626c-663bff3aeb544601" +│  ], +│  "Retry-After": [ +│  "0" +│  ], +│  "Server": [ +│  "istio-envoy" +│  ], +│  "Set-Cookie": [ +│  "ak_bmsc=6677C7022E30C7163850EA45FF3C97C9~000000000000000000000000000000~YAAQDjkgF223WQGVAQAA3StjQxp2IYDaiUR2LWwi4B7tOmsBBduny/JObBynDxV82ZA4dZJP8kYGtrxreSjkN7vmcd3woZ9oabDJTGRg+sSQGjqTDoApEYT4oZC2BUJDeV2E9aNTJACFcXRjMUacOSfUaVmn7kYGDlNy6wzg+fXmF5WtMV6tWBxsE2XiXlDEIqRU4fhNj5BBXNdHCsuJCyIb7jlZc3jK8/GJOEcHYQ8XZmY7Jb0BiI3AAoDRjsaDdcAIPKoWxC+801EV+0RMmdgJDOEjie4+c0ZfeGsnjVK9jKl5a9Pkf3sD1SaZojSXCnzvXI/H37Dam1yAIgiG3CdvOPRIxiiWUBQjfqm1EmZ534OaUIj4Kxkt0iubSbaqc8I1s2AsVq3mQnYIwzA=; Domain=.cloud.ibm.com; Path=/; Expires=Wed, 26 Feb 2025 19:52:02 GMT; Max-Age=7195" +│  ], +│  "Strict-Transport-Security": [ +│  "max-age=31536000;includeSubDomains" +│  ], +│  "Transaction-Id": [ +│  "626c-72b1e26e001edc5a" +│  ], +│  "X-Content-Type-Options": [ +│  "nosniff" +│  ], +│  "X-Correlation-Id": [ +│  "626c-72b1e26e001edc5a" +│  ], +│  "X-Envoy-Upstream-Service-Time": [ +│  "5113" +│  ], +│  "X-Op-Completion-Time": [ +│  "" +│  ], +│  "X-Ratelimit-Limit": [ +│  "100" +│  ], +│  "X-Ratelimit-Remaining": [ +│  "99" +│  ], +│  "X-Ratelimit-Reset": [ +│  "0" +│  ] +│  }, +│  "Result": { +│  "details": "{\"error\":\"BadRequest\",\"description\":\"We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.\"}", +│  "error_code": "RC-ServiceBrokerErrorResponse", +│  "message": "Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.", +│  "status_code": 422, +│  "transaction_id": "626c-72b1e26e001edc5a" +│  }, +│  "RawResult": null +│ } +│  +│  +│  with module.database.ibm_database.mongodb_database, +│  on ../../main.tf line 174, in resource "ibm_database" "mongodb_database": +│  174: resource "ibm_database" "mongodb_database" { +│  +╵} + pr_test.go:169: + Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:169 + Error: Should be true + Test: TestRunExistingInstance + Messages: Init and Apply of temp existing resource failed +TestRunExistingInstance 2025-02-26T23:22:07+05:30 pr_test.go:206: START: Destroy (existing resources) +TestRunExistingInstance 2025-02-26T23:22:07+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var region=eu-de -var mongodb_version=7.0 -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -lock=false] +TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: Running command terraform with args [destroy -auto-approve -input=false -var region=eu-de -var mongodb_version=7.0 -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -lock=false] +TestRunExistingInstance 2025-02-26T23:22:09+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=10038bac098945e9a9f827453c1a560e] +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Terraform used the selected providers to generate the following execution +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - destroy +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Terraform will perform the following actions: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  - resource "ibm_resource_group" "resource_group" { +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - created_at = "2025-02-26T17:51:57.768Z" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:10038bac098945e9a9f827453c1a560e" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - default = false -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - id = "10038bac098945e9a9f827453c1a560e" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - name = "mongodb-t-8w1nlj-resource-group" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - resource_linkages = [] -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - state = "ACTIVE" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - updated_at = "2025-02-26T17:51:57.769Z" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: } +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Plan: 0 to add, 0 to change, 1 to destroy. +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Changes to Outputs: +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - version = "7.0" -> null +TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=10038bac098945e9a9f827453c1a560e] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67:  +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Destroy complete! Resources: 1 destroyed. +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67:  +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace show] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace show] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: mongodb-t-8w1nlj +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace list] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace list] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: * mongodb-t-8w1nlj +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace list] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace list] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: * mongodb-t-8w1nlj +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace select default] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace select default] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Switched to workspace "default". +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace show] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace show] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default +TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace delete mongodb-t-8w1nlj] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace delete mongodb-t-8w1nlj] +TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Deleted workspace "mongodb-t-8w1nlj"! +TestRunExistingInstance 2025-02-26T23:22:16+05:30 pr_test.go:209: END: Destroy (existing resources) +--- FAIL: TestRunExistingInstance (44.17s) +FAIL +exit status 1 +FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 45.234s diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 08c811e9..c5d14642 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -5,7 +5,7 @@ module "resource_group" { source = "terraform-ibm-modules/resource-group/ibm" version = "1.1.6" - resource_group_name = var.use_existing_resource_group == false ? (var.prefix != null ? "${var.prefix}-${var.resource_group_name}" : var.resource_group_name) : null + resource_group_name = var.use_existing_resource_group == false ? ((var.prefix != null && var.prefix != "") ? "${var.prefix}-${var.resource_group_name}" : var.resource_group_name) : null existing_resource_group_name = var.use_existing_resource_group == true ? var.resource_group_name : null } @@ -18,11 +18,12 @@ module "resource_group" { locals { # tflint-ignore: terraform_unused_declarations - validate_kms_1 = var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn != null || var.existing_kms_key_crn != null || var.existing_backup_kms_key_crn != null) ? tobool("When setting values for 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn', the 'use_ibm_owned_encryption_key' input must be set to false.") : true + validate_kms_1 = var.existing_db_instance_crn != null ? true : var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn != null || var.existing_kms_key_crn != null || var.existing_backup_kms_key_crn != null) ? tobool("When setting values for 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn', the 'use_ibm_owned_encryption_key' input must be set to false.") : true # tflint-ignore: terraform_unused_declarations - validate_kms_2 = !var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn == null && var.existing_kms_key_crn == null) ? tobool("When 'use_ibm_owned_encryption_key' is false, a value is required for either 'existing_kms_instance_crn' (to create a new key), or 'existing_kms_key_crn' to use an existing key.") : true + validate_kms_2 = var.existing_db_instance_crn != null ? true : !var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn == null && var.existing_kms_key_crn == null) ? tobool("When 'use_ibm_owned_encryption_key' is false, a value is required for either 'existing_kms_instance_crn' (to create a new key), or 'existing_kms_key_crn' to use an existing key.") : true } + ####################################################################################################################### # KMS encryption key ####################################################################################################################### @@ -99,23 +100,25 @@ data "ibm_iam_account_settings" "iam_account_settings" { locals { account_id = data.ibm_iam_account_settings.iam_account_settings.account_id - create_cross_account_kms_auth_policy = !var.skip_mongodb_kms_auth_policy && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key - create_cross_account_backup_kms_auth_policy = !var.skip_mongodb_kms_auth_policy && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key && var.existing_backup_kms_key_crn != null + create_cross_account_kms_auth_policy = var.existing_db_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key + create_cross_account_backup_kms_auth_policy = var.existing_db_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key && var.existing_backup_kms_key_crn != null + # If KMS encryption enabled (and existing ES instance is not being passed), parse details from the existing key if being passed, otherwise get it from the key that the DA creates - kms_account_id = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].account_id : module.kms_instance_crn_parser[0].account_id - kms_service = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_name : module.kms_instance_crn_parser[0].service_name - kms_instance_guid = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_instance : module.kms_instance_crn_parser[0].service_instance - kms_key_crn = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? var.existing_kms_key_crn : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].crn - kms_key_id = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].resource : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].key_id - kms_region = var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].region : module.kms_instance_crn_parser[0].region + kms_account_id = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].account_id : module.kms_instance_crn_parser[0].account_id + kms_service = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_name : module.kms_instance_crn_parser[0].service_name + kms_instance_guid = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_instance : module.kms_instance_crn_parser[0].service_instance + kms_key_crn = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? var.existing_kms_key_crn : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].crn + kms_key_id = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].resource : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].key_id + kms_region = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].region : module.kms_instance_crn_parser[0].region + # If creating KMS cross account policy for backups, parse backup key details from passed in key CRN backup_kms_account_id = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].account_id : local.kms_account_id backup_kms_service = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].service_name : local.kms_service backup_kms_instance_guid = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].service_instance : local.kms_instance_guid backup_kms_key_id = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].resource : local.kms_key_id - backup_kms_key_crn = var.use_ibm_owned_encryption_key ? null : var.existing_backup_kms_key_crn + backup_kms_key_crn = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_backup_kms_key_crn # Always use same key for backups unless user explicially passed a value for 'existing_backup_kms_key_crn' use_same_kms_key_for_backups = var.existing_backup_kms_key_crn == null ? true : false } @@ -274,7 +277,7 @@ data "ibm_database" "existing_db_instance" { name = data.ibm_resource_instance.existing_instance_resource[0].name resource_group_id = data.ibm_resource_instance.existing_instance_resource[0].resource_group_id location = var.region - service = "databases-for-redis" + service = "databases-for-mongodb" } # Lookup existing instance connection details @@ -292,7 +295,7 @@ module "mongodb" { source = "../../modules/fscloud" depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] resource_group_id = module.resource_group.resource_group_id - name = var.prefix != null ? "${var.prefix}-${var.name}" : var.name + name = (var.prefix != null && var.prefix != "") ? "${var.prefix}-${var.name}" : var.name plan = var.plan region = var.region mongodb_version = var.mongodb_version @@ -353,6 +356,7 @@ module "sm_instance_crn_parser" { # create a service authorization between Secrets Manager and the target service (Databases for MongoDB) resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" { count = local.create_sm_auth_policy + depends_on = [module.mongodb] source_service_name = "secrets-manager" source_resource_instance_id = local.existing_secrets_manager_instance_guid target_service_name = "databases-for-mongodb" diff --git a/tests/pr_test.go b/tests/pr_test.go index 1004007a..fc23c433 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -168,7 +168,7 @@ func TestRunExistingInstance(t *testing.T) { if existErr != nil { assert.True(t, existErr == nil, "Init and Apply of temp existing resource failed") } else { - logger.Log(t, "existing_mongodb_instance_crn: ", terraform.Output(t, existingTerraformOptions, "mongodb_crn")) + logger.Log(t, "existing_db_instance_crn: ", terraform.Output(t, existingTerraformOptions, "mongodb_crn")) options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{ Testing: t, TarIncludePatterns: []string{ @@ -188,7 +188,7 @@ func TestRunExistingInstance(t *testing.T) { options.TerraformVars = []testschematic.TestSchematicTerraformVar{ {Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true}, - {Name: "existing_mongodb_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "mongodb_crn"), DataType: "string"}, + {Name: "existing_db_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "mongodb_crn"), DataType: "string"}, {Name: "resource_group_name", Value: fmt.Sprintf("%s-resource-group", prefix), DataType: "string"}, {Name: "region", Value: region, DataType: "string"}, {Name: "use_existing_resource_group", Value: true, DataType: "bool"}, From 8ccaa27fe9a39a5cd418716b75d2fb5704b50105 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 27 Feb 2025 01:25:55 +0530 Subject: [PATCH 07/21] made changes --- logs.txt | 506 ------------------------------------- solutions/standard/main.tf | 2 +- tests/pr_test.go | 2 +- 3 files changed, 2 insertions(+), 508 deletions(-) delete mode 100644 logs.txt diff --git a/logs.txt b/logs.txt deleted file mode 100644 index e9efcbb0..00000000 --- a/logs.txt +++ /dev/null @@ -1,506 +0,0 @@ -cd tests && go test -run TestRunExistingInstance -count=1 -v -timeout 600m -=== RUN TestRunExistingInstance -=== PAUSE TestRunExistingInstance -=== CONT TestRunExistingInstance -TestRunExistingInstance 2025-02-26T23:21:32+05:30 pr_test.go:152: Tempdir: /var/folders/7h/xm7wtf_j44j8zpcwyyz23kbc0000gn/T/mongodb-t-8w1nlj-64fjeu3759816593/terraform-ibm-icd-mongodb -TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace list] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace list] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: * default -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace new mongodb-t-8w1nlj] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace new mongodb-t-8w1nlj] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Created and switched to workspace "mongodb-t-8w1nlj"! -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: You're now on a new, empty workspace. Workspaces isolate their state, -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: so if you run "terraform plan" Terraform will not see any existing state -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: for this configuration. -TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [workspace show] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [workspace show] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: mongodb-t-8w1nlj -TestRunExistingInstance 2025-02-26T23:21:32+05:30 retry.go:91: terraform [init -upgrade=true] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Running command terraform with args [init -upgrade=true] -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Initializing the backend... -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Upgrading modules... -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: - database in ../.. -TestRunExistingInstance 2025-02-26T23:21:32+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.backup_key_crn_parser... -TestRunExistingInstance 2025-02-26T23:21:35+05:30 logger.go:67: - database.backup_key_crn_parser in .terraform/modules/database.backup_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-26T23:21:35+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/cbr/ibm 1.29.0 for database.cbr_rule... -TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: - database.cbr_rule in .terraform/modules/database.cbr_rule/modules/cbr-rule-module -TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/common-utilities/ibm 1.1.0 for database.kms_key_crn_parser... -TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: - database.kms_key_crn_parser in .terraform/modules/database.kms_key_crn_parser/modules/crn-parser -TestRunExistingInstance 2025-02-26T23:21:38+05:30 logger.go:67: Downloading registry.terraform.io/terraform-ibm-modules/resource-group/ibm 1.1.6 for resource_group... -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - resource_group in .terraform/modules/resource_group -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: Initializing provider plugins... -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Finding hashicorp/time versions matching ">= 0.9.1, < 1.0.0"... -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Finding ibm-cloud/ibm versions matching ">= 1.49.0, >= 1.70.0, 1.70.0, < 2.0.0"... -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Installing hashicorp/time v0.12.1... -TestRunExistingInstance 2025-02-26T23:21:41+05:30 logger.go:67: - Installed hashicorp/time v0.12.1 (signed by HashiCorp) -TestRunExistingInstance 2025-02-26T23:21:45+05:30 logger.go:67: - Installing ibm-cloud/ibm v1.70.0... -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: - Installed ibm-cloud/ibm v1.70.0 (self-signed, key ID AAD3B791C49CC253) -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Partner and community providers are signed by their developers. -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: If you'd like to know more about provider signing, you can read about it here: -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: https://www.terraform.io/docs/cli/plugins/signing.html -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Terraform has created a lock file .terraform.lock.hcl to record the provider -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: selections it made above. Include this file in your version control repository -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: so that Terraform can guarantee to make the same selections by default when -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: you run "terraform init" in the future. -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Terraform has been successfully initialized! -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67:  -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: any changes that are required for your infrastructure. All Terraform commands -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: should now work. -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: If you ever set or change modules or backend configuration for Terraform, -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: rerun this command to reinitialize your working directory. If you forget, other -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: commands will detect it and remind you to do so if necessary. -TestRunExistingInstance 2025-02-26T23:21:50+05:30 retry.go:91: terraform [apply -input=false -auto-approve -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -var region=eu-de -var mongodb_version=7.0 -lock=false] -TestRunExistingInstance 2025-02-26T23:21:50+05:30 logger.go:67: Running command terraform with args [apply -input=false -auto-approve -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -var region=eu-de -var mongodb_version=7.0 -lock=false] -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Terraform used the selected providers to generate the following execution -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + create -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: <= read (data resources) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Terraform will perform the following actions: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.data.ibm_database_connection.database_connection will be read during apply -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: # (config refers to values not yet known) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  <= data "ibm_database_connection" "database_connection" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + amqps = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + analytics = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + bi_connector = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + cli = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deployment_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + emp = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + endpoint_type = "public" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + grpc = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + https = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mongodb = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mqtts = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mysql = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + ops_manager = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + postgres = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + rediss = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + secure = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + stomp_ssl = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + user_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + user_type = "database" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_database.mongodb_database will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_database" "mongodb_database" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + adminuser = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + configuration_schema = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deletion_protection = false -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + groups = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + location = "eu-de" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb-t-8w1nlj-data-store" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + plan = "standard" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_controller_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_name = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_name = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + service = "databases-for-mongodb" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + service_endpoints = "public-and-private" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + tags = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + version = "7.0" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + auto_scaling (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + group { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + group_id = "member" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + cpu { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_count = 0 -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + disk { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_mb = 10240 -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + host_flavor { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = "multitenant" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + members { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_count = 3 -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + memory { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + allocation_mb = 4096 -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + timeouts { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + create = "120m" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + delete = "15m" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + update = "120m" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_admin"] will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_admin" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Administrator" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_editor"] will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_editor" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Editor" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_operator"] will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_operator" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Operator" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.database.ibm_resource_key.service_credentials["mongodb_viewer"] will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_key" "service_credentials" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + account_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + credentials_json = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + deleted_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + guid = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + iam_compatible = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb_viewer" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + onetime_credentials = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_group_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_instance_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + role = "Viewer" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + source_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + status = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_by = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be created -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  + resource "ibm_resource_group" "resource_group" { -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + created_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + default = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + name = "mongodb-t-8w1nlj-resource-group" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + payment_methods_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + quota_id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + quota_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + resource_linkages = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + state = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + teams_url = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + updated_at = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Plan: 6 to add, 0 to change, 0 to destroy. -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67:  -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: Changes to Outputs: -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + adminuser = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + certificate_base64 = (sensitive value) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + hostname = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + id = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + mongodb_crn = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + port = (known after apply) -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: + version = "7.0" -TestRunExistingInstance 2025-02-26T23:21:56+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creating... -TestRunExistingInstance 2025-02-26T23:21:59+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Creation complete after 2s [id=10038bac098945e9a9f827453c1a560e] -TestRunExistingInstance 2025-02-26T23:22:00+05:30 logger.go:67: module.database.ibm_database.mongodb_database: Creating... -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: ╷ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │ Error: [ERROR] Error creating database instance: Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists. { -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "StatusCode": 422, -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Headers": { -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Cache-Control": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "max-age=0, no-cache, no-store" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Content-Length": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "604" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Content-Type": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "application/json; charset=utf-8" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Date": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Wed, 26 Feb 2025 17:52:07 GMT" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Expires": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Wed, 26 Feb 2025 17:52:07 GMT" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Pragma": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "no-cache" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Request-Id": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-663bff3aeb544601" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Retry-After": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "0" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Server": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "istio-envoy" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Set-Cookie": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "ak_bmsc=6677C7022E30C7163850EA45FF3C97C9~000000000000000000000000000000~YAAQDjkgF223WQGVAQAA3StjQxp2IYDaiUR2LWwi4B7tOmsBBduny/JObBynDxV82ZA4dZJP8kYGtrxreSjkN7vmcd3woZ9oabDJTGRg+sSQGjqTDoApEYT4oZC2BUJDeV2E9aNTJACFcXRjMUacOSfUaVmn7kYGDlNy6wzg+fXmF5WtMV6tWBxsE2XiXlDEIqRU4fhNj5BBXNdHCsuJCyIb7jlZc3jK8/GJOEcHYQ8XZmY7Jb0BiI3AAoDRjsaDdcAIPKoWxC+801EV+0RMmdgJDOEjie4+c0ZfeGsnjVK9jKl5a9Pkf3sD1SaZojSXCnzvXI/H37Dam1yAIgiG3CdvOPRIxiiWUBQjfqm1EmZ534OaUIj4Kxkt0iubSbaqc8I1s2AsVq3mQnYIwzA=; Domain=.cloud.ibm.com; Path=/; Expires=Wed, 26 Feb 2025 19:52:02 GMT; Max-Age=7195" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Strict-Transport-Security": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "max-age=31536000;includeSubDomains" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Transaction-Id": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-72b1e26e001edc5a" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Content-Type-Options": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "nosniff" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Correlation-Id": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "626c-72b1e26e001edc5a" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Envoy-Upstream-Service-Time": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "5113" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Op-Completion-Time": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Limit": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "100" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Remaining": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "99" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ], -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "X-Ratelimit-Reset": [ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "0" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  ] -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  }, -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "Result": { -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "details": "{\"error\":\"BadRequest\",\"description\":\"We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.\"}", -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "error_code": "RC-ServiceBrokerErrorResponse", -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "message": "Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.", -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "status_code": 422, -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "transaction_id": "626c-72b1e26e001edc5a" -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  }, -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  "RawResult": null -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │ } -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  with module.database.ibm_database.mongodb_database, -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  on ../../main.tf line 174, in resource "ibm_database" "mongodb_database": -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  174: resource "ibm_database" "mongodb_database" { -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: │  -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: ╵ -TestRunExistingInstance 2025-02-26T23:22:07+05:30 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷ -│ Error: [ERROR] Error creating database instance: Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists. { -│  "StatusCode": 422, -│  "Headers": { -│  "Cache-Control": [ -│  "max-age=0, no-cache, no-store" -│  ], -│  "Content-Length": [ -│  "604" -│  ], -│  "Content-Type": [ -│  "application/json; charset=utf-8" -│  ], -│  "Date": [ -│  "Wed, 26 Feb 2025 17:52:07 GMT" -│  ], -│  "Expires": [ -│  "Wed, 26 Feb 2025 17:52:07 GMT" -│  ], -│  "Pragma": [ -│  "no-cache" -│  ], -│  "Request-Id": [ -│  "626c-663bff3aeb544601" -│  ], -│  "Retry-After": [ -│  "0" -│  ], -│  "Server": [ -│  "istio-envoy" -│  ], -│  "Set-Cookie": [ -│  "ak_bmsc=6677C7022E30C7163850EA45FF3C97C9~000000000000000000000000000000~YAAQDjkgF223WQGVAQAA3StjQxp2IYDaiUR2LWwi4B7tOmsBBduny/JObBynDxV82ZA4dZJP8kYGtrxreSjkN7vmcd3woZ9oabDJTGRg+sSQGjqTDoApEYT4oZC2BUJDeV2E9aNTJACFcXRjMUacOSfUaVmn7kYGDlNy6wzg+fXmF5WtMV6tWBxsE2XiXlDEIqRU4fhNj5BBXNdHCsuJCyIb7jlZc3jK8/GJOEcHYQ8XZmY7Jb0BiI3AAoDRjsaDdcAIPKoWxC+801EV+0RMmdgJDOEjie4+c0ZfeGsnjVK9jKl5a9Pkf3sD1SaZojSXCnzvXI/H37Dam1yAIgiG3CdvOPRIxiiWUBQjfqm1EmZ534OaUIj4Kxkt0iubSbaqc8I1s2AsVq3mQnYIwzA=; Domain=.cloud.ibm.com; Path=/; Expires=Wed, 26 Feb 2025 19:52:02 GMT; Max-Age=7195" -│  ], -│  "Strict-Transport-Security": [ -│  "max-age=31536000;includeSubDomains" -│  ], -│  "Transaction-Id": [ -│  "626c-72b1e26e001edc5a" -│  ], -│  "X-Content-Type-Options": [ -│  "nosniff" -│  ], -│  "X-Correlation-Id": [ -│  "626c-72b1e26e001edc5a" -│  ], -│  "X-Envoy-Upstream-Service-Time": [ -│  "5113" -│  ], -│  "X-Op-Completion-Time": [ -│  "" -│  ], -│  "X-Ratelimit-Limit": [ -│  "100" -│  ], -│  "X-Ratelimit-Remaining": [ -│  "99" -│  ], -│  "X-Ratelimit-Reset": [ -│  "0" -│  ] -│  }, -│  "Result": { -│  "details": "{\"error\":\"BadRequest\",\"description\":\"We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.\"}", -│  "error_code": "RC-ServiceBrokerErrorResponse", -│  "message": "Please contact the Service Provider for this error. [400, Bad Request] We were unable to complete your request: Multiple service endpoints are not supported for mongodb in eu-de. Try again with valid values or contact support if the issue persists.", -│  "status_code": 422, -│  "transaction_id": "626c-72b1e26e001edc5a" -│  }, -│  "RawResult": null -│ } -│  -│  -│  with module.database.ibm_database.mongodb_database, -│  on ../../main.tf line 174, in resource "ibm_database" "mongodb_database": -│  174: resource "ibm_database" "mongodb_database" { -│  -╵} - pr_test.go:169: - Error Trace: /Users/aatreyeemukherjee/Work/terraform-ibm-icd-mongodb/tests/pr_test.go:169 - Error: Should be true - Test: TestRunExistingInstance - Messages: Init and Apply of temp existing resource failed -TestRunExistingInstance 2025-02-26T23:22:07+05:30 pr_test.go:206: START: Destroy (existing resources) -TestRunExistingInstance 2025-02-26T23:22:07+05:30 retry.go:91: terraform [destroy -auto-approve -input=false -var region=eu-de -var mongodb_version=7.0 -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -lock=false] -TestRunExistingInstance 2025-02-26T23:22:07+05:30 logger.go:67: Running command terraform with args [destroy -auto-approve -input=false -var region=eu-de -var mongodb_version=7.0 -var service_endpoints=public-and-private -var prefix=mongodb-t-8w1nlj -lock=false] -TestRunExistingInstance 2025-02-26T23:22:09+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Refreshing state... [id=10038bac098945e9a9f827453c1a560e] -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Terraform used the selected providers to generate the following execution -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: plan. Resource actions are indicated with the following symbols: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - destroy -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Terraform will perform the following actions: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  # module.resource_group.ibm_resource_group.resource_group[0] will be destroyed -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  - resource "ibm_resource_group" "resource_group" { -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - created_at = "2025-02-26T17:51:57.768Z" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - crn = "crn:v1:bluemix:public:resource-controller::a/abac0df06b644a9cabc6e44f55b3880e::resource-group:10038bac098945e9a9f827453c1a560e" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - default = false -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - id = "10038bac098945e9a9f827453c1a560e" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - name = "mongodb-t-8w1nlj-resource-group" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - quota_id = "a3d7b8d01e261c24677937c29ab33f3c" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - quota_url = "/v2/quota_definitions/a3d7b8d01e261c24677937c29ab33f3c" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - resource_linkages = [] -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - state = "ACTIVE" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - updated_at = "2025-02-26T17:51:57.769Z" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: } -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Plan: 0 to add, 0 to change, 1 to destroy. -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67:  -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: Changes to Outputs: -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: - version = "7.0" -> null -TestRunExistingInstance 2025-02-26T23:22:13+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Destroying... [id=10038bac098945e9a9f827453c1a560e] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: module.resource_group.ibm_resource_group.resource_group[0]: Destruction complete after 2s -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67:  -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Destroy complete! Resources: 1 destroyed. -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67:  -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace show] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace show] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: mongodb-t-8w1nlj -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace list] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace list] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: * mongodb-t-8w1nlj -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace list] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace list] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: * mongodb-t-8w1nlj -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace select default] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace select default] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Switched to workspace "default". -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace show] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace show] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: default -TestRunExistingInstance 2025-02-26T23:22:16+05:30 retry.go:91: terraform [workspace delete mongodb-t-8w1nlj] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Running command terraform with args [workspace delete mongodb-t-8w1nlj] -TestRunExistingInstance 2025-02-26T23:22:16+05:30 logger.go:67: Deleted workspace "mongodb-t-8w1nlj"! -TestRunExistingInstance 2025-02-26T23:22:16+05:30 pr_test.go:209: END: Destroy (existing resources) ---- FAIL: TestRunExistingInstance (44.17s) -FAIL -exit status 1 -FAIL github.com/terraform-ibm-modules/terraform-ibm-icd-mongodb 45.234s diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index c5d14642..64f497c8 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -29,7 +29,7 @@ locals { ####################################################################################################################### locals { - create_new_kms_key = !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? 1 : 0 # no need to create any KMS resources if passing an existing key, or using IBM owned keys + create_new_kms_key = var.existing_db_instance_crn == null && !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? 1 : 0 # no need to create any KMS resources if passing an existing key, or using IBM owned keys mongodb_key_name = var.prefix != null ? "${var.prefix}-${var.key_name}" : var.key_name mongodb_key_ring_name = var.prefix != null ? "${var.prefix}-${var.key_ring_name}" : var.key_ring_name } diff --git a/tests/pr_test.go b/tests/pr_test.go index fc23c433..5df5e8ab 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -156,7 +156,7 @@ func TestRunExistingInstance(t *testing.T) { "prefix": prefix, "region": region, "mongodb_version": latestVersion, - "service_endpoints": "public-and-private", + "service_endpoints": "private", }, // Set Upgrade to true to ensure latest version of providers and modules are used by terratest. // This is the same as setting the -upgrade=true flag with terraform. From cfa005bf5b07589413c51e415ce3bfd188f85b81 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 27 Feb 2025 02:43:56 +0530 Subject: [PATCH 08/21] made changes --- solutions/standard/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 64f497c8..50a23475 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -324,8 +324,8 @@ locals { mongodb_id = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].id : module.mongodb[0].id mongodb_version = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].version : module.mongodb[0].version mongodb_crn = var.existing_db_instance_crn != null ? var.existing_db_instance_crn : module.mongodb[0].crn - mongodb_hostname = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].https[0].hosts[0].hostname : module.mongodb[0].hostname - mongodb_port = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].https[0].hosts[0].port : module.mongodb[0].port + mongodb_hostname = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].hostname : module.mongodb[0].hostname + mongodb_port = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].port : module.mongodb[0].port } ####################################################################################################################### From a9d5d80f14af66546dbdcae474c94fefa094e846 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 27 Feb 2025 11:34:09 +0530 Subject: [PATCH 09/21] fix upgrade test --- README.md | 4 ++-- main.tf | 14 +++++++------- outputs.tf | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 0027b779..8d41cf88 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,11 @@ You need the following permissions to run this module. | Name | Type | |------|------| -| [ibm_database.mongodb_database](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database) | resource | +| [ibm_database.mongodb](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database) | resource | | [ibm_iam_authorization_policy.backup_kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource | | [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource | | [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource | -| [ibm_resource_tag.access_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource | +| [ibm_resource_tag.mongodb_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource | | [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | | [time_sleep.wait_for_backup_kms_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | | [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source | diff --git a/main.tf b/main.tf index aed8d14e..a759723e 100644 --- a/main.tf +++ b/main.tf @@ -171,7 +171,7 @@ resource "time_sleep" "wait_for_backup_kms_authorization_policy" { # MongoDB instance ######################################################################################################################## -resource "ibm_database" "mongodb_database" { +resource "ibm_database" "mongodb" { depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] name = var.name location = var.region @@ -303,9 +303,9 @@ resource "ibm_database" "mongodb_database" { } } -resource "ibm_resource_tag" "access_tag" { +resource "ibm_resource_tag" "mongodb_tag" { count = length(var.access_tags) == 0 ? 0 : 1 - resource_id = ibm_database.mongodb_database.resource_crn + resource_id = ibm_database.mongodb.resource_crn tags = var.access_tags tag_type = "access" } @@ -330,7 +330,7 @@ module "cbr_rule" { }, { name = "serviceInstance" - value = ibm_database.mongodb_database.id + value = ibm_database.mongodb.id operator = "stringEquals" }, { @@ -358,7 +358,7 @@ resource "ibm_resource_key" "service_credentials" { for_each = var.service_credential_names name = each.key role = each.value - resource_instance_id = ibm_database.mongodb_database.id + resource_instance_id = ibm_database.mongodb.id } locals { @@ -384,7 +384,7 @@ locals { data "ibm_database_connection" "database_connection" { endpoint_type = var.service_endpoints == "public-and-private" ? "public" : var.service_endpoints - deployment_id = ibm_database.mongodb_database.id - user_id = ibm_database.mongodb_database.adminuser + deployment_id = ibm_database.mongodb.id + user_id = ibm_database.mongodb.adminuser user_type = "database" } diff --git a/outputs.tf b/outputs.tf index d3fc5ca9..96371861 100644 --- a/outputs.tf +++ b/outputs.tf @@ -4,22 +4,22 @@ output "id" { description = "MongoDB instance ID" - value = ibm_database.mongodb_database.id + value = ibm_database.mongodb.id } output "guid" { description = "MongoDB instance guid" - value = ibm_database.mongodb_database.guid + value = ibm_database.mongodb.guid } output "version" { description = "MongoDB instance version" - value = ibm_database.mongodb_database.version + value = ibm_database.mongodb.version } output "crn" { description = "MongoDB instance crn" - value = ibm_database.mongodb_database.resource_crn + value = ibm_database.mongodb.resource_crn } output "cbr_rule_ids" { @@ -41,7 +41,7 @@ output "service_credentials_object" { output "adminuser" { description = "Database admin user name" - value = ibm_database.mongodb_database.adminuser + value = ibm_database.mongodb.adminuser } output "hostname" { From 6bf9f7b87748884134cf2683de8136dc82f0b451 Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Thu, 27 Feb 2025 20:27:54 +0530 Subject: [PATCH 10/21] fix: member_host_flavor --- solutions/standard/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index afd0c2e6..f627a69b 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -93,7 +93,7 @@ variable "member_disk_mb" { variable "member_host_flavor" { type = string description = "The host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)." - default = "b3c.4x16.encrypted" + default = "multitenant" # Prevent null or "", require multitenant or a machine type validation { condition = (length(var.member_host_flavor) > 0) From 94cecc454b69e6cbc4aaa24dfe414e116f4e3f4e Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Mon, 3 Mar 2025 14:13:50 +0530 Subject: [PATCH 11/21] updated the upgrade test and variable names. --- examples/complete/main.tf | 18 +++++++++--------- examples/complete/variables.tf | 6 +++--- ibm_catalog.json | 8 ++++---- solutions/standard/main.tf | 24 ++++++++++++------------ solutions/standard/variables.tf | 8 ++++---- tests/pr_test.go | 15 ++++++++------- 6 files changed, 40 insertions(+), 39 deletions(-) diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 82f7c37b..dbd036fe 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -3,8 +3,8 @@ ############################################################################## locals { - sm_guid = var.existing_sm_instance_guid == null ? module.secrets_manager[0].secrets_manager_guid : var.existing_sm_instance_guid - sm_region = var.existing_sm_instance_region == null ? var.region : var.existing_sm_instance_region + secret_manager_guid = var.existing_secret_manager_instance_guid == null ? module.secrets_manager[0].secrets_manager_guid : var.existing_secret_manager_instance_guid + secret_manager_region = var.existing_secret_manager_instance_region == null ? var.region : var.existing_secret_manager_instance_region service_credential_names = { "es_admin" : "Administrator", "es_operator" : "Operator", @@ -131,7 +131,7 @@ module "icd_mongodb" { # Create Secrets Manager Instance (if not using existing one) module "secrets_manager" { - count = var.existing_sm_instance_guid == null ? 1 : 0 + count = var.existing_secret_manager_instance_guid == null ? 1 : 0 source = "terraform-ibm-modules/secrets-manager/ibm" version = "1.23.6" resource_group_id = module.resource_group.resource_group_id @@ -146,8 +146,8 @@ module "secrets_manager" { module "secrets_manager_secrets_group" { source = "terraform-ibm-modules/secrets-manager-secret-group/ibm" version = "1.2.2" - region = local.sm_region - secrets_manager_guid = local.sm_guid + region = local.secret_manager_region + secrets_manager_guid = local.secret_manager_guid #tfsec:ignore:general-secrets-no-plaintext-exposure secret_group_name = "${var.prefix}-es-secrets" secret_group_description = "service secret-group" #tfsec:ignore:general-secrets-no-plaintext-exposure @@ -158,8 +158,8 @@ module "secrets_manager_service_credentials_user_pass" { source = "terraform-ibm-modules/secrets-manager-secret/ibm" version = "1.6.0" for_each = local.service_credential_names - region = local.sm_region - secrets_manager_guid = local.sm_guid + region = local.secret_manager_region + secrets_manager_guid = local.secret_manager_guid secret_group_id = module.secrets_manager_secrets_group.secret_group_id secret_name = "${var.prefix}-${each.key}-credentials" secret_description = "MongoDB Service Credentials for ${each.key}" @@ -172,8 +172,8 @@ module "secrets_manager_service_credentials_user_pass" { module "secrets_manager_service_credentials_cert" { source = "terraform-ibm-modules/secrets-manager-secret/ibm" version = "1.6.0" - region = local.sm_region - secrets_manager_guid = local.sm_guid + region = local.secret_manager_region + secrets_manager_guid = local.secret_manager_guid secret_group_id = module.secrets_manager_secrets_group.secret_group_id secret_name = "${var.prefix}-es-cert" secret_description = "MongoDB Service Credential Certificate" diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index db44117c..4d6df5f4 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -47,15 +47,15 @@ variable "plan" { default = "enterprise" } -variable "existing_sm_instance_guid" { +variable "existing_secret_manager_instance_guid" { type = string description = "Existing Secrets Manager GUID. If not provided an new instance will be provisioned" default = null } -variable "existing_sm_instance_region" { +variable "existing_secret_manager_instance_region" { type = string - description = "Required if value is passed into var.existing_sm_instance_guid" + description = "Required if value is passed into var.existing_secret_manager_instance_guid" default = null } diff --git a/ibm_catalog.json b/ibm_catalog.json index 686c21a7..f71ad447 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -222,16 +222,16 @@ "key": "admin_pass" }, { - "key": "admin_pass_sm_secret_group" + "key": "admin_pass_secret_manager_secret_group" }, { - "key": "admin_pass_sm_secret_name" + "key": "admin_pass_secret_manager_secret_name" }, { "key": "existing_db_instance_crn" }, { - "key": "use_existing_admin_pass_sm_secret_group" + "key": "use_existing_admin_pass_secret_manager_secret_group" }, { "key": "users" @@ -288,7 +288,7 @@ "key": "service_credential_secrets" }, { - "key": "skip_mongodb_sm_auth_policy" + "key": "skip_mongodb_secret_manager_auth_policy" } ] } diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 7f7604dd..ba7cd632 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -335,17 +335,17 @@ locals { locals { ## Variable validation (approach based on https://github.com/hashicorp/terraform/issues/25609#issuecomment-1057614400) # tflint-ignore: terraform_unused_declarations - validate_sm_crn = length(local.service_credential_secrets) > 0 && var.existing_secrets_manager_instance_crn == null ? tobool("`existing_secrets_manager_instance_crn` is required when adding service credentials to a secrets manager secret.") : false + validate_secret_manager_crn = length(local.service_credential_secrets) > 0 && var.existing_secrets_manager_instance_crn == null ? tobool("`existing_secrets_manager_instance_crn` is required when adding service credentials to a secrets manager secret.") : false # tflint-ignore: terraform_unused_declarations - validate_sm_sg = var.existing_secrets_manager_instance_crn != null && var.admin_pass_sm_secret_group == null ? tobool("`admin_pass_sm_secret_group` is required when `existing_secrets_manager_instance_crn` is set.") : false + validate_secret_manager_sg = var.existing_secrets_manager_instance_crn != null && var.admin_pass_secret_manager_secret_group == null ? tobool("`admin_pass_secret_manager_secret_group` is required when `existing_secrets_manager_instance_crn` is set.") : false # tflint-ignore: terraform_unused_declarations - validate_sm_sn = var.existing_secrets_manager_instance_crn != null && var.admin_pass_sm_secret_name == null ? tobool("`admin_pass_sm_secret_name` is required when `existing_secrets_manager_instance_crn` is set.") : false + validate_secret_manager_sn = var.existing_secrets_manager_instance_crn != null && var.admin_pass_secret_manager_secret_name == null ? tobool("`admin_pass_secret_manager_secret_name` is required when `existing_secrets_manager_instance_crn` is set.") : false - create_sm_auth_policy = var.skip_mongodb_sm_auth_policy || var.existing_secrets_manager_instance_crn == null ? 0 : 1 + create_secret_manager_auth_policy = var.skip_mongodb_secret_manager_auth_policy || var.existing_secrets_manager_instance_crn == null ? 0 : 1 } # Parse the Secrets Manager CRN -module "sm_instance_crn_parser" { +module "secret_manager_instance_crn_parser" { count = var.existing_secrets_manager_instance_crn != null ? 1 : 0 source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser" version = "1.1.0" @@ -355,7 +355,7 @@ module "sm_instance_crn_parser" { # create a service authorization between Secrets Manager and the target service (Databases for MongoDB) resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" { - count = local.create_sm_auth_policy + count = local.create_secret_manager_auth_policy depends_on = [module.mongodb] source_service_name = "secrets-manager" source_resource_instance_id = local.existing_secrets_manager_instance_guid @@ -367,7 +367,7 @@ resource "ibm_iam_authorization_policy" "secrets_manager_key_manager" { # workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478 resource "time_sleep" "wait_for_mongodb_authorization_policy" { - count = local.create_sm_auth_policy + count = local.create_secret_manager_auth_policy depends_on = [ibm_iam_authorization_policy.secrets_manager_key_manager] create_duration = "30s" } @@ -397,10 +397,10 @@ locals { # Build the structure of the arbitrary credential type secret for admin password admin_pass_secret = [{ - secret_group_name = (var.prefix != null && var.prefix != "") && var.admin_pass_sm_secret_group != null ? "${var.prefix}-${var.admin_pass_sm_secret_group}" : var.admin_pass_sm_secret_group - existing_secret_group = var.use_existing_admin_pass_sm_secret_group + secret_group_name = (var.prefix != null && var.prefix != "") && var.admin_pass_secret_manager_secret_group != null ? "${var.prefix}-${var.admin_pass_secret_manager_secret_group}" : var.admin_pass_secret_manager_secret_group + existing_secret_group = var.use_existing_admin_pass_secret_manager_secret_group secrets = [{ - secret_name = (var.prefix != null && var.prefix != "") && var.admin_pass_sm_secret_name != null ? "${var.prefix}-${var.admin_pass_sm_secret_name}" : var.admin_pass_sm_secret_name + secret_name = (var.prefix != null && var.prefix != "") && var.admin_pass_secret_manager_secret_name != null ? "${var.prefix}-${var.admin_pass_secret_manager_secret_name}" : var.admin_pass_secret_manager_secret_name secret_type = "arbitrary" secret_payload_password = local.admin_pass } @@ -410,8 +410,8 @@ locals { # Concatinate into 1 secrets object secrets = concat(local.service_credential_secrets, local.admin_pass_secret) # Parse Secrets Manager details from the CRN - existing_secrets_manager_instance_guid = var.existing_secrets_manager_instance_crn != null ? module.sm_instance_crn_parser[0].service_instance : null - existing_secrets_manager_instance_region = var.existing_secrets_manager_instance_crn != null ? module.sm_instance_crn_parser[0].region : null + existing_secrets_manager_instance_guid = var.existing_secrets_manager_instance_crn != null ? module.secret_manager_instance_crn_parser[0].service_instance : null + existing_secrets_manager_instance_region = var.existing_secrets_manager_instance_crn != null ? module.secret_manager_instance_crn_parser[0].region : null } module "secrets_manager_service_credentials" { diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index f627a69b..f7a95f26 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -314,25 +314,25 @@ variable "service_credential_secrets" { } } -variable "skip_mongodb_sm_auth_policy" { +variable "skip_mongodb_secret_manager_auth_policy" { type = bool description = "Whether an IAM authorization policy is created for Secrets Manager instance to create a service credential secrets for Databases for MongoDB. If set to false, the Secrets Manager instance passed by the user is granted the Key Manager access to the MongoDB instance created by the Deployable Architecture. Set to `true` to use an existing policy. The value of this is ignored if any value for 'existing_secrets_manager_instance_crn' is not passed." default = false } -variable "admin_pass_sm_secret_group" { +variable "admin_pass_secret_manager_secret_group" { type = string description = "The name of a new or existing secrets manager secret group for admin password. To use existing secret group, `use_existing_admin_pass_secrets_manager_secret_group` must be set to `true`. If a prefix input variable is specified, the prefix is added to the name in the `-` format." default = "mongodb-secrets" } -variable "use_existing_admin_pass_sm_secret_group" { +variable "use_existing_admin_pass_secret_manager_secret_group" { type = bool description = "Whether to use an existing secrets manager secret group for admin password." default = false } -variable "admin_pass_sm_secret_name" { +variable "admin_pass_secret_manager_secret_name" { type = string description = "The name of a new mongodb administrator secret. If a prefix input variable is specified, the prefix is added to the name in the `-` format." default = "mongodb-admin-password" diff --git a/tests/pr_test.go b/tests/pr_test.go index 5df5e8ab..c4c64903 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -102,8 +102,8 @@ func TestRunStandardSolutionSchematics(t *testing.T) { {Name: "service_credential_names", Value: "{\"admin_test\": \"Administrator\", \"editor_test\": \"Editor\"}", DataType: "map(string)"}, {Name: "existing_secrets_manager_instance_crn", Value: permanentResources["secretsManagerCRN"], DataType: "string"}, {Name: "service_credential_secrets", Value: serviceCredentialSecrets, DataType: "list(object)"}, - {Name: "admin_pass_sm_secret_group", Value: options.Prefix, DataType: "string"}, - {Name: "admin_pass_sm_secret_name", Value: options.Prefix, DataType: "string"}, + {Name: "admin_pass_secret_manager_secret_group", Value: options.Prefix, DataType: "string"}, + {Name: "admin_pass_secret_manager_secret_name", Value: options.Prefix, DataType: "string"}, {Name: "provider_visibility", Value: "private", DataType: "string"}, {Name: "prefix", Value: options.Prefix, DataType: "string"}, } @@ -114,11 +114,12 @@ func TestRunStandardUpgradeSolution(t *testing.T) { t.Parallel() options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ - Testing: t, - TerraformDir: standardSolutionTerraformDir, - BestRegionYAMLPath: regionSelectionPath, - Prefix: "mongodb-st-da-upg", - ResourceGroup: resourceGroup, + Testing: t, + TerraformDir: standardSolutionTerraformDir, + BestRegionYAMLPath: regionSelectionPath, + Prefix: "mongodb-st-da-upg", + ResourceGroup: resourceGroup, + CheckApplyResultForUpgrade: true, }) options.TerraformVars = map[string]interface{}{ From 47e66a3a430a52273262b1e24e0a9872726e97a6 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Mon, 3 Mar 2025 19:29:41 +0530 Subject: [PATCH 12/21] fix:cbr_rules --- README.md | 2 +- modules/fscloud/README.md | 2 +- modules/fscloud/variables.tf | 11 ++++++++++- variables.tf | 11 ++++++++++- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8d41cf88..1d7352ca 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ You need the following permissions to run this module. | [auto\_scaling](#input\_auto\_scaling) | Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-autoscaling&interface=cli#autoscaling-considerations in the IBM Cloud Docs. |
object({
disk = object({
capacity_enabled = optional(bool, false)
free_space_less_than_percent = optional(number, 10)
io_above_percent = optional(number, 90)
io_enabled = optional(bool, false)
io_over_period = optional(string, "15m")
rate_increase_percent = optional(number, 10)
rate_limit_mb_per_member = optional(number, 3670016)
rate_period_seconds = optional(number, 900)
rate_units = optional(string, "mb")
})
memory = object({
io_above_percent = optional(number, 90)
io_enabled = optional(bool, false)
io_over_period = optional(string, "15m")
rate_increase_percent = optional(number, 10)
rate_limit_mb_per_member = optional(number, 114688)
rate_period_seconds = optional(number, 900)
rate_units = optional(string, "mb")
})
})
| `null` | no | | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | -| [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | +| [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of context-based restrictions rules to create. |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
tags = optional(list(object({
name = string
value = string
})))
operations = optional(list(object({
api_types = list(object({
api_type_id = string
}))
})))
}))
| `[]` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | | [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | diff --git a/modules/fscloud/README.md b/modules/fscloud/README.md index fd6916f8..7bde3ba3 100644 --- a/modules/fscloud/README.md +++ b/modules/fscloud/README.md @@ -35,7 +35,7 @@ No resources. | [auto\_scaling](#input\_auto\_scaling) | Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-autoscaling&interface=cli#autoscaling-considerations in the IBM Cloud Docs. |
object({
disk = object({
capacity_enabled = optional(bool, false)
free_space_less_than_percent = optional(number, 10)
io_above_percent = optional(number, 90)
io_enabled = optional(bool, false)
io_over_period = optional(string, "15m")
rate_increase_percent = optional(number, 10)
rate_limit_mb_per_member = optional(number, 3670016)
rate_period_seconds = optional(number, 900)
rate_units = optional(string, "mb")
})
memory = object({
io_above_percent = optional(number, 90)
io_enabled = optional(bool, false)
io_over_period = optional(string, "15m")
rate_increase_percent = optional(number, 10)
rate_limit_mb_per_member = optional(number, 114688)
rate_period_seconds = optional(number, 900)
rate_units = optional(string, "mb")
})
})
| `null` | no | | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | -| [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
}))
| `[]` | no | +| [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of context-based restrictions rules to create. |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
tags = optional(list(object({
name = string
value = string
})))
operations = optional(list(object({
api_types = list(object({
api_type_id = string
}))
})))
}))
| `[]` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | | [member\_disk\_mb](#input\_member\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | diff --git a/modules/fscloud/variables.tf b/modules/fscloud/variables.tf index 1005ca38..c4be7451 100644 --- a/modules/fscloud/variables.tf +++ b/modules/fscloud/variables.tf @@ -202,8 +202,17 @@ variable "cbr_rules" { value = string }))) })) enforcement_mode = string + tags = optional(list(object({ + name = string + value = string + }))) + operations = optional(list(object({ + api_types = list(object({ + api_type_id = string + })) + }))) })) - description = "(Optional, list) List of CBR rules to create" + description = "(Optional, list) List of context-based restrictions rules to create." default = [] # Validation happens in the rule module } diff --git a/variables.tf b/variables.tf index c6a24d33..93f23a87 100644 --- a/variables.tf +++ b/variables.tf @@ -250,8 +250,17 @@ variable "cbr_rules" { value = string }))) })) enforcement_mode = string + tags = optional(list(object({ + name = string + value = string + }))) + operations = optional(list(object({ + api_types = list(object({ + api_type_id = string + })) + }))) })) - description = "(Optional, list) List of CBR rules to create" + description = "(Optional, list) List of context-based restrictions rules to create." default = [] # Validation happens in the rule module } From b2c70b67144739156f9cc906102aca870836d07d Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 6 Mar 2025 19:27:59 +0530 Subject: [PATCH 13/21] added PITR --- README.md | 3 ++ examples/pitr/README.md | 7 +++++ examples/pitr/main.tf | 29 ++++++++++++++++++ examples/pitr/outputs.tf | 17 +++++++++++ examples/pitr/provider.tf | 4 +++ examples/pitr/variables.tf | 51 +++++++++++++++++++++++++++++++ examples/pitr/version.tf | 11 +++++++ ibm_catalog.json | 2 +- main.tf | 43 ++++++++++++++++---------- outputs.tf | 5 +++ solutions/standard/main.tf | 54 ++++++++++++++++----------------- solutions/standard/outputs.tf | 4 +-- solutions/standard/variables.tf | 2 +- tests/other_test.go | 22 ++++++++++++++ tests/pr_test.go | 4 +-- variables.tf | 16 ++++++++++ 16 files changed, 225 insertions(+), 49 deletions(-) create mode 100644 examples/pitr/README.md create mode 100644 examples/pitr/main.tf create mode 100644 examples/pitr/outputs.tf create mode 100644 examples/pitr/provider.tf create mode 100644 examples/pitr/variables.tf create mode 100644 examples/pitr/version.tf diff --git a/README.md b/README.md index 1d7352ca..5feb4a28 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ You need the following permissions to run this module. - [ Basic example](examples/basic) - [ Complete example with BYOK encryption and CBR rules](examples/complete) - [ Financial Services Cloud profile example with autoscaling enabled](examples/fscloud) +- [ Point in time recovery example (PITR)](examples/pitr) ### Requirements @@ -98,6 +99,8 @@ You need the following permissions to run this module. | [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no | | [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no | | [name](#input\_name) | The name to give the MongoDB instance. | `string` | n/a | yes | +| [pitr\_id](#input\_pitr\_id) | (Optional) The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state. | `string` | `null` | no | +| [pitr\_time](#input\_pitr\_time) | (Optional) The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string ("") is passed, earliest\_point\_in\_time\_recovery\_time will be used as pitr\_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui | `string` | `null` | no | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no | | [region](#input\_region) | The region where you want to deploy your instance. | `string` | `"us-south"` | no | | [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the MongoDB instance will be created. | `string` | n/a | yes | diff --git a/examples/pitr/README.md b/examples/pitr/README.md new file mode 100644 index 00000000..db96fded --- /dev/null +++ b/examples/pitr/README.md @@ -0,0 +1,7 @@ +# Point in time recovery example (PITR) + +This example provides an end-to-end solution that: + +- Creates a new resource group if one is not passed in. +- Creates a new ICD MongoDB database instance. +- Creates a new MongoDB instance pointing to a PITR time. diff --git a/examples/pitr/main.tf b/examples/pitr/main.tf new file mode 100644 index 00000000..635cf06d --- /dev/null +++ b/examples/pitr/main.tf @@ -0,0 +1,29 @@ +############################################################################# +# Resource Group +############################################################################## + +module "resource_group" { + source = "terraform-ibm-modules/resource-group/ibm" + version = "1.1.6" + # if an existing resource group is not set (null) create a new one using prefix + resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null + existing_resource_group_name = var.resource_group +} + +# New ICD mongodb database instance pointing to a PITR time +module "mongodb_db_pitr" { + source = "../.." + resource_group_id = module.resource_group.resource_group_id + name = "${var.prefix}-mongodb-pitr" + region = var.region + plan="enterprise" + tags = var.resource_tags + access_tags = var.access_tags + member_host_flavor = "multitenant" + member_memory_mb=14336 + member_disk_mb = 20480 + member_cpu_count = 6 + mongodb_version = var.mongodb_version + pitr_id = var.pitr_id + pitr_time = var.pitr_time == "" ? " " : var.pitr_time +} diff --git a/examples/pitr/outputs.tf b/examples/pitr/outputs.tf new file mode 100644 index 00000000..42eb02d5 --- /dev/null +++ b/examples/pitr/outputs.tf @@ -0,0 +1,17 @@ +############################################################################## +# Outputs +############################################################################## + +output "mongodb_time" { + description = "PITR timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) used to create PITR instance" + value = var.pitr_time +} +output "pitr_mongodb_db_id" { + description = "PITR MongoDB instance id" + value = module.mongodb_db_pitr.id +} + +output "pitr_mongodb_db_version" { + description = "PITR MongoDB instance version" + value = module.mongodb_db_pitr.version +} diff --git a/examples/pitr/provider.tf b/examples/pitr/provider.tf new file mode 100644 index 00000000..df45ef50 --- /dev/null +++ b/examples/pitr/provider.tf @@ -0,0 +1,4 @@ +provider "ibm" { + ibmcloud_api_key = var.ibmcloud_api_key + region = var.region +} diff --git a/examples/pitr/variables.tf b/examples/pitr/variables.tf new file mode 100644 index 00000000..2a9c50b2 --- /dev/null +++ b/examples/pitr/variables.tf @@ -0,0 +1,51 @@ +variable "ibmcloud_api_key" { + type = string + description = "The IBM Cloud API Key" + sensitive = true +} + +variable "region" { + type = string + description = "Region to provision all resources created by this example." +} + +variable "prefix" { + type = string + description = "Prefix to append to all resources created by this example" +} + +variable "resource_group" { + type = string + description = "An existing resource group name to use for this example, if unset a new resource group will be created" + default = null +} + +variable "mongodb_version" { + description = "Version of the mongodb instance. If no value passed, the current ICD preferred version is used." + type = string + default = null +} + +variable "resource_tags" { + type = list(string) + description = "Optional list of tags to be added to created resources" + default = [] +} + +variable "access_tags" { + type = list(string) + description = "Optional list of access management tags to add to resources that are created" + default = [] +} + +variable "pitr_id" { + type = string + description = "The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state." +} + +variable "pitr_time" { + type = string + description = "The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string (\"\") is passed, earliest_in_time_recovery_time will be used as pitr_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui" +} + + diff --git a/examples/pitr/version.tf b/examples/pitr/version.tf new file mode 100644 index 00000000..62058390 --- /dev/null +++ b/examples/pitr/version.tf @@ -0,0 +1,11 @@ +terraform { + required_version = ">= 1.3.0" + required_providers { + # Ensure that there is always 1 example locked into the lowest provider version of the range defined in the main + # module's version.tf (basic example), and 1 example that will always use the latest provider version (complete example). + ibm = { + source = "IBM-Cloud/ibm" + version = ">=1.70.0, <2.0.0" + } + } +} \ No newline at end of file diff --git a/ibm_catalog.json b/ibm_catalog.json index f71ad447..05ac6f5c 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -228,7 +228,7 @@ "key": "admin_pass_secret_manager_secret_name" }, { - "key": "existing_db_instance_crn" + "key": "existing_mongodb_instance_crn" }, { "key": "use_existing_admin_pass_secret_manager_secret_group" diff --git a/main.tf b/main.tf index a759723e..4fd670dd 100644 --- a/main.tf +++ b/main.tf @@ -12,6 +12,10 @@ locals { validate_backup_key = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn != null && (var.use_default_backup_encryption_key || var.use_same_kms_key_for_backups) ? tobool("When passing a value for 'backup_encryption_key_crn' you cannot set 'use_default_backup_encryption_key' to true or 'use_ibm_owned_encryption_key' to false.") : true # tflint-ignore: terraform_unused_declarations validate_backup_key_2 = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn == null && !var.use_same_kms_key_for_backups ? tobool("When 'use_same_kms_key_for_backups' is set to false, a value needs to be passed for 'backup_encryption_key_crn'.") : true + # tflint-ignore: terraform_unused_declarations + validate_pitr_vars = (var.pitr_id != null && var.pitr_time == null) || (var.pitr_time != null && var.pitr_id == null) ? tobool("To use Point-In-Time Recovery (PITR), values for both var.pitr_id and var.pitr_time need to be set. Otherwise, unset both of these.") : true + # Determine if restore, from backup or point in time recovery + recovery_mode = var.backup_crn != null || var.pitr_id != null } ######################################################################################################################## @@ -172,19 +176,21 @@ resource "time_sleep" "wait_for_backup_kms_authorization_policy" { ######################################################################################################################## resource "ibm_database" "mongodb" { - depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] - name = var.name - location = var.region - plan = var.plan - service = "databases-for-mongodb" - version = var.mongodb_version - resource_group_id = var.resource_group_id - adminpassword = var.admin_pass - tags = var.tags - service_endpoints = var.service_endpoints - key_protect_key = var.kms_key_crn - backup_encryption_key_crn = local.backup_encryption_key_crn - backup_id = var.backup_crn + depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] + name = var.name + location = var.region + plan = var.plan + service = "databases-for-mongodb" + version = var.mongodb_version + resource_group_id = var.resource_group_id + adminpassword = var.admin_pass + tags = var.tags + service_endpoints = var.service_endpoints + key_protect_key = var.kms_key_crn + backup_encryption_key_crn = local.backup_encryption_key_crn + backup_id = var.backup_crn + point_in_time_recovery_deployment_id = var.pitr_id + point_in_time_recovery_time = var.pitr_time dynamic "users" { for_each = nonsensitive(var.users != null ? var.users : []) @@ -200,7 +206,7 @@ resource "ibm_database" "mongodb" { ## This is used to conditionally add one, OR, the other group block depending on var.local.host_flavor_set ## This block is for if host_flavor IS set to specific pre-defined host sizes and not set to "multitenant" dynamic "group" { - for_each = local.host_flavor_set && var.member_host_flavor != "multitenant" && var.backup_crn == null ? [1] : [] + for_each = local.host_flavor_set && var.member_host_flavor != "multitenant" && !local.recovery_mode ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases host_flavor { @@ -217,7 +223,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS set to "multitenant" dynamic "group" { - for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && var.backup_crn == null ? [1] : [] + for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && !local.recovery_mode == null ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases host_flavor { @@ -240,7 +246,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS NOT set dynamic "group" { - for_each = !local.host_flavor_set && var.backup_crn == null ? [1] : [] + for_each = !local.host_flavor_set && !local.recovery_mode == null ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases memory { @@ -388,3 +394,8 @@ data "ibm_database_connection" "database_connection" { user_id = ibm_database.mongodb.adminuser user_type = "database" } + +# data "ibm_database_point_in_time_recovery" "source_db_earliest_pitr_time" { +# count = var.pitr_time != " " ? 0 : 1 +# deployment_id = var.pitr_id +# } diff --git a/outputs.tf b/outputs.tf index 96371861..2b849ae1 100644 --- a/outputs.tf +++ b/outputs.tf @@ -59,3 +59,8 @@ output "certificate_base64" { value = data.ibm_database_connection.database_connection.mongodb[0].certificate[0].certificate_base64 sensitive = true } + +# output "pitr_time" { +# description = "MongoDB instance id" +# value = var.pitr_time != "" ? var.pitr_time : data.ibm_database_point_in_time_recovery.source_db_earliest_pitr_time[0].earliest_point_in_time_recovery_time +# } diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index ba7cd632..59767e63 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -18,9 +18,9 @@ module "resource_group" { locals { # tflint-ignore: terraform_unused_declarations - validate_kms_1 = var.existing_db_instance_crn != null ? true : var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn != null || var.existing_kms_key_crn != null || var.existing_backup_kms_key_crn != null) ? tobool("When setting values for 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn', the 'use_ibm_owned_encryption_key' input must be set to false.") : true + validate_kms_1 = var.existing_mongodb_instance_crn != null ? true : var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn != null || var.existing_kms_key_crn != null || var.existing_backup_kms_key_crn != null) ? tobool("When setting values for 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn', the 'use_ibm_owned_encryption_key' input must be set to false.") : true # tflint-ignore: terraform_unused_declarations - validate_kms_2 = var.existing_db_instance_crn != null ? true : !var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn == null && var.existing_kms_key_crn == null) ? tobool("When 'use_ibm_owned_encryption_key' is false, a value is required for either 'existing_kms_instance_crn' (to create a new key), or 'existing_kms_key_crn' to use an existing key.") : true + validate_kms_2 = var.existing_mongodb_instance_crn != null ? true : !var.use_ibm_owned_encryption_key && (var.existing_kms_instance_crn == null && var.existing_kms_key_crn == null) ? tobool("When 'use_ibm_owned_encryption_key' is false, a value is required for either 'existing_kms_instance_crn' (to create a new key), or 'existing_kms_key_crn' to use an existing key.") : true } @@ -29,7 +29,7 @@ locals { ####################################################################################################################### locals { - create_new_kms_key = var.existing_db_instance_crn == null && !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? 1 : 0 # no need to create any KMS resources if passing an existing key, or using IBM owned keys + create_new_kms_key = var.existing_mongodb_instance_crn == null && !var.use_ibm_owned_encryption_key && var.existing_kms_key_crn == null ? 1 : 0 # no need to create any KMS resources if passing an existing key, or using IBM owned keys mongodb_key_name = var.prefix != null ? "${var.prefix}-${var.key_name}" : var.key_name mongodb_key_ring_name = var.prefix != null ? "${var.prefix}-${var.key_ring_name}" : var.key_ring_name } @@ -100,17 +100,17 @@ data "ibm_iam_account_settings" "iam_account_settings" { locals { account_id = data.ibm_iam_account_settings.iam_account_settings.account_id - create_cross_account_kms_auth_policy = var.existing_db_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key - create_cross_account_backup_kms_auth_policy = var.existing_db_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key && var.existing_backup_kms_key_crn != null + create_cross_account_kms_auth_policy = var.existing_mongodb_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key + create_cross_account_backup_kms_auth_policy = var.existing_mongodb_instance_crn == null && var.ibmcloud_kms_api_key != null && !var.use_ibm_owned_encryption_key && var.existing_backup_kms_key_crn != null # If KMS encryption enabled (and existing ES instance is not being passed), parse details from the existing key if being passed, otherwise get it from the key that the DA creates - kms_account_id = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].account_id : module.kms_instance_crn_parser[0].account_id - kms_service = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_name : module.kms_instance_crn_parser[0].service_name - kms_instance_guid = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_instance : module.kms_instance_crn_parser[0].service_instance - kms_key_crn = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? var.existing_kms_key_crn : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].crn - kms_key_id = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].resource : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].key_id - kms_region = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].region : module.kms_instance_crn_parser[0].region + kms_account_id = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].account_id : module.kms_instance_crn_parser[0].account_id + kms_service = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_name : module.kms_instance_crn_parser[0].service_name + kms_instance_guid = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].service_instance : module.kms_instance_crn_parser[0].service_instance + kms_key_crn = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? var.existing_kms_key_crn : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].crn + kms_key_id = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].resource : module.kms[0].keys[format("%s.%s", local.mongodb_key_ring_name, local.mongodb_key_name)].key_id + kms_region = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_kms_key_crn != null ? module.kms_key_crn_parser[0].region : module.kms_instance_crn_parser[0].region # If creating KMS cross account policy for backups, parse backup key details from passed in key CRN @@ -118,7 +118,7 @@ locals { backup_kms_service = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].service_name : local.kms_service backup_kms_instance_guid = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].service_instance : local.kms_instance_guid backup_kms_key_id = local.create_cross_account_backup_kms_auth_policy ? module.kms_backup_key_crn_parser[0].resource : local.kms_key_id - backup_kms_key_crn = var.existing_db_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_backup_kms_key_crn + backup_kms_key_crn = var.existing_mongodb_instance_crn != null || var.use_ibm_owned_encryption_key ? null : var.existing_backup_kms_key_crn # Always use same key for backups unless user explicially passed a value for 'existing_backup_kms_key_crn' use_same_kms_key_for_backups = var.existing_backup_kms_key_crn == null ? true : false } @@ -249,31 +249,31 @@ locals { # Look up existing instance details if user passes one module "mongodb_instance_crn_parser" { - count = var.existing_db_instance_crn != null ? 1 : 0 + count = var.existing_mongodb_instance_crn != null ? 1 : 0 source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser" version = "1.1.0" - crn = var.existing_db_instance_crn + crn = var.existing_mongodb_instance_crn } # Existing instance local vars locals { - existing_mongodb_guid = var.existing_db_instance_crn != null ? module.mongodb_instance_crn_parser[0].service_instance : null - existing_mongodb_region = var.existing_db_instance_crn != null ? module.mongodb_instance_crn_parser[0].region : null + existing_mongodb_guid = var.existing_mongodb_instance_crn != null ? module.mongodb_instance_crn_parser[0].service_instance : null + existing_mongodb_region = var.existing_mongodb_instance_crn != null ? module.mongodb_instance_crn_parser[0].region : null # Validate the region input matches region detected in existing instance CRN (approach based on https://github.com/hashicorp/terraform/issues/25609#issuecomment-1057614400) # tflint-ignore: terraform_unused_declarations - validate_existing_instance_region = var.existing_db_instance_crn != null && var.region != local.existing_mongodb_region ? tobool("The region detected in the 'existing_db_instance_crn' value must match the value of the 'region' input variable when passing an existing instance.") : true + validate_existing_instance_region = var.existing_mongodb_instance_crn != null && var.region != local.existing_mongodb_region ? tobool("The region detected in the 'existing_mongodb_instance_crn' value must match the value of the 'region' input variable when passing an existing instance.") : true } # Do a data lookup on the resource GUID to get more info that is needed for the 'ibm_database' data lookup below data "ibm_resource_instance" "existing_instance_resource" { - count = var.existing_db_instance_crn != null ? 1 : 0 + count = var.existing_mongodb_instance_crn != null ? 1 : 0 identifier = local.existing_mongodb_guid } # Lookup details of existing instance data "ibm_database" "existing_db_instance" { - count = var.existing_db_instance_crn != null ? 1 : 0 + count = var.existing_mongodb_instance_crn != null ? 1 : 0 name = data.ibm_resource_instance.existing_instance_resource[0].name resource_group_id = data.ibm_resource_instance.existing_instance_resource[0].resource_group_id location = var.region @@ -282,7 +282,7 @@ data "ibm_database" "existing_db_instance" { # Lookup existing instance connection details data "ibm_database_connection" "existing_connection" { - count = var.existing_db_instance_crn != null ? 1 : 0 + count = var.existing_mongodb_instance_crn != null ? 1 : 0 endpoint_type = "private" deployment_id = data.ibm_database.existing_db_instance[0].id user_id = data.ibm_database.existing_db_instance[0].adminuser @@ -291,7 +291,7 @@ data "ibm_database_connection" "existing_connection" { # Create new instance module "mongodb" { - count = var.existing_db_instance_crn != null ? 0 : 1 + count = var.existing_mongodb_instance_crn != null ? 0 : 1 source = "../../modules/fscloud" depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] resource_group_id = module.resource_group.resource_group_id @@ -320,12 +320,12 @@ module "mongodb" { } locals { - mongodb_guid = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].guid : module.mongodb[0].guid - mongodb_id = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].id : module.mongodb[0].id - mongodb_version = var.existing_db_instance_crn != null ? data.ibm_database.existing_db_instance[0].version : module.mongodb[0].version - mongodb_crn = var.existing_db_instance_crn != null ? var.existing_db_instance_crn : module.mongodb[0].crn - mongodb_hostname = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].hostname : module.mongodb[0].hostname - mongodb_port = var.existing_db_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].port : module.mongodb[0].port + mongodb_guid = var.existing_mongodb_instance_crn != null ? data.ibm_database.existing_db_instance[0].guid : module.mongodb[0].guid + mongodb_id = var.existing_mongodb_instance_crn != null ? data.ibm_database.existing_db_instance[0].id : module.mongodb[0].id + mongodb_version = var.existing_mongodb_instance_crn != null ? data.ibm_database.existing_db_instance[0].version : module.mongodb[0].version + mongodb_crn = var.existing_mongodb_instance_crn != null ? var.existing_mongodb_instance_crn : module.mongodb[0].crn + mongodb_hostname = var.existing_mongodb_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].hostname : module.mongodb[0].hostname + mongodb_port = var.existing_mongodb_instance_crn != null ? data.ibm_database_connection.existing_connection[0].mongodb[0].hosts[0].port : module.mongodb[0].port } ####################################################################################################################### diff --git a/solutions/standard/outputs.tf b/solutions/standard/outputs.tf index b70b16a7..89fb22bd 100644 --- a/solutions/standard/outputs.tf +++ b/solutions/standard/outputs.tf @@ -24,13 +24,13 @@ output "crn" { output "service_credentials_json" { description = "Service credentials json map" - value = var.existing_db_instance_crn != null ? null : module.mongodb[0].service_credentials_json + value = var.existing_mongodb_instance_crn != null ? null : module.mongodb[0].service_credentials_json sensitive = true } output "service_credentials_object" { description = "Service credentials object" - value = var.existing_db_instance_crn != null ? null : module.mongodb[0].service_credentials_object + value = var.existing_mongodb_instance_crn != null ? null : module.mongodb[0].service_credentials_object sensitive = true } diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index f7a95f26..fa2757fe 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -56,7 +56,7 @@ variable "plan" { } } -variable "existing_db_instance_crn" { +variable "existing_mongodb_instance_crn" { type = string default = null description = "The CRN of an existing Databases for MongoDB instance. If no value is specified, a new instance is created." diff --git a/tests/other_test.go b/tests/other_test.go index 47868c1d..38489e97 100644 --- a/tests/other_test.go +++ b/tests/other_test.go @@ -55,3 +55,25 @@ func TestRunRestoredDBExample(t *testing.T) { assert.Nil(t, err, "This should not have errored") assert.NotNil(t, output, "Expected some output") } + +func TestRunPointInTimeRecoveryDBExample(t *testing.T) { + t.Parallel() + + options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ + Testing: t, + TerraformDir: "examples/pitr", + Prefix: "mdb-pitr", + ResourceGroup: resourceGroup, + Region: fmt.Sprint(permanentResources["mongodbRegion"]), + TerraformVars: map[string]interface{}{ + "pitr_id": permanentResources["mongodbCrn"], + "pitr_time": " ", // if blank string is passed, earliest_point_in_time_recovery_time will be used to restore + "mongodb_version": "6.0", + }, + CloudInfoService: sharedInfoSvc, + }) + + output, err := options.RunTestConsistency() + assert.Nil(t, err, "This should not have errored") + assert.NotNil(t, output, "Expected some output") +} diff --git a/tests/pr_test.go b/tests/pr_test.go index c4c64903..883d3c40 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -169,7 +169,7 @@ func TestRunExistingInstance(t *testing.T) { if existErr != nil { assert.True(t, existErr == nil, "Init and Apply of temp existing resource failed") } else { - logger.Log(t, "existing_db_instance_crn: ", terraform.Output(t, existingTerraformOptions, "mongodb_crn")) + logger.Log(t, "existing_mongodb_instance_crn: ", terraform.Output(t, existingTerraformOptions, "mongodb_crn")) options := testschematic.TestSchematicOptionsDefault(&testschematic.TestSchematicOptions{ Testing: t, TarIncludePatterns: []string{ @@ -189,7 +189,7 @@ func TestRunExistingInstance(t *testing.T) { options.TerraformVars = []testschematic.TestSchematicTerraformVar{ {Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true}, - {Name: "existing_db_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "mongodb_crn"), DataType: "string"}, + {Name: "existing_mongodb_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "mongodb_crn"), DataType: "string"}, {Name: "resource_group_name", Value: fmt.Sprintf("%s-resource-group", prefix), DataType: "string"}, {Name: "region", Value: region, DataType: "string"}, {Name: "use_existing_resource_group", Value: true, DataType: "bool"}, diff --git a/variables.tf b/variables.tf index 93f23a87..64d6d1ef 100644 --- a/variables.tf +++ b/variables.tf @@ -282,3 +282,19 @@ variable "backup_crn" { error_message = "backup_crn must be null OR starts with 'crn:' and contains ':backup:'" } } + +############################################################## +# Point-In-Time Recovery (PITR) +############################################################## + +variable "pitr_id" { + type = string + description = "(Optional) The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state." + default = null +} + +variable "pitr_time" { + type = string + description = "(Optional) The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string (\"\") is passed, earliest_point_in_time_recovery_time will be used as pitr_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui" + default = null +} From cfa3cffe37072fd0eb86d4b9192e6f76708dc81e Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 6 Mar 2025 19:47:30 +0530 Subject: [PATCH 14/21] fixed:pre-commit --- examples/pitr/main.tf | 10 +++++----- examples/pitr/variables.tf | 2 -- examples/pitr/version.tf | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/pitr/main.tf b/examples/pitr/main.tf index 635cf06d..59e39e20 100644 --- a/examples/pitr/main.tf +++ b/examples/pitr/main.tf @@ -16,14 +16,14 @@ module "mongodb_db_pitr" { resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mongodb-pitr" region = var.region - plan="enterprise" - tags = var.resource_tags + plan = "enterprise" + tags = var.resource_tags access_tags = var.access_tags member_host_flavor = "multitenant" - member_memory_mb=14336 + member_memory_mb = 14336 member_disk_mb = 20480 member_cpu_count = 6 - mongodb_version = var.mongodb_version + mongodb_version = var.mongodb_version pitr_id = var.pitr_id - pitr_time = var.pitr_time == "" ? " " : var.pitr_time + pitr_time = var.pitr_time == "" ? " " : var.pitr_time } diff --git a/examples/pitr/variables.tf b/examples/pitr/variables.tf index 2a9c50b2..978ecf9a 100644 --- a/examples/pitr/variables.tf +++ b/examples/pitr/variables.tf @@ -47,5 +47,3 @@ variable "pitr_time" { type = string description = "The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string (\"\") is passed, earliest_in_time_recovery_time will be used as pitr_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui" } - - diff --git a/examples/pitr/version.tf b/examples/pitr/version.tf index 62058390..45c8d81f 100644 --- a/examples/pitr/version.tf +++ b/examples/pitr/version.tf @@ -8,4 +8,4 @@ terraform { version = ">=1.70.0, <2.0.0" } } -} \ No newline at end of file +} From 4837fc035dc418710f8b79b73d6f20de8257cc2e Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Sat, 8 Mar 2025 08:19:28 +0530 Subject: [PATCH 15/21] fix:upgrade test --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 4fd670dd..43b731ae 100644 --- a/main.tf +++ b/main.tf @@ -223,7 +223,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS set to "multitenant" dynamic "group" { - for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && !local.recovery_mode == null ? [1] : [] + for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && !local.recovery_mode ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases host_flavor { @@ -246,7 +246,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS NOT set dynamic "group" { - for_each = !local.host_flavor_set && !local.recovery_mode == null ? [1] : [] + for_each = !local.host_flavor_set && !local.recovery_mode ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases memory { From d8251c7759243d31315a6c295553e6bbda111d3a Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Sat, 8 Mar 2025 09:22:22 +0530 Subject: [PATCH 16/21] minor changes --- main.tf | 5 ----- outputs.tf | 5 ----- 2 files changed, 10 deletions(-) diff --git a/main.tf b/main.tf index 43b731ae..e63699f6 100644 --- a/main.tf +++ b/main.tf @@ -394,8 +394,3 @@ data "ibm_database_connection" "database_connection" { user_id = ibm_database.mongodb.adminuser user_type = "database" } - -# data "ibm_database_point_in_time_recovery" "source_db_earliest_pitr_time" { -# count = var.pitr_time != " " ? 0 : 1 -# deployment_id = var.pitr_id -# } diff --git a/outputs.tf b/outputs.tf index 2b849ae1..96371861 100644 --- a/outputs.tf +++ b/outputs.tf @@ -59,8 +59,3 @@ output "certificate_base64" { value = data.ibm_database_connection.database_connection.mongodb[0].certificate[0].certificate_base64 sensitive = true } - -# output "pitr_time" { -# description = "MongoDB instance id" -# value = var.pitr_time != "" ? var.pitr_time : data.ibm_database_point_in_time_recovery.source_db_earliest_pitr_time[0].earliest_point_in_time_recovery_time -# } From 62d72686993c5e1c5617cbcedc2db75568ffbb25 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Tue, 25 Mar 2025 22:22:48 +0530 Subject: [PATCH 17/21] removed PITR --- README.md | 3 --- common-dev-assets | 2 +- examples/pitr/README.md | 7 ------ examples/pitr/main.tf | 29 ---------------------- examples/pitr/outputs.tf | 17 ------------- examples/pitr/provider.tf | 4 ---- examples/pitr/variables.tf | 49 -------------------------------------- examples/pitr/version.tf | 11 --------- main.tf | 38 +++++++++++++---------------- tests/other_test.go | 22 ----------------- variables.tf | 16 ------------- 11 files changed, 17 insertions(+), 181 deletions(-) delete mode 100644 examples/pitr/README.md delete mode 100644 examples/pitr/main.tf delete mode 100644 examples/pitr/outputs.tf delete mode 100644 examples/pitr/provider.tf delete mode 100644 examples/pitr/variables.tf delete mode 100644 examples/pitr/version.tf diff --git a/README.md b/README.md index 5feb4a28..1d7352ca 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,6 @@ You need the following permissions to run this module. - [ Basic example](examples/basic) - [ Complete example with BYOK encryption and CBR rules](examples/complete) - [ Financial Services Cloud profile example with autoscaling enabled](examples/fscloud) -- [ Point in time recovery example (PITR)](examples/pitr) ### Requirements @@ -99,8 +98,6 @@ You need the following permissions to run this module. | [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no | | [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no | | [name](#input\_name) | The name to give the MongoDB instance. | `string` | n/a | yes | -| [pitr\_id](#input\_pitr\_id) | (Optional) The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state. | `string` | `null` | no | -| [pitr\_time](#input\_pitr\_time) | (Optional) The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string ("") is passed, earliest\_point\_in\_time\_recovery\_time will be used as pitr\_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui | `string` | `null` | no | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no | | [region](#input\_region) | The region where you want to deploy your instance. | `string` | `"us-south"` | no | | [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the MongoDB instance will be created. | `string` | n/a | yes | diff --git a/common-dev-assets b/common-dev-assets index 8c7a97cb..b0dd6f07 160000 --- a/common-dev-assets +++ b/common-dev-assets @@ -1 +1 @@ -Subproject commit 8c7a97cb00b128503d2c81380be904b6d196cc02 +Subproject commit b0dd6f071b908fbae907a7299b92d477dc8972f2 diff --git a/examples/pitr/README.md b/examples/pitr/README.md deleted file mode 100644 index db96fded..00000000 --- a/examples/pitr/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Point in time recovery example (PITR) - -This example provides an end-to-end solution that: - -- Creates a new resource group if one is not passed in. -- Creates a new ICD MongoDB database instance. -- Creates a new MongoDB instance pointing to a PITR time. diff --git a/examples/pitr/main.tf b/examples/pitr/main.tf deleted file mode 100644 index 59e39e20..00000000 --- a/examples/pitr/main.tf +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################# -# Resource Group -############################################################################## - -module "resource_group" { - source = "terraform-ibm-modules/resource-group/ibm" - version = "1.1.6" - # if an existing resource group is not set (null) create a new one using prefix - resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null - existing_resource_group_name = var.resource_group -} - -# New ICD mongodb database instance pointing to a PITR time -module "mongodb_db_pitr" { - source = "../.." - resource_group_id = module.resource_group.resource_group_id - name = "${var.prefix}-mongodb-pitr" - region = var.region - plan = "enterprise" - tags = var.resource_tags - access_tags = var.access_tags - member_host_flavor = "multitenant" - member_memory_mb = 14336 - member_disk_mb = 20480 - member_cpu_count = 6 - mongodb_version = var.mongodb_version - pitr_id = var.pitr_id - pitr_time = var.pitr_time == "" ? " " : var.pitr_time -} diff --git a/examples/pitr/outputs.tf b/examples/pitr/outputs.tf deleted file mode 100644 index 42eb02d5..00000000 --- a/examples/pitr/outputs.tf +++ /dev/null @@ -1,17 +0,0 @@ -############################################################################## -# Outputs -############################################################################## - -output "mongodb_time" { - description = "PITR timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) used to create PITR instance" - value = var.pitr_time -} -output "pitr_mongodb_db_id" { - description = "PITR MongoDB instance id" - value = module.mongodb_db_pitr.id -} - -output "pitr_mongodb_db_version" { - description = "PITR MongoDB instance version" - value = module.mongodb_db_pitr.version -} diff --git a/examples/pitr/provider.tf b/examples/pitr/provider.tf deleted file mode 100644 index df45ef50..00000000 --- a/examples/pitr/provider.tf +++ /dev/null @@ -1,4 +0,0 @@ -provider "ibm" { - ibmcloud_api_key = var.ibmcloud_api_key - region = var.region -} diff --git a/examples/pitr/variables.tf b/examples/pitr/variables.tf deleted file mode 100644 index 978ecf9a..00000000 --- a/examples/pitr/variables.tf +++ /dev/null @@ -1,49 +0,0 @@ -variable "ibmcloud_api_key" { - type = string - description = "The IBM Cloud API Key" - sensitive = true -} - -variable "region" { - type = string - description = "Region to provision all resources created by this example." -} - -variable "prefix" { - type = string - description = "Prefix to append to all resources created by this example" -} - -variable "resource_group" { - type = string - description = "An existing resource group name to use for this example, if unset a new resource group will be created" - default = null -} - -variable "mongodb_version" { - description = "Version of the mongodb instance. If no value passed, the current ICD preferred version is used." - type = string - default = null -} - -variable "resource_tags" { - type = list(string) - description = "Optional list of tags to be added to created resources" - default = [] -} - -variable "access_tags" { - type = list(string) - description = "Optional list of access management tags to add to resources that are created" - default = [] -} - -variable "pitr_id" { - type = string - description = "The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state." -} - -variable "pitr_time" { - type = string - description = "The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string (\"\") is passed, earliest_in_time_recovery_time will be used as pitr_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui" -} diff --git a/examples/pitr/version.tf b/examples/pitr/version.tf deleted file mode 100644 index 45c8d81f..00000000 --- a/examples/pitr/version.tf +++ /dev/null @@ -1,11 +0,0 @@ -terraform { - required_version = ">= 1.3.0" - required_providers { - # Ensure that there is always 1 example locked into the lowest provider version of the range defined in the main - # module's version.tf (basic example), and 1 example that will always use the latest provider version (complete example). - ibm = { - source = "IBM-Cloud/ibm" - version = ">=1.70.0, <2.0.0" - } - } -} diff --git a/main.tf b/main.tf index e63699f6..a759723e 100644 --- a/main.tf +++ b/main.tf @@ -12,10 +12,6 @@ locals { validate_backup_key = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn != null && (var.use_default_backup_encryption_key || var.use_same_kms_key_for_backups) ? tobool("When passing a value for 'backup_encryption_key_crn' you cannot set 'use_default_backup_encryption_key' to true or 'use_ibm_owned_encryption_key' to false.") : true # tflint-ignore: terraform_unused_declarations validate_backup_key_2 = !var.use_ibm_owned_encryption_key && var.backup_encryption_key_crn == null && !var.use_same_kms_key_for_backups ? tobool("When 'use_same_kms_key_for_backups' is set to false, a value needs to be passed for 'backup_encryption_key_crn'.") : true - # tflint-ignore: terraform_unused_declarations - validate_pitr_vars = (var.pitr_id != null && var.pitr_time == null) || (var.pitr_time != null && var.pitr_id == null) ? tobool("To use Point-In-Time Recovery (PITR), values for both var.pitr_id and var.pitr_time need to be set. Otherwise, unset both of these.") : true - # Determine if restore, from backup or point in time recovery - recovery_mode = var.backup_crn != null || var.pitr_id != null } ######################################################################################################################## @@ -176,21 +172,19 @@ resource "time_sleep" "wait_for_backup_kms_authorization_policy" { ######################################################################################################################## resource "ibm_database" "mongodb" { - depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] - name = var.name - location = var.region - plan = var.plan - service = "databases-for-mongodb" - version = var.mongodb_version - resource_group_id = var.resource_group_id - adminpassword = var.admin_pass - tags = var.tags - service_endpoints = var.service_endpoints - key_protect_key = var.kms_key_crn - backup_encryption_key_crn = local.backup_encryption_key_crn - backup_id = var.backup_crn - point_in_time_recovery_deployment_id = var.pitr_id - point_in_time_recovery_time = var.pitr_time + depends_on = [time_sleep.wait_for_authorization_policy, time_sleep.wait_for_backup_kms_authorization_policy] + name = var.name + location = var.region + plan = var.plan + service = "databases-for-mongodb" + version = var.mongodb_version + resource_group_id = var.resource_group_id + adminpassword = var.admin_pass + tags = var.tags + service_endpoints = var.service_endpoints + key_protect_key = var.kms_key_crn + backup_encryption_key_crn = local.backup_encryption_key_crn + backup_id = var.backup_crn dynamic "users" { for_each = nonsensitive(var.users != null ? var.users : []) @@ -206,7 +200,7 @@ resource "ibm_database" "mongodb" { ## This is used to conditionally add one, OR, the other group block depending on var.local.host_flavor_set ## This block is for if host_flavor IS set to specific pre-defined host sizes and not set to "multitenant" dynamic "group" { - for_each = local.host_flavor_set && var.member_host_flavor != "multitenant" && !local.recovery_mode ? [1] : [] + for_each = local.host_flavor_set && var.member_host_flavor != "multitenant" && var.backup_crn == null ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases host_flavor { @@ -223,7 +217,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS set to "multitenant" dynamic "group" { - for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && !local.recovery_mode ? [1] : [] + for_each = local.host_flavor_set && var.member_host_flavor == "multitenant" && var.backup_crn == null ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases host_flavor { @@ -246,7 +240,7 @@ resource "ibm_database" "mongodb" { ## This block is for if host_flavor IS NOT set dynamic "group" { - for_each = !local.host_flavor_set && !local.recovery_mode ? [1] : [] + for_each = !local.host_flavor_set && var.backup_crn == null ? [1] : [] content { group_id = "member" # Only member type is allowed for IBM Cloud Databases memory { diff --git a/tests/other_test.go b/tests/other_test.go index 38489e97..47868c1d 100644 --- a/tests/other_test.go +++ b/tests/other_test.go @@ -55,25 +55,3 @@ func TestRunRestoredDBExample(t *testing.T) { assert.Nil(t, err, "This should not have errored") assert.NotNil(t, output, "Expected some output") } - -func TestRunPointInTimeRecoveryDBExample(t *testing.T) { - t.Parallel() - - options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ - Testing: t, - TerraformDir: "examples/pitr", - Prefix: "mdb-pitr", - ResourceGroup: resourceGroup, - Region: fmt.Sprint(permanentResources["mongodbRegion"]), - TerraformVars: map[string]interface{}{ - "pitr_id": permanentResources["mongodbCrn"], - "pitr_time": " ", // if blank string is passed, earliest_point_in_time_recovery_time will be used to restore - "mongodb_version": "6.0", - }, - CloudInfoService: sharedInfoSvc, - }) - - output, err := options.RunTestConsistency() - assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") -} diff --git a/variables.tf b/variables.tf index 64d6d1ef..93f23a87 100644 --- a/variables.tf +++ b/variables.tf @@ -282,19 +282,3 @@ variable "backup_crn" { error_message = "backup_crn must be null OR starts with 'crn:' and contains ':backup:'" } } - -############################################################## -# Point-In-Time Recovery (PITR) -############################################################## - -variable "pitr_id" { - type = string - description = "(Optional) The ID of the source deployment MongoDB instance that you want to recover back to. The MongoDB instance is expected to be in an up and in running state." - default = null -} - -variable "pitr_time" { - type = string - description = "(Optional) The timestamp in UTC format (%Y-%m-%dT%H:%M:%SZ) for any time in the last 7 days that you want to restore to. If empty string (\"\") is passed, earliest_point_in_time_recovery_time will be used as pitr_time. To retrieve the timestamp, run the command (ibmcloud cdb MongoDB earliest-pitr-timestamp ). For more info on Point-in-time Recovery, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pitr&interface=ui" - default = null -} From 105adf3e01e506727a36e68f19b5027004872a15 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Tue, 25 Mar 2025 22:43:44 +0530 Subject: [PATCH 18/21] resolved conflicts --- tests/pr_test.go | 57 +++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/tests/pr_test.go b/tests/pr_test.go index 940e4bc4..fc38cfd9 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -214,39 +214,26 @@ func TestRunExistingInstance(t *testing.T) { } // Test the DA when using IBM owned encryption keys -func TestRunStandardSolutionIBMKeys(t *testing.T) { - t.Parallel() + func TestRunStandardSolutionIBMKeys(t *testing.T) { + t.Parallel() + + options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ + Testing: t, + TerraformDir: standardSolutionTerraformDir, + Region: "us-south", + Prefix: "mongodb-icd-key", + ResourceGroup: resourceGroup, + }) + + options.TerraformVars = map[string]interface{}{ + "mongodb_version": "7.0", + "provider_visibility": "public", + "resource_group_name": options.Prefix, + "use_ibm_owned_encryption_key": true, + } + + output, err := options.RunTestConsistency() + assert.Nil(t, err, "This should not have errored") + assert.NotNil(t, output, "Expected some output") + } - options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ - Testing: t, - TerraformDir: standardSolutionTerraformDir, - Region: "us-south", - Prefix: "mongodb-icd-key", - ResourceGroup: resourceGroup, - }) - options.TestSetup() - options.TerraformOptions.NoColor = true - options.TerraformOptions.Logger = logger.Discard - options.TerraformOptions.Vars = map[string]interface{}{ - "prefix": options.Prefix, - "region": "us-south", - "mongodb_version": "7.0", - "provider_visibility": "public", - "resource_group_name": options.Prefix, - } - - // Test the DA when using an existing KMS instance - var standardSolutionWithExistingKms = map[string]interface{}{ - "access_tags": permanentResources["accessTags"], - "existing_kms_instance_crn": permanentResources["hpcs_south_crn"], - } - - // Test the DA when using IBM owned encryption key - var standardSolutionWithUseIbmOwnedEncKey = map[string]interface{}{ - "use_ibm_owned_encryption_key": true, - } - - output, err := options.RunTestConsistency() - assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") -} From 61ca3933ac60ae7aba821e8e393539bda363a461 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Tue, 25 Mar 2025 22:53:04 +0530 Subject: [PATCH 19/21] fixed:pre-commit --- tests/pr_test.go | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/tests/pr_test.go b/tests/pr_test.go index fc38cfd9..f793b26d 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -214,26 +214,25 @@ func TestRunExistingInstance(t *testing.T) { } // Test the DA when using IBM owned encryption keys - func TestRunStandardSolutionIBMKeys(t *testing.T) { - t.Parallel() - - options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ - Testing: t, - TerraformDir: standardSolutionTerraformDir, - Region: "us-south", - Prefix: "mongodb-icd-key", - ResourceGroup: resourceGroup, - }) - - options.TerraformVars = map[string]interface{}{ - "mongodb_version": "7.0", - "provider_visibility": "public", - "resource_group_name": options.Prefix, - "use_ibm_owned_encryption_key": true, - } - - output, err := options.RunTestConsistency() - assert.Nil(t, err, "This should not have errored") - assert.NotNil(t, output, "Expected some output") - } +func TestRunStandardSolutionIBMKeys(t *testing.T) { + t.Parallel() + options := testhelper.TestOptionsDefault(&testhelper.TestOptions{ + Testing: t, + TerraformDir: standardSolutionTerraformDir, + Region: "us-south", + Prefix: "mongodb-icd-key", + ResourceGroup: resourceGroup, + }) + + options.TerraformVars = map[string]interface{}{ + "mongodb_version": "7.0", + "provider_visibility": "public", + "resource_group_name": options.Prefix, + "use_ibm_owned_encryption_key": true, + } + + output, err := options.RunTestConsistency() + assert.Nil(t, err, "This should not have errored") + assert.NotNil(t, output, "Expected some output") +} From cbb594ee7fd36c310540256c877f8de45980eedc Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Thu, 3 Apr 2025 10:35:10 +0530 Subject: [PATCH 20/21] resolved comments --- README.md | 6 +++--- .../catalogValidationValues.json.template | 2 +- examples/backup-restore/main.tf | 2 +- examples/backup-restore/variables.tf | 2 +- examples/basic/main.tf | 2 +- examples/basic/variables.tf | 2 +- examples/complete/main.tf | 10 +++++----- examples/complete/variables.tf | 2 +- examples/fscloud/main.tf | 4 ++-- examples/fscloud/variables.tf | 2 +- ibm_catalog.json | 6 +++--- main.tf | 14 +++++++------- modules/fscloud/README.md | 6 +++--- modules/fscloud/main.tf | 6 +++--- modules/fscloud/variables.tf | 6 +++--- solutions/standard/main.tf | 6 +++--- solutions/standard/variables.tf | 6 +++--- variables.tf | 6 +++--- 18 files changed, 45 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 1d7352ca..1086c87a 100644 --- a/README.md +++ b/README.md @@ -90,12 +90,12 @@ You need the following permissions to run this module. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of context-based restrictions rules to create. |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
tags = optional(list(object({
name = string
value = string
})))
operations = optional(list(object({
api_types = list(object({
api_type_id = string
}))
})))
}))
| `[]` | no | +| [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | +| [disk\_mb](#input\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | -| [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no | -| [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | -| [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no | | [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no | +| [memory\_mb](#input\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no | | [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no | | [name](#input\_name) | The name to give the MongoDB instance. | `string` | n/a | yes | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no | diff --git a/examples/backup-restore/catalogValidationValues.json.template b/examples/backup-restore/catalogValidationValues.json.template index d761afae..8e580fd3 100644 --- a/examples/backup-restore/catalogValidationValues.json.template +++ b/examples/backup-restore/catalogValidationValues.json.template @@ -1,6 +1,6 @@ { "ibmcloud_api_key": $VALIDATION_APIKEY, "region": "us-south", - "resource_tags": $TAGS, + "tags": $TAGS, "prefix": $PREFIX } diff --git a/examples/backup-restore/main.tf b/examples/backup-restore/main.tf index f5e0bea9..ce7e7098 100644 --- a/examples/backup-restore/main.tf +++ b/examples/backup-restore/main.tf @@ -22,7 +22,7 @@ module "restored_icd_mongodb" { region = var.region mongodb_version = var.mongodb_version access_tags = var.access_tags - tags = var.resource_tags + tags = var.tags member_host_flavor = "multitenant" backup_crn = data.ibm_database_backups.backup_database.backups[0].backup_id } diff --git a/examples/backup-restore/variables.tf b/examples/backup-restore/variables.tf index e0a27c5e..a966b259 100644 --- a/examples/backup-restore/variables.tf +++ b/examples/backup-restore/variables.tf @@ -34,7 +34,7 @@ variable "mongodb_version" { default = null } -variable "resource_tags" { +variable "tags" { type = list(string) description = "Optional list of tags to be added to created resources" default = [] diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 71961a0f..79e4f03f 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -21,7 +21,7 @@ module "database" { region = var.region mongodb_version = var.mongodb_version access_tags = var.access_tags - tags = var.resource_tags + tags = var.tags service_endpoints = var.service_endpoints member_host_flavor = var.member_host_flavor service_credential_names = { diff --git a/examples/basic/variables.tf b/examples/basic/variables.tf index 9990ec33..b07891a9 100644 --- a/examples/basic/variables.tf +++ b/examples/basic/variables.tf @@ -34,7 +34,7 @@ variable "mongodb_version" { default = null } -variable "resource_tags" { +variable "tags" { type = list(string) description = "Optional list of tags to be added to created resources" default = [] diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 065eb168..cf122b44 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -31,7 +31,7 @@ module "resource_group" { resource "ibm_is_vpc" "example_vpc" { name = "${var.prefix}-vpc" resource_group = module.resource_group.resource_group_id - tags = var.resource_tags + tags = var.tags } resource "ibm_is_subnet" "testacc_subnet" { @@ -59,7 +59,7 @@ module "key_protect_all_inclusive" { # Note: Database instance and Key Protect must be created on the same region. region = var.region key_protect_instance_name = "${var.prefix}-kp" - resource_tags = var.resource_tags + resource_tags = var.tags keys = [ { key_ring_name = "icd" @@ -113,7 +113,7 @@ module "icd_mongodb" { region = var.region plan = var.plan access_tags = var.access_tags - tags = var.resource_tags + tags = var.tags auto_scaling = var.auto_scaling # Example of how to use different KMS keys for data and backups use_ibm_owned_encryption_key = false @@ -122,7 +122,7 @@ module "icd_mongodb" { backup_encryption_key_crn = module.key_protect_all_inclusive.keys["icd.${local.backups_key_name}"].crn service_credential_names = local.service_credential_names member_host_flavor = "multitenant" - member_memory_mb = 4096 + memory_mb = 4096 } ############################################################################## @@ -139,7 +139,7 @@ module "secrets_manager" { secrets_manager_name = "${var.prefix}-secrets-manager" sm_service_plan = "trial" allowed_network = "public-and-private" - sm_tags = var.resource_tags + sm_tags = var.tags } # Add a Secrets Group to the secret manager instance diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 4d6df5f4..b8738772 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -23,7 +23,7 @@ variable "resource_group" { default = null } -variable "resource_tags" { +variable "tags" { type = list(string) description = "Optional list of tags to be added to created resources" default = [] diff --git a/examples/fscloud/main.tf b/examples/fscloud/main.tf index 153cdafc..1aaa5a39 100644 --- a/examples/fscloud/main.tf +++ b/examples/fscloud/main.tf @@ -23,7 +23,7 @@ data "ibm_iam_account_settings" "iam_account_settings" { resource "ibm_is_vpc" "example_vpc" { name = "${var.prefix}-vpc" resource_group = module.resource_group.resource_group_id - tags = var.resource_tags + tags = var.tags } resource "ibm_is_subnet" "testacc_subnet" { @@ -58,7 +58,7 @@ module "mongodb" { resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mongodb" region = var.region - tags = var.resource_tags + tags = var.tags access_tags = var.access_tags kms_key_crn = var.kms_key_crn backup_encryption_key_crn = var.backup_encryption_key_crn diff --git a/examples/fscloud/variables.tf b/examples/fscloud/variables.tf index 43058331..4fb1e67e 100644 --- a/examples/fscloud/variables.tf +++ b/examples/fscloud/variables.tf @@ -22,7 +22,7 @@ variable "resource_group" { default = null } -variable "resource_tags" { +variable "tags" { type = list(string) description = "Optional list of tags to be added to created resources" default = [] diff --git a/ibm_catalog.json b/ibm_catalog.json index 4b8fad00..38bda124 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -208,13 +208,13 @@ "key": "members" }, { - "key": "member_memory_mb" + "key": "memory_mb" }, { - "key": "member_cpu_count" + "key": "cpu_count" }, { - "key": "member_disk_mb" + "key": "disk_mb" }, { "key": "member_host_flavor" diff --git a/main.tf b/main.tf index a759723e..3c840b0c 100644 --- a/main.tf +++ b/main.tf @@ -207,7 +207,7 @@ resource "ibm_database" "mongodb" { id = var.member_host_flavor } disk { - allocation_mb = var.member_disk_mb + allocation_mb = var.disk_mb } members { allocation_count = var.members @@ -224,13 +224,13 @@ resource "ibm_database" "mongodb" { id = var.member_host_flavor } disk { - allocation_mb = var.member_disk_mb + allocation_mb = var.disk_mb } memory { - allocation_mb = var.member_memory_mb + allocation_mb = var.memory_mb } cpu { - allocation_count = var.member_cpu_count + allocation_count = var.cpu_count } members { allocation_count = var.members @@ -244,13 +244,13 @@ resource "ibm_database" "mongodb" { content { group_id = "member" # Only member type is allowed for IBM Cloud Databases memory { - allocation_mb = var.member_memory_mb + allocation_mb = var.memory_mb } disk { - allocation_mb = var.member_disk_mb + allocation_mb = var.disk_mb } cpu { - allocation_count = var.member_cpu_count + allocation_count = var.cpu_count } members { allocation_count = var.members diff --git a/modules/fscloud/README.md b/modules/fscloud/README.md index 7bde3ba3..7428b75a 100644 --- a/modules/fscloud/README.md +++ b/modules/fscloud/README.md @@ -36,12 +36,12 @@ No resources. | [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no | | [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | | [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of context-based restrictions rules to create. |
list(object({
description = string
account_id = string
rule_contexts = list(object({
attributes = optional(list(object({
name = string
value = string
}))) }))
enforcement_mode = string
tags = optional(list(object({
name = string
value = string
})))
operations = optional(list(object({
api_types = list(object({
api_type_id = string
}))
})))
}))
| `[]` | no | +| [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | +| [disk\_mb](#input\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | | [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no | -| [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `6` | no | -| [member\_disk\_mb](#input\_member\_disk\_mb) | Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `20480` | no | | [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no | -| [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `14336` | no | | [members](#input\_members) | Allocated number of members | `number` | `3` | no | +| [memory\_mb](#input\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `14336` | no | | [mongodb\_version](#input\_mongodb\_version) | Version of the MongoDB instance. If no value is passed, the current preferred version of IBM Cloud Databases is used. | `string` | `null` | no | | [name](#input\_name) | Name of the mongodb instance | `string` | n/a | yes | | [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"enterprise"` | no | diff --git a/modules/fscloud/main.tf b/modules/fscloud/main.tf index d0f33b9f..2200f38c 100644 --- a/modules/fscloud/main.tf +++ b/modules/fscloud/main.tf @@ -17,11 +17,11 @@ module "mongodb" { access_tags = var.access_tags tags = var.tags members = var.members - member_memory_mb = var.member_memory_mb + memory_mb = var.memory_mb admin_pass = var.admin_pass users = var.users - member_disk_mb = var.member_disk_mb - member_cpu_count = var.member_cpu_count + disk_mb = var.disk_mb + cpu_count = var.cpu_count member_host_flavor = var.member_host_flavor auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names diff --git a/modules/fscloud/variables.tf b/modules/fscloud/variables.tf index c4be7451..5b74eb7c 100644 --- a/modules/fscloud/variables.tf +++ b/modules/fscloud/variables.tf @@ -40,13 +40,13 @@ variable "members" { default = 3 } -variable "member_cpu_count" { +variable "cpu_count" { type = number description = "Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 6 } -variable "member_disk_mb" { +variable "disk_mb" { type = number description = "Allocated disk per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 20480 @@ -58,7 +58,7 @@ variable "member_host_flavor" { default = null } -variable "member_memory_mb" { +variable "memory_mb" { type = number description = "Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 14336 diff --git a/solutions/standard/main.tf b/solutions/standard/main.tf index 9699df59..939532a9 100644 --- a/solutions/standard/main.tf +++ b/solutions/standard/main.tf @@ -311,9 +311,9 @@ module "mongodb" { users = var.users members = var.members member_host_flavor = var.member_host_flavor - member_memory_mb = var.member_memory_mb - member_disk_mb = var.member_disk_mb - member_cpu_count = var.member_cpu_count + memory_mb = var.memory_mb + disk_mb = var.disk_mb + cpu_count = var.cpu_count auto_scaling = var.auto_scaling service_credential_names = var.service_credential_names backup_crn = var.backup_crn diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index fa2757fe..f471d1b2 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -72,19 +72,19 @@ variable "members" { default = 3 } -variable "member_memory_mb" { +variable "memory_mb" { type = number description = "The memory per member that is allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)" default = 4096 } -variable "member_cpu_count" { +variable "cpu_count" { type = number description = "The dedicated CPU per member that is allocated. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)." default = 0 } -variable "member_disk_mb" { +variable "disk_mb" { type = number description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling)." default = 10240 diff --git a/variables.tf b/variables.tf index 93f23a87..bc918c5e 100644 --- a/variables.tf +++ b/variables.tf @@ -58,14 +58,14 @@ variable "members" { # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "member_cpu_count" { +variable "cpu_count" { type = number description = "Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 0 # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "member_disk_mb" { +variable "disk_mb" { type = number description = "The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 10240 @@ -79,7 +79,7 @@ variable "member_host_flavor" { # Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here. } -variable "member_memory_mb" { +variable "memory_mb" { type = number description = "Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member)" default = 4096 From 9e7faeb1cb65fdbf52c263bdde72cde7d9ac98a7 Mon Sep 17 00:00:00 2001 From: Aatreyee Mukherjee Date: Mon, 7 Apr 2025 13:18:21 +0530 Subject: [PATCH 21/21] fixed:pre-commit --- examples/complete/main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/complete/main.tf b/examples/complete/main.tf index d5486b1d..b2de04ff 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -21,7 +21,6 @@ module "resource_group" { source = "terraform-ibm-modules/resource-group/ibm" version = "1.2.0" # if an existing resource group is not set (null) create a new one using prefix - version = "1.1.6" resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null existing_resource_group_name = var.resource_group }