osism / cloud-in-a-box

Cloud in a box
https://osism.github.io/docs/guides/deploy-guide/examples/cloud-in-a-box
Apache License 2.0
17 stars 4 forks source link

Add public network to an AZ #69

Closed jschoone closed 1 year ago

jschoone commented 1 year ago

Hi,

please add the public network to an availability zone by default, preferably nova. (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

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.

berendt commented 1 year ago

Blocked by https://review.opendev.org/c/openstack/kolla-ansible/+/875777.