resource "openstack_networking_router_v2" "router_mgmt" {
name = "${var.prefix}-rtr"
description = "router for mgmtcluster (managed by terraform)"
external_network_id = data.openstack_networking_network_v2.external.id
availability_zone_hints = [var.availability_zone]
}
Which leads to this error
╷
│ Error: Error creating openstack_networking_router_v2: Resource not found
│
│ with openstack_networking_router_v2.router_mgmt,
│ on neutron.tf line 72, in resource "openstack_networking_router_v2" "router_mgmt":
│ 72: resource "openstack_networking_router_v2" "router_mgmt" {
│
The reason for this seems to be that the public network is not in an AZ.
$ openstack network show public -c availability_zone_hints -c availability_zones
+-------------------------+-------+
| Field | Value |
+-------------------------+-------+
| availability_zone_hints | |
| availability_zones | |
+-------------------------+-------+
I can remove the line availability_zone_hints = [var.availability_zone] since it's optional and the router will be created successfully, but then I won't be able to use the SCS k8s since CAPO requires an AZ.
Hi,
please add the
public
network to an availability zone by default, preferablynova
. (Unless it causes problems elsewhere.)I just tried to deploy the SCS k8s-cluster-api-provider on cloud-in-a-box but it fails.
There is this terraform resource
Which leads to this error
The reason for this seems to be that the
public
network is not in an AZ.I can remove the line
availability_zone_hints = [var.availability_zone]
since it's optional and the router will be created successfully, but then I won't be able to use the SCS k8s since CAPO requires an AZ.