Reprovisioned resource-registry

This commit is contained in:
Luca Frosini 2023-12-07 17:46:50 +01:00
parent 0ef3eab7a3
commit 3164c2a767
2 changed files with 286 additions and 4 deletions

View File

@ -26,10 +26,12 @@ module "common_variables" {
#
# Creates the server group "resource-registry"
# Even in dev because this service is crucial the server group is
# created with anti-affinity policy
#
resource "openstack_compute_servergroup_v2" "resource_registry_server_group" {
name = "resource-registry"
policies = [module.common_variables.policy_list.soft_anti_affinity]
policies = [module.common_variables.policy_list.anti_affinity]
}
module "instance_without_data_volume" {
@ -40,16 +42,16 @@ module "instance_without_data_volume" {
name = "resource-registry-1",
description = "This instance serves resource-registry service",
flavor = module.common_variables.flavor_list.m1_medium,
networks = ["d4s-dev-cloud-main", "orientdb-net"],
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
image_ref = module.common_variables.ubuntu_1804
},
resource_registry_2 = {
name = "resource-registry-1",
name = "resource-registry-2",
description = "This instance serves resource-registry service",
flavor = "m1.medium",
networks = ["d4s-dev-cloud-main", "orientdb-net"],
networks = ["d4s-dev-cloud-main", module.common_variables.networks_list.orientdb],
security_groups = [module.common_variables.security_group_list.default, module.common_variables.security_group_list.http_and_https_from_the_load_balancers],
server_groups_ids = [openstack_compute_servergroup_v2.resource_registry_server_group.id],
image_ref = module.common_variables.ubuntu_1804

View File

@ -0,0 +1,280 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 4,
"lineage": "7e175cf3-fbf0-a8b1-e21a-08bb379ff0f8",
"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": {
"dns_zone_id": "cbae638a-9d99-44aa-946c-0f5ffb7fc488",
"external_gateway_ip": "146.48.31.109",
"main_private_network_id": "e0af5eba-f24a-4d0d-8184-bc654b980c4a",
"main_subnet_network_id": "2aa977f2-80b4-447c-a6b0-dfa06bf68751"
},
"type": [
"object",
{
"dns_zone_id": "string",
"external_gateway_ip": "string",
"main_private_network_id": "string",
"main_subnet_network_id": "string"
}
]
},
"workspace": null
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "openstack_compute_servergroup_v2",
"name": "resource_registry_server_group",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "b821c2b5-623c-40c9-826f-625cb559e676",
"members": [],
"name": "resource-registry",
"policies": [
"anti-affinity"
],
"region": "isti_area_pi_1",
"rules": [
{
"max_server_per_host": 0
}
],
"value_specs": null
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.instance_without_data_volume",
"mode": "managed",
"type": "openstack_compute_instance_v2",
"name": "smartgears_service",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"index_key": "resource_registry_1",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.29.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": "2023-12-07 14:00:53 +0000 UTC",
"flavor_id": "4",
"flavor_name": "m1.medium",
"floating_ip": null,
"force_delete": false,
"id": "51dbfad8-1255-4339-a15d-05a185faea00",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "pc-frosini_key",
"metadata": null,
"name": "resource-registry-1",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.29.84",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:0e:48:d0",
"name": "d4s-dev-cloud-main",
"port": "",
"uuid": "e0af5eba-f24a-4d0d-8184-bc654b980c4a"
},
{
"access_network": false,
"fixed_ip_v4": "192.168.10.159",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:b3:21:a3",
"name": "orientdb-net",
"port": "",
"uuid": "64fbde08-3759-43ed-b754-998882a3dcd4"
}
],
"network_mode": null,
"personality": [],
"power_state": "active",
"region": "isti_area_pi_1",
"scheduler_hints": [
{
"additional_properties": null,
"build_near_host_ip": "",
"different_cell": [],
"different_host": [],
"group": "b821c2b5-623c-40c9-826f-625cb559e676",
"query": [],
"same_host": [],
"target_cell": ""
}
],
"security_groups": [
"default",
"http and https from the load balancers"
],
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2023-12-07 14:01:29 +0000 UTC",
"user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c",
"vendor_options": [],
"volume": []
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"openstack_compute_servergroup_v2.resource_registry_server_group"
]
},
{
"index_key": "resource_registry_2",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.31.202",
"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": "2023-12-07 14:00:53 +0000 UTC",
"flavor_id": "4",
"flavor_name": "m1.medium",
"floating_ip": null,
"force_delete": false,
"id": "8f887e7a-d222-4a56-b923-eb2359457592",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "pc-frosini_key",
"metadata": null,
"name": "resource-registry-2",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.31.202",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:b0:0e:d9",
"name": "d4s-dev-cloud-main",
"port": "",
"uuid": "e0af5eba-f24a-4d0d-8184-bc654b980c4a"
},
{
"access_network": false,
"fixed_ip_v4": "192.168.10.63",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:63:7b:b7",
"name": "orientdb-net",
"port": "",
"uuid": "64fbde08-3759-43ed-b754-998882a3dcd4"
}
],
"network_mode": null,
"personality": [],
"power_state": "active",
"region": "isti_area_pi_1",
"scheduler_hints": [
{
"additional_properties": null,
"build_near_host_ip": "",
"different_cell": [],
"different_host": [],
"group": "b821c2b5-623c-40c9-826f-625cb559e676",
"query": [],
"same_host": [],
"target_cell": ""
}
],
"security_groups": [
"default",
"http and https from the load balancers"
],
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2023-12-07 14:01:23 +0000 UTC",
"user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c",
"vendor_options": [],
"volume": []
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"openstack_compute_servergroup_v2.resource_registry_server_group"
]
}
]
}
],
"check_results": null
}