Skip to content

Error extracting availability zone list on v0.12.2 #2505

Open
@theboringstuff

Description

@theboringstuff

/kind bug

What steps did you take and what happened:

  • Install CAPI v1.9.6 with CAPO 0.12.2
  • Create cluster
  • CAPO fails to reconcile with following error
E0331 09:13:49.341181       1 controller.go:316] "Reconciler error" err="error extracting availability zone list: unable to verify compatible server version: Expected HTTP response code [200 300] when accessing [GET http://ip:port/v2/8b15e6751b4747b8ba0db5616392682f/], but got 404 instead: {\"message\": \"The resource could not be found.<br /><br />\\n\\n\\n\", \"code\": \"404 Not Found\", \"title\": \"Not Found\"}" controller="openstackcluster" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackCluster" OpenStackCluster="default/test" namespace="default" name="test" reconcileID="4207ae4a-d059-4b3e-bc1f-bff041a55128"

What did you expect to happen:

  • I expect reconciliation to succeed, since it work on CAPO 0.11.5 (and below)

Anything else you would like to add:

  • I suspect the path to list availability zones is incorrect, since openstack CLI uses something like following (which works), but I am not sure
REQ: curl -g -i -X GET http://ip:port/v2/8b15e6751b4747b8ba0db5616392682f/os-availability-zone -H "Accept: application/json" -H "User-Agent: openstacksdk/4.4.0 keystoneauth1/5.10.0 python-requests/2.32.3 CPython/3.10.12" -H "X-Auth-Token: ..."
  • The very same usecase works on CAPO v0.11.5

Environment:

  • Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built): v0.12.2
  • Cluster-API version: v1.9.6
  • OpenStack version:
  • Minikube/KIND version:
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions