From 83b57ee8cd9cabfba529dffe0da45f67469945b0 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 7 Nov 2024 17:51:30 +0100 Subject: [PATCH] Added StorageHub3 in production --- openstack-tf/d4s-production/ariadne/main.tf | 6 +- .../d4s-production/ariadne/terraform.tfstate | 1167 +---------------- .../d4s-production/storagehub/main.tf | 152 ++- .../storagehub/terraform.tfstate | 423 +++++- 4 files changed, 577 insertions(+), 1171 deletions(-) diff --git a/openstack-tf/d4s-production/ariadne/main.tf b/openstack-tf/d4s-production/ariadne/main.tf index d8a6978..85719ec 100644 --- a/openstack-tf/d4s-production/ariadne/main.tf +++ b/openstack-tf/d4s-production/ariadne/main.tf @@ -1,10 +1,14 @@ + + Queste risorse verranno allocate quando saremo pronti alla migrazione + + # Define required providers terraform { required_version = ">= 0.14.0" required_providers { openstack = { source = "terraform-provider-openstack/openstack" - version = "~> 1.53.0" + version = ">= 1.54.0" } } } diff --git a/openstack-tf/d4s-production/ariadne/terraform.tfstate b/openstack-tf/d4s-production/ariadne/terraform.tfstate index e5af59f..bc797c9 100644 --- a/openstack-tf/d4s-production/ariadne/terraform.tfstate +++ b/openstack-tf/d4s-production/ariadne/terraform.tfstate @@ -1,1172 +1,9 @@ { "version": 4, "terraform_version": "1.6.4", - "serial": 18, + "serial": 36, "lineage": "96b4c93b-a422-59e9-c895-c67a8a545404", "outputs": {}, - "resources": [ - { - "mode": "data", - "type": "terraform_remote_state", - "name": "privnet_dns_router", - "provider": "provider[\"terraform.io/builtin/terraform\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "backend": "local", - "config": { - "value": { - "path": "../project-setup/terraform.tfstate" - }, - "type": [ - "object", - { - "path": "string" - } - ] - }, - "defaults": null, - "outputs": { - "value": { - "almalinux_9": { - "name": "AlmaLinux-9.0-20220718", - "uuid": "541650fc-dd19-4f38-bb1d-7333ed9dd688" - }, - "availability_zone_no_gpu_name": "cnr-isti-nova-a", - "availability_zone_with_gpu_name": "cnr-isti-nova-gpu-a", - "availability_zones_names": { - "availability_zone_no_gpu": "cnr-isti-nova-a", - "availability_zone_with_gpu": "cnr-isti-nova-gpu-a" - }, - "basic_services_ip": { - "ca": "10.1.40.4", - "ca_cidr": "10.1.40.4/32", - "haproxy_l7_1": "10.1.40.11", - "haproxy_l7_1_cidr": "10.1.40.11/32", - "haproxy_l7_2": "10.1.40.12", - "haproxy_l7_2_cidr": "10.1.40.12/32", - "octavia_main": "10.1.40.20", - "octavia_main_cidr": "10.1.40.20/32", - "prometheus": "10.1.40.10", - "prometheus_cidr": "10.1.40.10/32", - "ssh_jump": "10.1.40.5", - "ssh_jump_cidr": "10.1.40.5/32" - }, - "centos_7": { - "name": "CentOS-7", - "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" - }, - "default_security_group_name": "default_for_all", - "dns_zone": { - "description": "DNS primary zone for the d4s-production-cloud project", - "email": "postmaster@isti.cnr.it", - "ttl": "8600", - "zone_name": "cloud.d4science.org." - }, - "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", - "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", - "external_gateway_ip": [ - { - "ip_address": "146.48.31.57", - "subnet_id": "57f87509-4016-46fb-b8c3-25fca7f72ccb" - } - ], - "external_network": { - "id": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", - "name": "external-network" - }, - "external_network_id": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", - "external_router": { - "description": "D4Science Production main router", - "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", - "name": "d4s-production-cloud-external-router" - }, - "flavor_list": { - "c1_large": "c1.large", - "c1_medium": "c1.medium", - "c1_small": "c1.small", - "c2_large": "c2.large", - "m1_large": "m1.large", - "m1_medium": "m1.medium", - "m1_xlarge": "m1.xlarge", - "m1_xxl": "m1.xxl", - "m2_large": "m2.large", - "m2_medium": "m2.medium", - "m2_small": "m2.small", - "m3_large": "m3.large" - }, - "floating_ip_pools": { - "main_public_ip_pool": "external-network" - }, - "haproxy_l7_data": { - "flavor": "m1.medium", - "haproxy_1": "haproxy-l7-1", - "haproxy_2": "haproxy-l7-2", - "name": "main-haproxy-l7", - "vm_count": "2" - }, - "internal_ca_data": { - "flavor": "m1.small", - "name": "ca" - }, - "main_haproxy_l7_ip": [ - "10.1.40.11", - "10.1.40.12" - ], - "main_private_network": { - "description": "D4Science Production private network (use this as the main network)", - "name": "d4s-production-cloud-main" - }, - "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", - "main_private_subnet": { - "allocation_end": "10.1.47.254", - "allocation_start": "10.1.41.100", - "cidr": "10.1.40.0/21", - "description": "D4Science Production main private subnet", - "gateway_ip": "10.1.40.1", - "name": "d4s-production-cloud-main-subnet" - }, - "main_region": "isti_area_pi_1", - "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", - "mtu_size": 8942, - "networks_list": { - "cassandra": "cassandra-net", - "orientdb": "orientdb-net", - "orientdb_se": "orientdb-se-net", - "shared_postgresql": "postgresql-srv-net", - "swarm": "swarm-nfs-net", - "timescaledb": "timescaledb-net" - }, - "networks_with_d4s_services": { - "garr_ct1_net": "90.147.166.0/23", - "garr_na_net": "90.147.152.0/24", - "garr_pa1_net": "90.147.188.0/23", - "infrascience_net": "146.48.122.0/23", - "isti_net": "146.48.80.0/21", - "s2i2s_net": "146.48.28.0/22" - }, - "nfs_share_no_ingress_secgroup_id": "167e4897-f776-4cbd-986f-77313aa68af2", - "octavia_information": { - "main_lb_description": "Main L4 load balancer for the D4Science production", - "main_lb_hostname": "main-lb", - "main_lb_name": "d4s-production-cloud-l4-load-balancer", - "octavia_flavor": "octavia_amphora-mvcpu-ha", - "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", - "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" - }, - "os_project_data": { - "id": "1b45adf388934758b56d0dfdb4bfacf3" - }, - "policy_list": { - "affinity": "affinity", - "anti_affinity": "anti-affinity", - "soft_affinity": "soft-affinity", - "soft_anti_affinity": "soft-anti-affinity" - }, - "prometheus_server_data": { - "flavor": "m1.medium", - "name": "prometheus", - "public_grafana_server_cidr": "146.48.28.103/32", - "vol_data_device": "/dev/vdb", - "vol_data_name": "prometheus-data", - "vol_data_size": "100" - }, - "resolvers_ip": [ - "146.48.29.97", - "146.48.29.98", - "146.48.29.99" - ], - "resource_registry_addresses": {}, - "security_group_list": { - "acaland": "acaland's dev machine", - "access_to_orientdb": "access_to_orientdb", - "access_to_orientdb_se": "access_to_orientdb_se", - "access_to_the_timescaledb_service": "access_to_the_timescaledb_service", - "cassandra": "Cassandra", - "dataminer-publish": "dataminer-publish", - "debugging_from_jump_node": "debugging_from_jump_node", - "default": "default", - "docker_swarm": "Docker Swarm", - "docker_swarm_NFS": "Docker Swarm NFS", - "haproxy": "traffic_from_main_lb_to_haproxy_l7", - "http_and_https_from_the_load_balancers": "traffic_from_the_main_load_balancers", - "limited_HTTPS_access": "restricted_web_service", - "limited_SSH_access": "Limited SSH access", - "mongo": "mongo", - "nfs_share_no_ingress": "nfs_share_no_ingress", - "orientdb_internal_docker_traffic": "orientdb_internal_docker_traffic", - "postgreSQL": "PostgreSQL service", - "public_HTTPS": "Public HTTPS" - }, - "shared_postgresql_server_data": { - "allocation_pool_end": "192.168.3.254", - "allocation_pool_start": "192.168.0.100", - "flavor": "m1.medium", - "name": "shared-postgresql-server", - "network_cidr": "192.168.0.0/22", - "network_description": "Network used to communicate with the shared postgresql service", - "network_name": "postgresql-srv-net", - "server_cidr": "192.168.0.5/22", - "server_ip": "192.168.0.5", - "vol_data_device": "/dev/vdb", - "vol_data_name": "shared-postgresql-data", - "vol_data_size": "100" - }, - "smartexecutor_addresses": {}, - "ssh_jump_proxy": { - "flavor": "m2.small", - "name": "ssh-jump-proxy" - }, - "ssh_sources": { - "d4s_vpn_1_cidr": "146.48.122.27/32", - "d4s_vpn_2_cidr": "146.48.122.49/32", - "infrascience_net_cidr": "146.48.122.0/23", - "s2i2s_vpn_1_cidr": "146.48.28.10/32", - "s2i2s_vpn_2_cidr": "146.48.28.11/32", - "shell_d4s_cidr": "146.48.122.95/32" - }, - "storage_nfs_network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", - "storage_nfs_subnet_id": "6ff0f9e8-0e74-4cc3-a268-7ed4af435696", - "ubuntu1804_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", - "ubuntu2204_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", - "ubuntu_1804": { - "name": "Ubuntu-Bionic-18.04", - "user_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", - "uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" - }, - "ubuntu_2204": { - "name": "Ubuntu-Jammy-22.04", - "user_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", - "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627" - } - }, - "type": [ - "object", - { - "almalinux_9": [ - "map", - "string" - ], - "availability_zone_no_gpu_name": "string", - "availability_zone_with_gpu_name": "string", - "availability_zones_names": [ - "map", - "string" - ], - "basic_services_ip": [ - "map", - "string" - ], - "centos_7": [ - "map", - "string" - ], - "default_security_group_name": "string", - "dns_zone": [ - "map", - "string" - ], - "dns_zone_id": "string", - "el7_data_file": "string", - "external_gateway_ip": [ - "list", - [ - "object", - { - "ip_address": "string", - "subnet_id": "string" - } - ] - ], - "external_network": [ - "map", - "string" - ], - "external_network_id": "string", - "external_router": [ - "map", - "string" - ], - "flavor_list": [ - "map", - "string" - ], - "floating_ip_pools": [ - "map", - "string" - ], - "haproxy_l7_data": [ - "map", - "string" - ], - "internal_ca_data": [ - "map", - "string" - ], - "main_haproxy_l7_ip": [ - "list", - "string" - ], - "main_private_network": [ - "map", - "string" - ], - "main_private_network_id": "string", - "main_private_subnet": [ - "map", - "string" - ], - "main_region": "string", - "main_subnet_network_id": "string", - "mtu_size": "number", - "networks_list": [ - "map", - "string" - ], - "networks_with_d4s_services": [ - "map", - "string" - ], - "nfs_share_no_ingress_secgroup_id": "string", - "octavia_information": [ - "map", - "string" - ], - "os_project_data": [ - "map", - "string" - ], - "policy_list": [ - "map", - "string" - ], - "prometheus_server_data": [ - "map", - "string" - ], - "resolvers_ip": [ - "list", - "string" - ], - "resource_registry_addresses": [ - "map", - "string" - ], - "security_group_list": [ - "map", - "string" - ], - "shared_postgresql_server_data": [ - "map", - "string" - ], - "smartexecutor_addresses": [ - "map", - "string" - ], - "ssh_jump_proxy": [ - "map", - "string" - ], - "ssh_sources": [ - "map", - "string" - ], - "storage_nfs_network_id": "string", - "storage_nfs_subnet_id": "string", - "ubuntu1804_data_file": "string", - "ubuntu2204_data_file": "string", - "ubuntu_1804": [ - "map", - "string" - ], - "ubuntu_2204": [ - "map", - "string" - ] - } - ] - }, - "workspace": null - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "managed", - "type": "openstack_blockstorage_volume_v3", - "name": "graphdb_ariadne_data_volume", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "attachment": [ - { - "device": "/dev/vdb", - "id": "622bee20-67a1-49e0-9e1b-3fef0f48db81", - "instance_id": "b19efc8c-bf76-4b69-918b-4f610b4b8346" - } - ], - "availability_zone": "nova", - "consistency_group_id": null, - "description": "", - "enable_online_resize": null, - "id": "622bee20-67a1-49e0-9e1b-3fef0f48db81", - "image_id": null, - "metadata": {}, - "multiattach": null, - "name": "graphdb_ariadne_data_volume", - "region": "isti_area_pi_1", - "scheduler_hints": [], - "size": 200, - "snapshot_id": "", - "source_replica": null, - "source_vol_id": "", - "timeouts": null, - "volume_type": "cephUnencrypted" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" - } - ] - }, - { - "mode": "managed", - "type": "openstack_blockstorage_volume_v3", - "name": "graphdb_test_ariadne_data_volume", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "attachment": [ - { - "device": "/dev/vdb", - "id": "ce034c49-5531-481f-8550-19db04bf1bf9", - "instance_id": "7b34891c-92ab-4eb9-8b2a-0799cd968524" - } - ], - "availability_zone": "nova", - "consistency_group_id": null, - "description": "", - "enable_online_resize": null, - "id": "ce034c49-5531-481f-8550-19db04bf1bf9", - "image_id": null, - "metadata": {}, - "multiattach": null, - "name": "graphdb_test_ariadne_data_volume", - "region": "isti_area_pi_1", - "scheduler_hints": [], - "size": 100, - "snapshot_id": "", - "source_replica": null, - "source_vol_id": "", - "timeouts": null, - "volume_type": "cephUnencrypted" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "aggregator_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.43.139", - "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": 30, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 16:13:58 +0000 UTC", - "flavor_id": "4", - "flavor_name": "m1.medium", - "floating_ip": null, - "force_delete": false, - "id": "2640dee8-172b-484e-9d7c-40a745abf901", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "aggregator-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.43.139", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:4e:92:fc", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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-02-26 16:15:02 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "graphdb_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.41.229", - "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": 20, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 15:19:16 +0000 UTC", - "flavor_id": "17", - "flavor_name": "d1.large", - "floating_ip": null, - "force_delete": false, - "id": "b19efc8c-bf76-4b69-918b-4f610b4b8346", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "graphdb-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.41.229", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:68:47:59", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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": [], - "timeouts": null, - "updated": "2024-02-26 15:20:01 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "graphdb_test_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.42.78", - "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": 20, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 15:19:15 +0000 UTC", - "flavor_id": "17", - "flavor_name": "d1.large", - "floating_ip": null, - "force_delete": false, - "id": "7b34891c-92ab-4eb9-8b2a-0799cd968524", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "graphdb-test-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.42.78", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:f6:a1:fa", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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": [], - "timeouts": null, - "updated": "2024-02-26 15:19:58 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "opensearch_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.42.54", - "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": 40, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 16:13:59 +0000 UTC", - "flavor_id": "15", - "flavor_name": "m2.medium", - "floating_ip": null, - "force_delete": false, - "id": "998a7ad0-98b1-46ef-a6ea-80792493d315", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "opensearch-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.42.54", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:66:a0:26", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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-02-26 16:15:01 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "opensearch_test_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.42.210", - "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": 30, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 16:13:58 +0000 UTC", - "flavor_id": "10", - "flavor_name": "m2.small", - "floating_ip": null, - "force_delete": false, - "id": "55394a06-3ae2-4a08-a548-bbf3e1e0eb9b", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "opensearch-test-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.42.210", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:00:9d:1c", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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-02-26 16:14:57 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_instance_v2", - "name": "solr_ariadne", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_ip_v4": "10.1.45.140", - "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": 100, - "volume_type": "" - } - ], - "config_drive": null, - "created": "2024-02-26 16:13:58 +0000 UTC", - "flavor_id": "9", - "flavor_name": "m1.large", - "floating_ip": null, - "force_delete": false, - "id": "2b8592a6-2334-4056-8fdf-b79a3c84bb0c", - "image_id": "Attempt to boot from volume - no image supplied", - "image_name": null, - "key_pair": "Giancarlo Panichi", - "metadata": null, - "name": "solr-ariadne", - "network": [ - { - "access_network": false, - "fixed_ip_v4": "10.1.45.140", - "fixed_ip_v6": "", - "floating_ip": "", - "mac": "fa:16:3e:fc:0f:6e", - "name": "d4s-production-cloud-main", - "port": "", - "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" - } - ], - "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-02-26 16:14:50 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", - "vendor_options": [], - "volume": [] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_volume_attach_v2", - "name": "graphdb_ariadne_attach", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "device": "/dev/vdb", - "id": "b19efc8c-bf76-4b69-918b-4f610b4b8346/622bee20-67a1-49e0-9e1b-3fef0f48db81", - "instance_id": "b19efc8c-bf76-4b69-918b-4f610b4b8346", - "multiattach": null, - "region": "isti_area_pi_1", - "timeouts": null, - "vendor_options": [], - "volume_id": "622bee20-67a1-49e0-9e1b-3fef0f48db81" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router", - "openstack_blockstorage_volume_v3.graphdb_ariadne_data_volume", - "openstack_compute_instance_v2.graphdb_ariadne" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_compute_volume_attach_v2", - "name": "graphdb_test_ariadne_attach", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "device": "/dev/vdb", - "id": "7b34891c-92ab-4eb9-8b2a-0799cd968524/ce034c49-5531-481f-8550-19db04bf1bf9", - "instance_id": "7b34891c-92ab-4eb9-8b2a-0799cd968524", - "multiattach": null, - "region": "isti_area_pi_1", - "timeouts": null, - "vendor_options": [], - "volume_id": "ce034c49-5531-481f-8550-19db04bf1bf9" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", - "dependencies": [ - "data.terraform_remote_state.privnet_dns_router", - "openstack_blockstorage_volume_v3.graphdb_test_ariadne_data_volume", - "openstack_compute_instance_v2.graphdb_test_ariadne" - ] - } - ] - }, - { - "module": "module.dns_records_create", - "mode": "managed", - "type": "openstack_dns_recordset_v2", - "name": "add_dns_recordset", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "index_key": "aggregator-ariadne", - "schema_version": 0, - "attributes": { - "description": "Aggregator aggregator-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/d17d928b-e66a-4643-ae28-a2733c3a6bb6", - "name": "aggregator-ariadne.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": "graphdb-ariadne", - "schema_version": 0, - "attributes": { - "description": "Graphdb graphdb-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/4d63e122-23c2-4ec3-8fcc-d773b955bca1", - "name": "graphdb-ariadne.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": "graphdb-test-ariadne", - "schema_version": 0, - "attributes": { - "description": "Graphdb graphdb-test-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/19172044-64d6-4abc-a1be-61322c068fec", - "name": "graphdb-test-ariadne.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": "opensearch-ariadne", - "schema_version": 0, - "attributes": { - "description": "OpenSearch opensearch-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/a5bd20be-874f-431b-973e-02aca6cda76e", - "name": "opensearch-ariadne.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": "opensearch-test-ariadne", - "schema_version": 0, - "attributes": { - "description": "OpenSearch opensearch-test-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/6bb1335a-0edc-444d-bf2b-b8c034a32418", - "name": "opensearch-test-ariadne.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": "solr-ariadne", - "schema_version": 0, - "attributes": { - "description": "Solr solr-ariadne", - "disable_status_check": false, - "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/973f9e7d-eb84-48b1-a991-c96ab296c49a", - "name": "solr-ariadne.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" - ] - } - ] - } - ], + "resources": [], "check_results": null } diff --git a/openstack-tf/d4s-production/storagehub/main.tf b/openstack-tf/d4s-production/storagehub/main.tf index dcb8260..88de3a1 100644 --- a/openstack-tf/d4s-production/storagehub/main.tf +++ b/openstack-tf/d4s-production/storagehub/main.tf @@ -41,7 +41,31 @@ resource "openstack_blockstorage_volume_v3" "storagehub_prod_temp_volume" { size = "80" } -# Instances +resource "openstack_blockstorage_volume_v3" "storagehub3_prod_data_volume" { + name = "storagehub3_data_volume" + size = "120" +} + +resource "openstack_blockstorage_volume_v3" "storagehub4_prod_data_volume" { + name = "storagehub4_data_volume" + size = "120" +} + +resource "openstack_blockstorage_volume_v3" "storagehub3_prod_temp_volume" { + name = "storagehub3_temp_volume" + size = "80" +} + +resource "openstack_blockstorage_volume_v3" "storagehub4_prod_temp_volume" { + name = "storagehub4_temp_volume" + size = "80" +} + + + + + +# Instance 1 resource "openstack_compute_instance_v2" "storagehub1_prod" { name = "storagehub1" availability_zone_hints = module.common_variables.availability_zone_no_gpu_name @@ -78,6 +102,7 @@ resource "openstack_compute_instance_v2" "storagehub1_prod" { } } +#Instance 2 resource "openstack_compute_instance_v2" "storagehub2_prod" { name = "storagehub2" availability_zone_hints = module.common_variables.availability_zone_no_gpu_name @@ -114,8 +139,85 @@ resource "openstack_compute_instance_v2" "storagehub2_prod" { } } +# Instance 3 +resource "openstack_compute_instance_v2" "storagehub3_prod" { + name = "storagehub3" + availability_zone_hints = module.common_variables.availability_zone_no_gpu_name + flavor_name = "m2.large" + key_pair = module.ssh_settings.ssh_key_name + 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] + block_device { + uuid = module.common_variables.ubuntu_2404.uuid + source_type = "image" + volume_size = 40 + boot_index = 0 + destination_type = "volume" + delete_on_termination = false + } + + # Creates the networks according to input networks + dynamic "network" { + for_each = toset([data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql]) + content { + name = network.value + } + } + # user_data script used + user_data = file("${module.common_variables.ubuntu_2404.user_data_file}") + # Do not replace the instance when the ssh key changes + lifecycle { + ignore_changes = [ + # Ignore changes to tags, e.g. because a management agent + # updates these based on some ruleset managed elsewhere. + key_pair, user_data, network + ] + } +} + + +# Instance 4 +resource "openstack_compute_instance_v2" "storagehub4_prod" { + name = "storagehub4" + availability_zone_hints = module.common_variables.availability_zone_no_gpu_name + flavor_name = "m2.large" + key_pair = module.ssh_settings.ssh_key_name + 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] + block_device { + uuid = module.common_variables.ubuntu_2404.uuid + source_type = "image" + volume_size = 40 + boot_index = 0 + destination_type = "volume" + delete_on_termination = false + } + + # Creates the networks according to input networks + dynamic "network" { + for_each = toset([data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql]) + content { + name = network.value + } + } + + + # user_data script used + user_data = file("${module.common_variables.ubuntu_2404.user_data_file}") + # Do not replace the instance when the ssh key changes + lifecycle { + ignore_changes = [ + # Ignore changes to tags, e.g. because a management agent + # updates these based on some ruleset managed elsewhere. + key_pair, user_data, network + ] + } +} + + + + +# Attach 1 resource "openstack_compute_volume_attach_v2" "storagehub1_attach_1" { instance_id = openstack_compute_instance_v2.storagehub1_prod.id volume_id = openstack_blockstorage_volume_v3.storagehub_prod_data_volume.0.id @@ -130,6 +232,7 @@ resource "openstack_compute_volume_attach_v2" "storagehub1_attach_2" { depends_on = [openstack_compute_volume_attach_v2.storagehub1_attach_1] } +# Attach 2 resource "openstack_compute_volume_attach_v2" "storagehub2_attach_1" { instance_id = openstack_compute_instance_v2.storagehub2_prod.id volume_id = openstack_blockstorage_volume_v3.storagehub_prod_data_volume.1.id @@ -144,6 +247,37 @@ resource "openstack_compute_volume_attach_v2" "storagehub2_attach_2" { depends_on = [openstack_compute_volume_attach_v2.storagehub2_attach_1] } +# Attach 3 +resource "openstack_compute_volume_attach_v2" "storagehub3_attach_1" { + instance_id = openstack_compute_instance_v2.storagehub3_prod.id + volume_id = openstack_blockstorage_volume_v3.storagehub3_prod_data_volume.id + device = "/dev/vdb" +} + +resource "openstack_compute_volume_attach_v2" "storagehub3_attach_2" { + instance_id = openstack_compute_instance_v2.storagehub3_prod.id + volume_id = openstack_blockstorage_volume_v3.storagehub3_prod_temp_volume.id + device = "/dev/vdc" + + depends_on = [openstack_compute_volume_attach_v2.storagehub3_attach_1] +} + +# Attach 4 +resource "openstack_compute_volume_attach_v2" "storagehub4_attach_1" { + instance_id = openstack_compute_instance_v2.storagehub4_prod.id + volume_id = openstack_blockstorage_volume_v3.storagehub4_prod_data_volume.id + device = "/dev/vdb" +} + +resource "openstack_compute_volume_attach_v2" "storagehub4_attach_2" { + instance_id = openstack_compute_instance_v2.storagehub4_prod.id + volume_id = openstack_blockstorage_volume_v3.storagehub4_prod_temp_volume.id + device = "/dev/vdc" + + depends_on = [openstack_compute_volume_attach_v2.storagehub4_attach_1] +} + + locals { @@ -173,6 +307,22 @@ module "dns_records_create" { type = "CNAME" records = [local.cname_target] }, + storagehub3 = { + zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + name = join(".", ["storagehub3", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]) + description = "StorageHub3" + ttl = 8600 + type = "CNAME" + records = [local.cname_target] + }, + storagehub4 = { + zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + name = join(".", ["storagehub4", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]) + description = "StorageHub4" + ttl = 8600 + type = "CNAME" + records = [local.cname_target] + }, workspace_repo = { zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id name = join(".", ["workspace-repository", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]) diff --git a/openstack-tf/d4s-production/storagehub/terraform.tfstate b/openstack-tf/d4s-production/storagehub/terraform.tfstate index 922a066..8de1262 100644 --- a/openstack-tf/d4s-production/storagehub/terraform.tfstate +++ b/openstack-tf/d4s-production/storagehub/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.7.5", - "serial": 22, + "terraform_version": "1.6.4", + "serial": 47, "lineage": "2fcb0d7a-4633-fecf-ab9f-0551f8d16805", "outputs": {}, "resources": [ @@ -394,6 +394,138 @@ } ] }, + { + "mode": "managed", + "type": "openstack_blockstorage_volume_v3", + "name": "storagehub3_prod_data_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "backup_id": "", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "53a2bdb8-4c88-428c-a0f6-94dadecee31f", + "image_id": null, + "metadata": {}, + "name": "storagehub3_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 120, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "openstack_blockstorage_volume_v3", + "name": "storagehub3_prod_temp_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "backup_id": "", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "5802b700-6392-4fd6-acc8-2892bab23bd9", + "image_id": null, + "metadata": {}, + "name": "storagehub3_temp_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "openstack_blockstorage_volume_v3", + "name": "storagehub4_prod_data_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "backup_id": "", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "b645fdc0-1494-429a-8e9c-4dfc48f5faf9", + "image_id": null, + "metadata": {}, + "name": "storagehub4_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 120, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" + } + ] + }, + { + "mode": "managed", + "type": "openstack_blockstorage_volume_v3", + "name": "storagehub4_prod_temp_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "backup_id": "", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "7c4a9ea8-c490-430c-b0dd-b2c1178c01e0", + "image_id": null, + "metadata": {}, + "name": "storagehub4_temp_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=" + } + ] + }, { "mode": "managed", "type": "openstack_blockstorage_volume_v3", @@ -657,7 +789,7 @@ ], "config_drive": null, "created": "2024-02-06 16:25:57 +0000 UTC", - "flavor_id": "14", + "flavor_id": "20", "flavor_name": "m2.large", "force_delete": false, "id": "3aa1326a-773a-4f19-8fdb-b4c691d6b251", @@ -698,7 +830,7 @@ "stop_before_destroy": false, "tags": [], "timeouts": null, - "updated": "2024-06-26 16:05:05 +0000 UTC", + "updated": "2024-06-26 17:10:06 +0000 UTC", "user_data": "", "vendor_options": [] }, @@ -710,6 +842,179 @@ } ] }, + { + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "storagehub3_prod", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.186", + "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": "fc3f705d-3cf5-4866-8ef6-ff6e2cdd4075", + "volume_size": 40, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2024-11-07 16:43:21 +0000 UTC", + "flavor_id": "20", + "flavor_name": "m2.large", + "force_delete": false, + "id": "4f1c4091-06de-4dc0-bd3f-556012f98fde", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "storagehub3", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.186", + "fixed_ip_v6": "", + "mac": "fa:16:3e:7f:97:cb", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.2.119", + "fixed_ip_v6": "", + "mac": "fa:16:3e:ac:4f:9f", + "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-11-07 16:44:43 +0000 UTC", + "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "vendor_options": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, + { + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "storagehub4_prod", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "status": "tainted", + "schema_version": 0, + "attributes": { + "access_ip_v4": null, + "access_ip_v6": null, + "admin_pass": null, + "all_metadata": null, + "all_tags": [], + "availability_zone": null, + "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": "fc3f705d-3cf5-4866-8ef6-ff6e2cdd4075", + "volume_size": 40, + "volume_type": "" + } + ], + "config_drive": null, + "created": null, + "flavor_id": null, + "flavor_name": "m2.large", + "force_delete": false, + "id": "2bb4c4fb-5302-4fcc-951f-dba8438c4ec0", + "image_id": null, + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "storagehub4", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "", + "fixed_ip_v6": "", + "mac": "", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "" + }, + { + "access_network": false, + "fixed_ip_v4": "", + "fixed_ip_v6": "", + "mac": "", + "name": "postgresql-srv-net", + "port": "", + "uuid": "" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": null, + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": null, + "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "vendor_options": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, { "mode": "managed", "type": "openstack_compute_volume_attach_v2", @@ -830,6 +1135,66 @@ } ] }, + { + "mode": "managed", + "type": "openstack_compute_volume_attach_v2", + "name": "storagehub3_attach_1", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "4f1c4091-06de-4dc0-bd3f-556012f98fde/53a2bdb8-4c88-428c-a0f6-94dadecee31f", + "instance_id": "4f1c4091-06de-4dc0-bd3f-556012f98fde", + "multiattach": null, + "region": "isti_area_pi_1", + "tag": null, + "timeouts": null, + "vendor_options": [], + "volume_id": "53a2bdb8-4c88-428c-a0f6-94dadecee31f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_blockstorage_volume_v3.storagehub3_prod_data_volume", + "openstack_compute_instance_v2.storagehub3_prod" + ] + } + ] + }, + { + "mode": "managed", + "type": "openstack_compute_volume_attach_v2", + "name": "storagehub3_attach_2", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "device": "/dev/vdc", + "id": "4f1c4091-06de-4dc0-bd3f-556012f98fde/5802b700-6392-4fd6-acc8-2892bab23bd9", + "instance_id": "4f1c4091-06de-4dc0-bd3f-556012f98fde", + "multiattach": null, + "region": "isti_area_pi_1", + "tag": null, + "timeouts": null, + "vendor_options": [], + "volume_id": "5802b700-6392-4fd6-acc8-2892bab23bd9" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_blockstorage_volume_v3.storagehub3_prod_data_volume", + "openstack_blockstorage_volume_v3.storagehub3_prod_temp_volume", + "openstack_compute_instance_v2.storagehub3_prod", + "openstack_compute_volume_attach_v2.storagehub3_attach_1" + ] + } + ] + }, { "module": "module.dns_records_create", "mode": "managed", @@ -887,6 +1252,56 @@ "data.terraform_remote_state.privnet_dns_router" ] }, + { + "index_key": "storagehub3", + "schema_version": 0, + "attributes": { + "description": "StorageHub3", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/df73914d-53ad-48e9-818d-1f52686d7732", + "name": "storagehub3.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": "storagehub4", + "schema_version": 0, + "attributes": { + "description": "StorageHub4", + "disable_status_check": false, + "id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/d3ee3004-39a4-47fa-a24c-9fdc58d58836", + "name": "storagehub4.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": "workspace_repo", "schema_version": 0,