testbed icon indicating copy to clipboard operation
testbed copied to clipboard

testbed installation fails during create

Open e-ruff opened this issue 5 months ago • 4 comments

I am installing the Testbed on a self-managed DevStack environment. There, I created the two flavors 1C-2GB-10GB and 2C-4GB-20GB. The make create step fails:

$ cd terraform/environments $ cp local.tfvars.sample openstack.tfvars $ cd .. $ make ENVIRONMENT=openstack create openstack.auto.tfvars

Error: Reference to undeclared resource

on neutron.tf line 8, in resource "openstack_networking_secgroup_v2" "security_group_node": 8: depends_on = [openstack_networking_router_v2.router]

A managed resource "openstack_networking_router_v2" "router" has not been declared in the root module.

Error: Reference to undeclared resource

on neutron.tf line 38, in resource "openstack_networking_secgroup_v2" "security_group_management": 38: depends_on = [openstack_networking_router_v2.router]

A managed resource "openstack_networking_router_v2" "router" has not been declared in the root module. make: *** [Makefile:112: create] Error 1

e-ruff avatar Jul 31 '25 10:07 e-ruff

The local.tfvars.sample file is a bad sample for a full cloud environment. Use e.g. the regiocloud.tfvars file. The lines with customisation and override are important.

berendt avatar Jul 31 '25 12:07 berendt

Must there specific values/how to create

  • availability_zone
  • volume_availability_zone
  • network_availability_zone

e-ruff avatar Aug 05 '25 13:08 e-ruff

I think it's optional to set them when you only have one zone.

berendt avatar Aug 05 '25 15:08 berendt

new installation with DevStack under Ubuntu 24.04. My openstack.tfvars contain these values: flavor_manager = "1C-2GB-10GB" flavor_node = "2C-4GB-20GB" volume_type = "DEFAULT" image = "Ubuntu 22.04" image_node = "Ubuntu 22.04" public = "public" availability_zone = "nova" volume_availability_zone = "nova" network_availability_zone = "nova"

I uploaded an "Ubuntu 22.04" image to OpenStack and created both flavors.

Now the command $ make ENVIRONMENT=openstack create

brings this result:

terraform_data.image_node will be created

  • resource "terraform_data" "image_node" {
    • id = (known after apply)
    • input = "Ubuntu 22.04"
    • output = (known after apply) }

Plan: 23 to add, 0 to change, 0 to destroy.

Changes to Outputs:

  • private_key = (sensitive value)

Error: Error creating OpenStack networking client: No suitable endpoint could be found in the service catalog.

with data.openstack_networking_network_v2.public, on data.tf line 1, in data "openstack_networking_network_v2" "public": 1: data "openstack_networking_network_v2" "public" {

make[1]: *** [Makefile:112: create] Error 1 make[1]: Leaving directory '/home/dragon/testbed/terraform' make: *** [Makefile:50: create] Error 2

What is missing?

e-ruff avatar Aug 12 '25 13:08 e-ruff