EGI-Federation / fedcloud-dashboard

Common dashboard for the EGI Cloud Compute service
MIT License
3 stars 2 forks source link

Merge app code and deployment #10

Closed enolfc closed 2 years ago

enolfc commented 2 years ago

Summary

This brings here the code from https://github.com/sebastian-luna-valero/horizon-aggregator and fixes some of the deployment issues found during initial tests.


Related issue :

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖failure

Show Plan ``` terraform openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_instance_v2.dashboard: Refreshing state... [id=48ead3fb-4ee5-4806-9181-fa39fc947d9f] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/48ead3fb-4ee5-4806-9181-fa39fc947d9f/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.85" -> "192.168.10.11" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "a807c68b-9010-467c-82f0-49cf0aa74a60" -> "7e67c5d1-d37b-496f-9e19-f377c367027e" tags = [] # (4 unchanged attributes hidden) } # openstack_compute_floatingip_associate_v2.fip has been deleted - resource "openstack_compute_floatingip_associate_v2" "fip" { - floating_ip = "147.213.76.217" -> null - id = "147.213.76.217/48ead3fb-4ee5-4806-9181-fa39fc947d9f/" -> null - instance_id = "48ead3fb-4ee5-4806-9181-fa39fc947d9f" -> null } # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "48ead3fb-4ee5-4806-9181-fa39fc947d9f" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create -/+ destroy and then create replacement Terraform will perform the following actions: # openstack_compute_floatingip_associate_v2.fip will be created + resource "openstack_compute_floatingip_associate_v2" "fip" { + floating_ip = "147.213.76.217" + id = (known after apply) + instance_id = (known after apply) + region = (known after apply) } # openstack_compute_instance_v2.dashboard must be replaced -/+ resource "openstack_compute_instance_v2" "dashboard" { ~ access_ip_v4 = "192.168.10.11" -> (known after apply) + access_ip_v6 = (known after apply) ~ all_metadata = {} -> (known after apply) ~ all_tags = [] -> (known after apply) ~ availability_zone = "nova" -> (known after apply) ~ flavor_name = "m1.medium" -> (known after apply) ~ id = "48ead3fb-4ee5-4806-9181-fa39fc947d9f" -> (known after apply) ~ image_name = "Ubuntu-20.04-20211006" -> (known after apply) name = "dashboard" + region = (known after apply) - tags = [] -> null ~ user_data = "e5783927810fa151d550730fea0e615020d781e4" -> "d4c8505f3f0b43827f55116a540e6408c4cbcfad" # forces replacement # (6 unchanged attributes hidden) ~ network { ~ fixed_ip_v4 = "192.168.10.11" -> (known after apply) + fixed_ip_v6 = (known after apply) + floating_ip = (known after apply) ~ mac = "fa:16:3e:1f:6e:f6" -> (known after apply) ~ name = "private-network" -> (known after apply) + port = (known after apply) # (2 unchanged attributes hidden) } } Plan: 2 to add, 0 to change, 1 to destroy. ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_compute_instance_v2.dashboard: Refreshing state... [id=fbbc9fe0-590c-4351-bdd0-98a939c9123a] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/fbbc9fe0-590c-4351-bdd0-98a939c9123a/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.11" -> "192.168.10.68" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "7e67c5d1-d37b-496f-9e19-f377c367027e" -> "15a38034-4cbe-4be1-a59c-4a9f06c4611a" tags = [] # (4 unchanged attributes hidden) } # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "fbbc9fe0-590c-4351-bdd0-98a939c9123a" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── No changes. Your infrastructure matches the configuration. Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan: terraform apply -refresh-only Releasing state lock. This may take a few moments... ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_instance_v2.dashboard: Refreshing state... [id=fbbc9fe0-590c-4351-bdd0-98a939c9123a] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/fbbc9fe0-590c-4351-bdd0-98a939c9123a/] No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖failure

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_compute_instance_v2.dashboard: Refreshing state... [id=fbbc9fe0-590c-4351-bdd0-98a939c9123a] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/fbbc9fe0-590c-4351-bdd0-98a939c9123a/] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: -/+ destroy and then create replacement Terraform will perform the following actions: # openstack_compute_floatingip_associate_v2.fip must be replaced -/+ resource "openstack_compute_floatingip_associate_v2" "fip" { ~ id = "147.213.76.217/fbbc9fe0-590c-4351-bdd0-98a939c9123a/" -> (known after apply) ~ instance_id = "fbbc9fe0-590c-4351-bdd0-98a939c9123a" -> (known after apply) # forces replacement + region = (known after apply) # (1 unchanged attribute hidden) } # openstack_compute_instance_v2.dashboard must be replaced -/+ resource "openstack_compute_instance_v2" "dashboard" { ~ access_ip_v4 = "192.168.10.68" -> (known after apply) + access_ip_v6 = (known after apply) ~ all_metadata = {} -> (known after apply) ~ all_tags = [] -> (known after apply) ~ availability_zone = "nova" -> (known after apply) ~ flavor_name = "m1.medium" -> (known after apply) ~ id = "fbbc9fe0-590c-4351-bdd0-98a939c9123a" -> (known after apply) ~ image_name = "Ubuntu-20.04-20211006" -> (known after apply) name = "dashboard" + region = (known after apply) - tags = [] -> null ~ user_data = "d4c8505f3f0b43827f55116a540e6408c4cbcfad" -> "6080c3e301b1a118173d983a3707fde17e209d2d" # forces replacement # (6 unchanged attributes hidden) ~ network { ~ fixed_ip_v4 = "192.168.10.68" -> (known after apply) + fixed_ip_v6 = (known after apply) + floating_ip = (known after apply) ~ mac = "fa:16:3e:6e:ca:a9" -> (known after apply) ~ name = "private-network" -> (known after apply) + port = (known after apply) # (2 unchanged attributes hidden) } } Plan: 2 to add, 0 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_compute_instance_v2.dashboard: Refreshing state... [id=0e639d66-86f1-4ee7-82df-2c2634e9c39f] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/0e639d66-86f1-4ee7-82df-2c2634e9c39f/] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: -/+ destroy and then create replacement Terraform will perform the following actions: # openstack_compute_floatingip_associate_v2.fip must be replaced -/+ resource "openstack_compute_floatingip_associate_v2" "fip" { ~ id = "147.213.76.217/0e639d66-86f1-4ee7-82df-2c2634e9c39f/" -> (known after apply) ~ instance_id = "0e639d66-86f1-4ee7-82df-2c2634e9c39f" -> (known after apply) # forces replacement + region = (known after apply) # (1 unchanged attribute hidden) } # openstack_compute_instance_v2.dashboard must be replaced -/+ resource "openstack_compute_instance_v2" "dashboard" { ~ access_ip_v4 = "192.168.10.85" -> (known after apply) + access_ip_v6 = (known after apply) ~ all_metadata = {} -> (known after apply) ~ all_tags = [] -> (known after apply) ~ availability_zone = "nova" -> (known after apply) ~ flavor_name = "m1.medium" -> (known after apply) ~ id = "0e639d66-86f1-4ee7-82df-2c2634e9c39f" -> (known after apply) ~ image_name = "Ubuntu-20.04-20211006" -> (known after apply) name = "dashboard" + region = (known after apply) - tags = [] -> null ~ user_data = "6080c3e301b1a118173d983a3707fde17e209d2d" -> "90023f7e1954389c6ef071f11a027c2e52481ace" # forces replacement # (6 unchanged attributes hidden) ~ network { ~ fixed_ip_v4 = "192.168.10.85" -> (known after apply) + fixed_ip_v6 = (known after apply) + floating_ip = (known after apply) ~ mac = "fa:16:3e:19:17:84" -> (known after apply) ~ name = "private-network" -> (known after apply) + port = (known after apply) # (2 unchanged attributes hidden) } } Plan: 2 to add, 0 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. Releasing state lock. This may take a few moments... ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_compute_instance_v2.dashboard: Refreshing state... [id=8ef9fcce-19e4-41c6-ab03-d1730a924510] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/8ef9fcce-19e4-41c6-ab03-d1730a924510/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "8ef9fcce-19e4-41c6-ab03-d1730a924510" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.85" -> "192.168.10.69" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "c44aee34-b22a-4542-80d6-73dcb743cea9" -> "3d4cf550-bd24-41e3-87ff-8f60e137a518" tags = [] # (4 unchanged attributes hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── No changes. Your infrastructure matches the configuration. Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan: terraform apply -refresh-only Releasing state lock. This may take a few moments... ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_instance_v2.dashboard: Refreshing state... [id=8ef9fcce-19e4-41c6-ab03-d1730a924510] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/8ef9fcce-19e4-41c6-ab03-d1730a924510/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.85" -> "192.168.10.69" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "c44aee34-b22a-4542-80d6-73dcb743cea9" -> "3d4cf550-bd24-41e3-87ff-8f60e137a518" tags = [] # (4 unchanged attributes hidden) } # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "8ef9fcce-19e4-41c6-ab03-d1730a924510" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── No changes. Your infrastructure matches the configuration. Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan: terraform apply -refresh-only Releasing state lock. This may take a few moments... ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_compute_instance_v2.dashboard: Refreshing state... [id=8ef9fcce-19e4-41c6-ab03-d1730a924510] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/8ef9fcce-19e4-41c6-ab03-d1730a924510/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.85" -> "192.168.10.69" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "c44aee34-b22a-4542-80d6-73dcb743cea9" -> "3d4cf550-bd24-41e3-87ff-8f60e137a518" tags = [] # (4 unchanged attributes hidden) } # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "8ef9fcce-19e4-41c6-ab03-d1730a924510" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── No changes. Your infrastructure matches the configuration. Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan: terraform apply -refresh-only Releasing state lock. This may take a few moments... ```

Pusher: @enolfc, Action: pull_request

github-actions[bot] commented 2 years ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ``` terraform Acquiring state lock. This may take a few moments... openstack_compute_secgroup_v2.secgroup: Refreshing state... [id=47779555-2ce1-400c-ba68-d177683c7228] openstack_networking_floatingip_v2.fip: Refreshing state... [id=1a2e1285-0a20-4582-aab9-27255607a862] openstack_compute_instance_v2.dashboard: Refreshing state... [id=8ef9fcce-19e4-41c6-ab03-d1730a924510] openstack_compute_floatingip_associate_v2.fip: Refreshing state... [id=147.213.76.217/8ef9fcce-19e4-41c6-ab03-d1730a924510/] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # openstack_compute_instance_v2.dashboard has been changed ~ resource "openstack_compute_instance_v2" "dashboard" { id = "8ef9fcce-19e4-41c6-ab03-d1730a924510" name = "dashboard" + tags = [] # (13 unchanged attributes hidden) # (1 unchanged block hidden) } # openstack_networking_floatingip_v2.fip has been changed ~ resource "openstack_networking_floatingip_v2" "fip" { ~ fixed_ip = "192.168.10.85" -> "192.168.10.69" id = "1a2e1285-0a20-4582-aab9-27255607a862" ~ port_id = "c44aee34-b22a-4542-80d6-73dcb743cea9" -> "3d4cf550-bd24-41e3-87ff-8f60e137a518" tags = [] # (4 unchanged attributes hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────── No changes. Your infrastructure matches the configuration. Your configuration already matches the changes detected above. If you'd like to update the Terraform state to match, create and apply a refresh-only plan: terraform apply -refresh-only ```

Pusher: @enolfc, Action: pull_request