diff --git a/openstack-tf/d4s-production/mongodb/mongodb.auto.tfvars b/openstack-tf/d4s-production/mongodb/mongodb.auto.tfvars index 79b34f0..399defa 100644 --- a/openstack-tf/d4s-production/mongodb/mongodb.auto.tfvars +++ b/openstack-tf/d4s-production/mongodb/mongodb.auto.tfvars @@ -7,7 +7,7 @@ mongodb_cluster_data = { image_type_uuid = "75c23040-2be7-49e9-8029-a16dc9f755d1" } -mongodb_ip = ["10.1.40.22", "10.1.40.23", "10.1.40.24", "10.1.40.25"] +mongodb_ip = ["10.1.40.22", "10.1.40.25", "10.1.40.24", "10.1.40.23"] mongodb_vol_data = { name = "mongodb-vol" diff --git a/openstack-tf/d4s-production/mongodb/terraform.tfstate b/openstack-tf/d4s-production/mongodb/terraform.tfstate index a1f7544..b3fb4ae 100644 --- a/openstack-tf/d4s-production/mongodb/terraform.tfstate +++ b/openstack-tf/d4s-production/mongodb/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.7.5", - "serial": 43, + "serial": 66, "lineage": "8125b507-dffc-191e-5c2e-5ad0afce4380", "outputs": {}, "resources": [ @@ -29,6 +29,17 @@ "defaults": null, "outputs": { "value": { + "access_postgresql_security_group": { + "all_tags": [], + "delete_default_rules": true, + "description": "Access the shared PostgreSQL service using the dedicated network", + "id": "347b507a-8df3-44ad-acb1-580e66991064", + "name": "access_to_the_shared_postgresql_service", + "region": "isti_area_pi_1", + "tags": [], + "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", + "timeouts": null + }, "almalinux_9": { "name": "AlmaLinux-9.0-20220718", "uuid": "541650fc-dd19-4f38-bb1d-7333ed9dd688" @@ -57,6 +68,17 @@ "name": "CentOS-7", "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" }, + "default_security_group": { + "all_tags": [], + "delete_default_rules": true, + "description": "Default security group with rules for ssh access via jump proxy, prometheus scraping", + "id": "ec201518-ab19-4342-8465-4b5524030a8e", + "name": "default_for_all", + "region": "isti_area_pi_1", + "tags": [], + "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", + "timeouts": null + }, "default_security_group_name": "default_for_all", "dns_zone": { "description": "DNS primary zone for the d4s-production-cloud project", @@ -198,7 +220,7 @@ "shared_postgresql_server_data": { "allocation_pool_end": "192.168.3.254", "allocation_pool_start": "192.168.0.100", - "flavor": "m1.large", + "flavor": "m1.xxl", "name": "shared-postgresql-server", "network_cidr": "192.168.0.0/22", "network_description": "Network used to communicate with the shared postgresql service", @@ -267,7 +289,6 @@ "created": "2023-11-06 18:33:59 +0000 UTC", "flavor_id": "9", "flavor_name": "m1.large", - "floating_ip": null, "force_delete": false, "id": "218369c6-7bd0-4b0c-aa71-dc07183007f3", "image_id": "Attempt to boot from volume - no image supplied", @@ -280,7 +301,6 @@ "access_network": false, "fixed_ip_v4": "10.1.40.31", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:bb:82:0b", "name": "d4s-production-cloud-main", "port": "", @@ -290,7 +310,6 @@ "access_network": false, "fixed_ip_v4": "192.168.4.147", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:75:ba:bb", "name": "swarm-nfs-net", "port": "", @@ -324,8 +343,7 @@ "timeouts": null, "updated": "2023-11-06 18:34:47 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.40.32", @@ -367,7 +385,6 @@ "created": "2023-11-06 18:32:37 +0000 UTC", "flavor_id": "9", "flavor_name": "m1.large", - "floating_ip": null, "force_delete": false, "id": "0c00cb58-71a3-4066-8570-0c6333022b4e", "image_id": "Attempt to boot from volume - no image supplied", @@ -380,7 +397,6 @@ "access_network": false, "fixed_ip_v4": "10.1.40.32", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:28:ab:a7", "name": "d4s-production-cloud-main", "port": "", @@ -390,7 +406,6 @@ "access_network": false, "fixed_ip_v4": "192.168.4.135", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:e5:20:36", "name": "swarm-nfs-net", "port": "", @@ -424,8 +439,7 @@ "timeouts": null, "updated": "2023-11-06 18:34:00 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.40.33", @@ -467,7 +481,6 @@ "created": "2023-11-06 18:32:37 +0000 UTC", "flavor_id": "9", "flavor_name": "m1.large", - "floating_ip": null, "force_delete": false, "id": "e27a68a2-f124-469f-8f9d-850bd93785e9", "image_id": "Attempt to boot from volume - no image supplied", @@ -480,7 +493,6 @@ "access_network": false, "fixed_ip_v4": "10.1.40.33", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:fd:7c:22", "name": "d4s-production-cloud-main", "port": "", @@ -490,7 +502,6 @@ "access_network": false, "fixed_ip_v4": "192.168.4.116", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:58:90:5b", "name": "swarm-nfs-net", "port": "", @@ -524,8 +535,7 @@ "timeouts": null, "updated": "2023-11-06 18:34:02 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] } ], "swarm_managers_nfs_ip_ports": [ @@ -730,7 +740,6 @@ "created": "2023-11-06 18:56:49 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "60ece97f-cfea-4989-836c-0bb87d258e5a", "image_id": "Attempt to boot from volume - no image supplied", @@ -743,7 +752,6 @@ "access_network": false, "fixed_ip_v4": "10.1.42.182", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:cc:36:b0", "name": "d4s-production-cloud-main", "port": "", @@ -753,7 +761,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.109", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:dc:20:8b", "name": "swarm-nfs-net", "port": "", @@ -787,8 +794,7 @@ "timeouts": null, "updated": "2023-11-06 18:57:32 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.42.214", @@ -830,7 +836,6 @@ "created": "2023-11-06 18:49:11 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "3721fa5c-baf5-41c1-a00b-293cd6112e11", "image_id": "Attempt to boot from volume - no image supplied", @@ -843,7 +848,6 @@ "access_network": false, "fixed_ip_v4": "10.1.42.214", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:57:09:77", "name": "d4s-production-cloud-main", "port": "", @@ -853,7 +857,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.7", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:52:13:61", "name": "swarm-nfs-net", "port": "", @@ -887,8 +890,7 @@ "timeouts": null, "updated": "2023-11-06 18:50:38 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.42.165", @@ -930,7 +932,6 @@ "created": "2023-11-06 18:56:48 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "f3cf42e3-b28b-4694-92e2-de9581eb1503", "image_id": "Attempt to boot from volume - no image supplied", @@ -943,7 +944,6 @@ "access_network": false, "fixed_ip_v4": "10.1.42.165", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:91:e6:2c", "name": "d4s-production-cloud-main", "port": "", @@ -953,7 +953,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.246", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:5f:ab:7c", "name": "swarm-nfs-net", "port": "", @@ -987,8 +986,7 @@ "timeouts": null, "updated": "2023-11-06 18:57:33 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.43.228", @@ -1030,7 +1028,6 @@ "created": "2023-11-06 18:49:12 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "14a705c3-844a-4c5f-b727-256b6f2f2039", "image_id": "Attempt to boot from volume - no image supplied", @@ -1043,7 +1040,6 @@ "access_network": false, "fixed_ip_v4": "10.1.43.228", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:44:04:b4", "name": "d4s-production-cloud-main", "port": "", @@ -1053,7 +1049,6 @@ "access_network": false, "fixed_ip_v4": "192.168.4.251", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:4f:c7:e9", "name": "swarm-nfs-net", "port": "", @@ -1087,8 +1082,7 @@ "timeouts": null, "updated": "2023-11-06 18:50:34 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.45.77", @@ -1130,7 +1124,6 @@ "created": "2023-11-06 18:49:11 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "f39ad1ee-9f1e-43b7-b141-973d53e10a2e", "image_id": "Attempt to boot from volume - no image supplied", @@ -1143,7 +1136,6 @@ "access_network": false, "fixed_ip_v4": "10.1.45.77", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:b4:e0:29", "name": "d4s-production-cloud-main", "port": "", @@ -1153,7 +1145,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.181", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:77:3e:38", "name": "swarm-nfs-net", "port": "", @@ -1187,8 +1178,7 @@ "timeouts": null, "updated": "2024-01-12 11:18:04 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.44.73", @@ -1230,7 +1220,6 @@ "created": "2023-11-06 18:49:11 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "58360f23-4703-47f0-8b27-d621463c245c", "image_id": "Attempt to boot from volume - no image supplied", @@ -1243,7 +1232,6 @@ "access_network": false, "fixed_ip_v4": "10.1.44.73", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:db:85:25", "name": "d4s-production-cloud-main", "port": "", @@ -1253,7 +1241,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.12", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:b9:b1:ef", "name": "swarm-nfs-net", "port": "", @@ -1287,8 +1274,7 @@ "timeouts": null, "updated": "2023-11-06 18:50:45 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.45.59", @@ -1330,7 +1316,6 @@ "created": "2023-11-06 18:49:11 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "dca55156-78be-4392-a9b1-3a93dee81dd0", "image_id": "Attempt to boot from volume - no image supplied", @@ -1343,7 +1328,6 @@ "access_network": false, "fixed_ip_v4": "10.1.45.59", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:67:11:2e", "name": "d4s-production-cloud-main", "port": "", @@ -1353,7 +1337,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.113", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:4a:d0:69", "name": "swarm-nfs-net", "port": "", @@ -1387,8 +1370,7 @@ "timeouts": null, "updated": "2023-11-06 18:50:39 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] }, { "access_ip_v4": "10.1.42.92", @@ -1430,7 +1412,6 @@ "created": "2023-11-06 18:49:11 +0000 UTC", "flavor_id": "18", "flavor_name": "m1.xxl", - "floating_ip": null, "force_delete": false, "id": "62a0cd55-f4b9-4bf0-bc8b-2da1e43bca0c", "image_id": "Attempt to boot from volume - no image supplied", @@ -1443,7 +1424,6 @@ "access_network": false, "fixed_ip_v4": "10.1.42.92", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:aa:24:4c", "name": "d4s-production-cloud-main", "port": "", @@ -1453,7 +1433,6 @@ "access_network": false, "fixed_ip_v4": "192.168.5.54", "fixed_ip_v6": "", - "floating_ip": "", "mac": "fa:16:3e:e2:8a:b5", "name": "swarm-nfs-net", "port": "", @@ -1487,8 +1466,7 @@ "timeouts": null, "updated": "2023-11-06 18:50:37 +0000 UTC", "user_data": "", - "vendor_options": [], - "volume": [] + "vendor_options": [] } ], "swarm_workers_nfs_ip_ports": [ @@ -1933,6 +1911,31 @@ "type": [ "object", { + "access_postgresql_security_group": [ + "object", + { + "all_tags": [ + "set", + "string" + ], + "delete_default_rules": "bool", + "description": "string", + "id": "string", + "name": "string", + "region": "string", + "tags": [ + "set", + "string" + ], + "tenant_id": "string", + "timeouts": [ + "object", + { + "delete": "string" + } + ] + } + ], "almalinux_9": [ "map", "string" @@ -1951,6 +1954,31 @@ "map", "string" ], + "default_security_group": [ + "object", + { + "all_tags": [ + "set", + "string" + ], + "delete_default_rules": "bool", + "description": "string", + "id": "string", + "name": "string", + "region": "string", + "tags": [ + "set", + "string" + ], + "tenant_id": "string", + "timeouts": [ + "object", + { + "delete": "string" + } + ] + } + ], "default_security_group_name": "string", "dns_zone": [ "map", @@ -2094,7 +2122,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -2113,7 +2140,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -2193,17 +2219,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -2246,7 +2261,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -2265,7 +2279,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -2345,17 +2358,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -2398,7 +2400,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -2417,7 +2418,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -2497,17 +2497,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ] @@ -2875,7 +2864,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -2894,7 +2882,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -2974,17 +2961,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3027,7 +3003,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3046,7 +3021,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3126,17 +3100,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3179,7 +3142,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3198,7 +3160,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3278,17 +3239,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3331,7 +3281,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3350,7 +3299,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3430,17 +3378,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3483,7 +3420,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3502,7 +3438,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3582,17 +3517,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3635,7 +3559,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3654,7 +3577,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3734,17 +3656,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3787,7 +3698,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3806,7 +3716,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -3886,17 +3795,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ], @@ -3939,7 +3837,6 @@ "created": "string", "flavor_id": "string", "flavor_name": "string", - "floating_ip": "string", "force_delete": "bool", "id": "string", "image_id": "string", @@ -3958,7 +3855,6 @@ "access_network": "bool", "fixed_ip_v4": "string", "fixed_ip_v6": "string", - "floating_ip": "string", "mac": "string", "name": "string", "port": "string", @@ -4038,17 +3934,6 @@ "ignore_resize_confirmation": "bool" } ] - ], - "volume": [ - "set", - [ - "object", - { - "device": "string", - "id": "string", - "volume_id": "string" - } - ] ] } ] @@ -5340,15 +5225,15 @@ "schema_version": 0, "attributes": { "fixed_ip": "", - "floating_ip": "146.48.30.122", - "id": "146.48.30.122/39c02c77-5b13-4164-ac9f-6f61af2e41dc/", - "instance_id": "39c02c77-5b13-4164-ac9f-6f61af2e41dc", + "floating_ip": "146.48.30.16", + "id": "146.48.30.16/3f8048f9-6e59-47d9-b47d-505e0d604e97/", + "instance_id": "3f8048f9-6e59-47d9-b47d-505e0d604e97", "region": "isti_area_pi_1", "timeouts": null, "wait_until_associated": null }, "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9fQ==", + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjAifQ==", "dependencies": [ "data.terraform_remote_state.privnet_dns_router", "openstack_compute_instance_v2.mongodb_cluster_nodes", @@ -5384,9 +5269,9 @@ "schema_version": 0, "attributes": { "fixed_ip": "", - "floating_ip": "146.48.30.16", - "id": "146.48.30.16/3f8048f9-6e59-47d9-b47d-505e0d604e97/", - "instance_id": "3f8048f9-6e59-47d9-b47d-505e0d604e97", + "floating_ip": "146.48.30.26", + "id": "146.48.30.26/c6b1d9c6-b3dc-4470-80b1-009f81b0284b/", + "instance_id": "c6b1d9c6-b3dc-4470-80b1-009f81b0284b", "region": "isti_area_pi_1", "timeouts": null, "wait_until_associated": null @@ -5540,7 +5425,7 @@ "index_key": 1, "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.40.23", + "access_ip_v4": "10.1.40.25", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -5580,20 +5465,20 @@ "flavor_id": "20", "flavor_name": "m2.large", "floating_ip": null, - "force_delete": false, - "id": "39c02c77-5b13-4164-ac9f-6f61af2e41dc", + "force_delete": null, + "id": "3f8048f9-6e59-47d9-b47d-505e0d604e97", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, "key_pair": "adellam", - "metadata": null, + "metadata": {}, "name": "mongodb-replica-03", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.40.23", + "fixed_ip_v4": "10.1.40.25", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:76:01:25", + "mac": "fa:16:3e:a0:14:ed", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" @@ -5619,16 +5504,16 @@ "default_for_all", "mongodb_cluster_traffic" ], - "stop_before_destroy": false, + "stop_before_destroy": null, "tags": [], "timeouts": null, - "updated": "2023-11-17 15:27:51 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "updated": "2024-05-02 17:06:21 +0000 UTC", + "user_data": null, "vendor_options": [], "volume": [] }, "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMCJ9", "dependencies": [ "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.mongodb", @@ -5738,7 +5623,7 @@ "index_key": 3, "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.40.25", + "access_ip_v4": "10.1.40.23", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -5774,24 +5659,24 @@ } ], "config_drive": null, - "created": "2023-11-17 15:27:06 +0000 UTC", + "created": "2024-06-27 16:13:52 +0000 UTC", "flavor_id": "20", "flavor_name": "m2.large", "floating_ip": null, "force_delete": false, - "id": "3f8048f9-6e59-47d9-b47d-505e0d604e97", + "id": "c6b1d9c6-b3dc-4470-80b1-009f81b0284b", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "adellam-ed25519", "metadata": null, "name": "mongodb-replica-05", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.40.25", + "fixed_ip_v4": "10.1.40.23", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:a0:14:ed", + "mac": "fa:16:3e:6b:7c:ef", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" @@ -5803,7 +5688,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": {}, + "additional_properties": null, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -5818,9 +5703,9 @@ "mongodb_cluster_traffic" ], "stop_before_destroy": false, - "tags": [], + "tags": null, "timeouts": null, - "updated": "2023-11-17 15:27:53 +0000 UTC", + "updated": "2024-06-27 16:15:02 +0000 UTC", "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", "vendor_options": [], "volume": [] @@ -5942,7 +5827,6 @@ "members": [ "c49bbdcb-64a8-465c-8a8f-5473031cf149", "123694fe-a8d6-4b00-99e6-316f5c47e104", - "39c02c77-5b13-4164-ac9f-6f61af2e41dc", "3f8048f9-6e59-47d9-b47d-505e0d604e97" ], "name": "mongodb", @@ -6003,11 +5887,11 @@ "attributes": { "description": "Mongodb public hostnames", "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/fa0e124c-e571-4bbf-85df-fdb9bd0b0a5a", + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/2903b119-cb54-4a3c-aedb-02f8d80a2e14", "name": "mongodb-replica-03.cloud.d4science.org.", "project_id": "1b45adf388934758b56d0dfdb4bfacf3", "records": [ - "146.48.30.122" + "146.48.30.16" ], "region": "isti_area_pi_1", "timeouts": null, @@ -6061,11 +5945,11 @@ "attributes": { "description": "Mongodb public hostnames", "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/1873ba94-3b02-44ce-be03-665f7a4d5947", + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/f1a447b9-68bf-4962-8ae3-adb09478f7c0", "name": "mongodb-replica-05.cloud.d4science.org.", "project_id": "1b45adf388934758b56d0dfdb4bfacf3", "records": [ - "146.48.30.16" + "146.48.30.26" ], "region": "isti_area_pi_1", "timeouts": null, @@ -6155,15 +6039,15 @@ "index_key": 1, "schema_version": 0, "attributes": { - "address": "146.48.30.122", + "address": "146.48.30.16", "all_tags": [], "description": "MongoDB cluster node mongodb-replica-03", "dns_domain": "", "dns_name": "", - "fixed_ip": "10.1.40.23", - "id": "59ffbb40-7772-437e-9ffa-6f7b783c2338", + "fixed_ip": "10.1.40.25", + "id": "61af36dd-f8c1-49de-96db-c9d1eb81fb22", "pool": "external-network", - "port_id": "0ee35be3-25dc-4984-87ac-900a2b4f52f9", + "port_id": "81ee8327-4ba6-4dfc-81c6-a8588d389aea", "region": "isti_area_pi_1", "subnet_id": null, "subnet_ids": null, @@ -6203,15 +6087,15 @@ "index_key": 3, "schema_version": 0, "attributes": { - "address": "146.48.30.16", + "address": "146.48.30.26", "all_tags": [], "description": "MongoDB cluster node mongodb-replica-05", "dns_domain": "", "dns_name": "", - "fixed_ip": "10.1.40.25", - "id": "61af36dd-f8c1-49de-96db-c9d1eb81fb22", + "fixed_ip": "", + "id": "530a4d43-742d-415d-9f9e-389922c3c17c", "pool": "external-network", - "port_id": "81ee8327-4ba6-4dfc-81c6-a8588d389aea", + "port_id": "", "region": "isti_area_pi_1", "subnet_id": null, "subnet_ids": null, @@ -6494,7 +6378,11 @@ "timeouts": null }, "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjAifQ==" + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjAifQ==", + "dependencies": [ + "data.terraform_remote_state.infrastructure_data", + "openstack_networking_secgroup_v2.mongodb_cluster_traffic" + ] } ] }, diff --git a/openstack-tf/modules/mongodb/mongodb.tf b/openstack-tf/modules/mongodb/mongodb.tf index 594f9f7..c0a6d61 100644 --- a/openstack-tf/modules/mongodb/mongodb.tf +++ b/openstack-tf/modules/mongodb/mongodb.tf @@ -68,7 +68,7 @@ resource "openstack_compute_instance_v2" "mongodb_cluster_nodes" { name = format("%s-%02d", var.mongodb_cluster_data.name, count.index + 2) availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu flavor_name = var.mongodb_cluster_data.flavor - key_pair = module.ssh_settings.ssh_key_file + key_pair = module.ssh_settings.ssh_key_name security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, openstack_networking_secgroup_v2.mongodb_cluster_traffic.name] scheduler_hints { group = openstack_compute_servergroup_v2.mongodb.id