Destroyed some unprovisioned services,

to reclaim space for StorageHub2 in prod
This commit is contained in:
Giancarlo Panichi 2024-11-07 18:40:18 +01:00
parent 83b57ee8cd
commit c4e540673e
5 changed files with 71 additions and 369 deletions

View File

@ -152,21 +152,21 @@ module "instance_with_data_volume" {
size = "20",
device = "/dev/vdb"
}
},
geonetwork_recofi_rdb_pilot = {
name = "geonetwork-recofi-rdb-pilot",
description = "This instance serves geonetwork service",
flavor = module.common_variables.flavor_list.m2_small,
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql],
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers],
image_ref = module.common_variables.ubuntu_1804
server_groups_ids = [],
volume = {
name = "geonetwork_recofi_rdb_pilot_data_volume",
size = "20",
device = "/dev/vdb"
}
}
# geonetwork_recofi_rdb_pilot = {
# name = "geonetwork-recofi-rdb-pilot",
# description = "This instance serves geonetwork service",
# flavor = module.common_variables.flavor_list.m2_small,
# networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql],
# security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers],
# image_ref = module.common_variables.ubuntu_1804
# server_groups_ids = [],
# volume = {
# name = "geonetwork_recofi_rdb_pilot_data_volume",
# size = "20",
# device = "/dev/vdb"
# }
# }
}
}
@ -252,14 +252,14 @@ module "dns_records_create" {
ttl = 8600
type = "CNAME"
records = [local.cname_target]
},
geonetwork-recofi-rdb-pilot = {
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
name = join(".", ["geonetwork-recofi-rdb-pilot", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
description = "Geonetwork geonetwork-recofi-rdb-pilot"
ttl = 8600
type = "CNAME"
records = [local.cname_target]
}
# geonetwork-recofi-rdb-pilot = {
# zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
# name = join(".", ["geonetwork-recofi-rdb-pilot", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
# description = "Geonetwork geonetwork-recofi-rdb-pilot"
# ttl = 8600
# type = "CNAME"
# records = [local.cname_target]
# }
}
}

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 100,
"serial": 105,
"lineage": "08d2359a-f46e-f9fe-02d9-4cc9cfb46e25",
"outputs": {},
"resources": [
@ -551,31 +551,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork-recofi-rdb-pilot",
"schema_version": 0,
"attributes": {
"description": "Geonetwork geonetwork-recofi-rdb-pilot",
"disable_status_check": false,
"id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/507b02eb-d05d-47a7-a273-78a3f9aab6d7",
"name": "geonetwork-recofi-rdb-pilot.cloud.d4science.org.",
"project_id": "1b45adf388934758b56d0dfdb4bfacf3",
"records": [
"main-lb.cloud.d4science.org."
],
"region": "isti_area_pi_1",
"timeouts": null,
"ttl": 8600,
"type": "CNAME",
"value_specs": null,
"zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork-sdilab",
"schema_version": 0,
@ -870,35 +845,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"attachment": [],
"availability_zone": "nova",
"backup_id": "",
"consistency_group_id": null,
"description": "",
"enable_online_resize": null,
"id": "5a9a044c-a344-46e4-a0b0-4b615dc680fb",
"image_id": null,
"metadata": {},
"name": "geonetwork_recofi_rdb_pilot_data_volume",
"region": "isti_area_pi_1",
"scheduler_hints": [],
"size": 20,
"snapshot_id": "",
"source_replica": null,
"source_vol_id": "",
"timeouts": null,
"volume_type": "cephUnencrypted"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork_sdilab",
"schema_version": 0,
@ -1082,7 +1028,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2024-05-08 13:03:22 +0000 UTC",
"updated": "2024-10-04 16:27:30 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -1487,85 +1433,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.42.84",
"access_ip_v6": "",
"admin_pass": null,
"all_metadata": {},
"all_tags": [],
"availability_zone": "cnr-isti-nova-a",
"availability_zone_hints": "cnr-isti-nova-a",
"block_device": [
{
"boot_index": 0,
"delete_on_termination": false,
"destination_type": "volume",
"device_type": "",
"disk_bus": "",
"guest_format": "",
"multiattach": false,
"source_type": "image",
"uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89",
"volume_size": 10,
"volume_type": ""
}
],
"config_drive": null,
"created": "2024-09-12 08:29:26 +0000 UTC",
"flavor_id": "10",
"flavor_name": "m2.small",
"force_delete": false,
"id": "768d4148-20b5-41f0-9eb6-3ee900dc3095",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "Giancarlo Panichi",
"metadata": null,
"name": "geonetwork-recofi-rdb-pilot",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.42.84",
"fixed_ip_v6": "",
"mac": "fa:16:3e:4f:0f:c8",
"name": "d4s-production-cloud-main",
"port": "",
"uuid": "020df98d-ae72-452a-b376-3b6dc289acac"
},
{
"access_network": false,
"fixed_ip_v4": "192.168.2.188",
"fixed_ip_v6": "",
"mac": "fa:16:3e:2e:80:ee",
"name": "postgresql-srv-net",
"port": "",
"uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8"
}
],
"network_mode": null,
"personality": [],
"power_state": "active",
"region": "isti_area_pi_1",
"scheduler_hints": [],
"security_groups": [
"default_for_all",
"traffic_from_the_main_load_balancers"
],
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2024-09-12 08:30:06 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geonetwork_sdilab",
"schema_version": 0,
@ -1714,7 +1581,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2023-12-13 17:51:22 +0000 UTC",
"updated": "2024-10-09 14:16:14 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -1944,28 +1811,6 @@
"module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume"
]
},
{
"index_key": "geonetwork_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"device": "/dev/vdb",
"id": "768d4148-20b5-41f0-9eb6-3ee900dc3095/5a9a044c-a344-46e4-a0b0-4b615dc680fb",
"instance_id": "768d4148-20b5-41f0-9eb6-3ee900dc3095",
"multiattach": null,
"region": "isti_area_pi_1",
"tag": null,
"timeouts": null,
"vendor_options": [],
"volume_id": "5a9a044c-a344-46e4-a0b0-4b615dc680fb"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router",
"module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume",
"module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume"
]
},
{
"index_key": "geonetwork_sdilab",
"schema_version": 0,

View File

@ -224,21 +224,21 @@ module "instance_with_data_volume" {
size = "40",
device = "/dev/vdb",
}
},
geoserver_recofi_rdb_pilot = {
name = "geoserver-recofi-rdb-pilot",
description = "Geoserver recofi-rdb-pilot instance",
flavor = module.common_variables.flavor_list.m1_large,
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql],
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [],
image_ref = module.common_variables.ubuntu_1804,
volume = {
name = "geoserver_recofi_rdb_pilot_data_volume",
size = "40",
device = "/dev/vdb",
}
}
# geoserver_recofi_rdb_pilot = {
# name = "geoserver-recofi-rdb-pilot",
# description = "Geoserver recofi-rdb-pilot instance",
# flavor = module.common_variables.flavor_list.m1_large,
# networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql],
# security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers],
# server_groups_ids = [],
# image_ref = module.common_variables.ubuntu_1804,
# volume = {
# name = "geoserver_recofi_rdb_pilot_data_volume",
# size = "40",
# device = "/dev/vdb",
# }
# }
}
}
@ -365,14 +365,14 @@ module "dns_records_create" {
ttl = 8600
type = "CNAME"
records = [local.cname_target]
},
geoserver-recofi-rdb-pilot = {
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
name = join(".", ["geoserver-recofi-rdb-pilot", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
description = "Geoserver geoserver-recofi-rdb-pilot"
ttl = 8600
type = "CNAME"
records = [local.cname_target]
}
# geoserver-recofi-rdb-pilot = {
# zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
# name = join(".", ["geoserver-recofi-rdb-pilot", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
# description = "Geoserver geoserver-recofi-rdb-pilot"
# ttl = 8600
# type = "CNAME"
# records = [local.cname_target]
# }
}
}

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 89,
"serial": 94,
"lineage": "de164650-89d7-4446-7bbf-4d84dd648c8e",
"outputs": {},
"resources": [
@ -701,31 +701,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver-recofi-rdb-pilot",
"schema_version": 0,
"attributes": {
"description": "Geoserver geoserver-recofi-rdb-pilot",
"disable_status_check": false,
"id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/7fcd3a91-2832-4c07-87ad-119fc87212db",
"name": "geoserver-recofi-rdb-pilot.cloud.d4science.org.",
"project_id": "1b45adf388934758b56d0dfdb4bfacf3",
"records": [
"main-lb.cloud.d4science.org."
],
"region": "isti_area_pi_1",
"timeouts": null,
"ttl": 8600,
"type": "CNAME",
"value_specs": null,
"zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver-sdilab",
"schema_version": 0,
@ -1205,35 +1180,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"attachment": [],
"availability_zone": "nova",
"backup_id": "",
"consistency_group_id": null,
"description": "",
"enable_online_resize": null,
"id": "3c36bd5d-34d0-4fc3-8bc4-083a4fc917b3",
"image_id": null,
"metadata": {},
"name": "geoserver_recofi_rdb_pilot_data_volume",
"region": "isti_area_pi_1",
"scheduler_hints": [],
"size": 40,
"snapshot_id": "",
"source_replica": null,
"source_vol_id": "",
"timeouts": null,
"volume_type": "cephUnencrypted"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver_sdilab",
"schema_version": 0,
@ -1382,7 +1328,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2023-12-14 17:16:20 +0000 UTC",
"updated": "2024-10-09 14:15:52 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -1461,7 +1407,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2023-12-14 17:16:31 +0000 UTC",
"updated": "2024-10-09 14:15:38 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -1856,7 +1802,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2024-05-21 15:45:48 +0000 UTC",
"updated": "2024-10-04 16:27:18 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -2014,7 +1960,7 @@
"stop_before_destroy": false,
"tags": [],
"timeouts": null,
"updated": "2024-06-25 12:30:07 +0000 UTC",
"updated": "2024-10-09 14:13:51 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
@ -2261,85 +2207,6 @@
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.44.100",
"access_ip_v6": "",
"admin_pass": null,
"all_metadata": {},
"all_tags": [],
"availability_zone": "cnr-isti-nova-a",
"availability_zone_hints": "cnr-isti-nova-a",
"block_device": [
{
"boot_index": 0,
"delete_on_termination": false,
"destination_type": "volume",
"device_type": "",
"disk_bus": "",
"guest_format": "",
"multiattach": false,
"source_type": "image",
"uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89",
"volume_size": 10,
"volume_type": ""
}
],
"config_drive": null,
"created": "2024-09-11 15:53:11 +0000 UTC",
"flavor_id": "9",
"flavor_name": "m1.large",
"force_delete": false,
"id": "a6945622-9383-47ad-a3d4-0b3f94aed36c",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "Giancarlo Panichi",
"metadata": null,
"name": "geoserver-recofi-rdb-pilot",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.44.100",
"fixed_ip_v6": "",
"mac": "fa:16:3e:cf:67:ff",
"name": "d4s-production-cloud-main",
"port": "",
"uuid": "020df98d-ae72-452a-b376-3b6dc289acac"
},
{
"access_network": false,
"fixed_ip_v4": "192.168.3.241",
"fixed_ip_v6": "",
"mac": "fa:16:3e:cd:24:f2",
"name": "postgresql-srv-net",
"port": "",
"uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8"
}
],
"network_mode": null,
"personality": [],
"power_state": "active",
"region": "isti_area_pi_1",
"scheduler_hints": [],
"security_groups": [
"default_for_all",
"traffic_from_the_main_load_balancers"
],
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2024-09-11 15:54:10 +0000 UTC",
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
"vendor_options": []
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router"
]
},
{
"index_key": "geoserver_sdilab",
"schema_version": 0,
@ -2771,28 +2638,6 @@
"module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume"
]
},
{
"index_key": "geoserver_recofi_rdb_pilot",
"schema_version": 0,
"attributes": {
"device": "/dev/vdb",
"id": "a6945622-9383-47ad-a3d4-0b3f94aed36c/3c36bd5d-34d0-4fc3-8bc4-083a4fc917b3",
"instance_id": "a6945622-9383-47ad-a3d4-0b3f94aed36c",
"multiattach": null,
"region": "isti_area_pi_1",
"tag": null,
"timeouts": null,
"vendor_options": [],
"volume_id": "3c36bd5d-34d0-4fc3-8bc4-083a4fc917b3"
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router",
"module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume",
"module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume"
]
},
{
"index_key": "geoserver_sdilab",
"schema_version": 0,

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 47,
"serial": 55,
"lineage": "2fcb0d7a-4633-fecf-ab9f-0551f8d16805",
"outputs": {},
"resources": [
@ -403,7 +403,13 @@
{
"schema_version": 0,
"attributes": {
"attachment": [],
"attachment": [
{
"device": "/dev/vdb",
"id": "53a2bdb8-4c88-428c-a0f6-94dadecee31f",
"instance_id": "4f1c4091-06de-4dc0-bd3f-556012f98fde"
}
],
"availability_zone": "nova",
"backup_id": "",
"consistency_group_id": null,
@ -436,7 +442,13 @@
{
"schema_version": 0,
"attributes": {
"attachment": [],
"attachment": [
{
"device": "/dev/vdc",
"id": "5802b700-6392-4fd6-acc8-2892bab23bd9",
"instance_id": "4f1c4091-06de-4dc0-bd3f-556012f98fde"
}
],
"availability_zone": "nova",
"backup_id": "",
"consistency_group_id": null,
@ -475,7 +487,7 @@
"consistency_group_id": null,
"description": "",
"enable_online_resize": null,
"id": "b645fdc0-1494-429a-8e9c-4dfc48f5faf9",
"id": "7975f939-2c0f-41ed-b723-1971c10a45b2",
"image_id": null,
"metadata": {},
"name": "storagehub4_data_volume",
@ -508,7 +520,7 @@
"consistency_group_id": null,
"description": "",
"enable_online_resize": null,
"id": "7c4a9ea8-c490-430c-b0dd-b2c1178c01e0",
"id": "08fc749c-f5b6-4bed-9ee1-55f517e2aba3",
"image_id": null,
"metadata": {},
"name": "storagehub4_temp_volume",
@ -914,7 +926,7 @@
"traffic_from_the_main_load_balancers"
],
"stop_before_destroy": false,
"tags": null,
"tags": [],
"timeouts": null,
"updated": "2024-11-07 16:44:43 +0000 UTC",
"user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608",
@ -965,7 +977,7 @@
"flavor_id": null,
"flavor_name": "m2.large",
"force_delete": false,
"id": "2bb4c4fb-5302-4fcc-951f-dba8438c4ec0",
"id": "d26f8041-9156-4ddd-9de1-7003fc7cddf4",
"image_id": null,
"image_name": null,
"key_pair": "Giancarlo Panichi",