Skip to content

If transit gateway fails creation in PowerVS then fail CAPI deploy #1653

@hamzy

Description

@hamzy

/kind bug
/area provider/ibmcloud

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

During an IPI CAPI create cluster, a transit gateway is not created. The cluster is useless without this.

What did you expect to happen:
Immediate failure.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

{"errors":[{"code":"precondition_failed","message":"cannot add more than 5 gateways to the selected region","more_info":"https://cloud.ibm.com/apidocs/transit-gateway#error-handling"}],"trace":"5261aa71-e822-4340-baef-8c35e6186852"}
E0308 06:25:17.662235 4128998 ibmpowervscluster_controller.go:183]  "msg"="failed to reconcile transit gateway" "error"="error creating transit gateway: cannot add more than 5 gateways to the selected region" "IBMPowerVSCluster"={"name":"rdr-hamzy-test-dal10-58hkl","namespace":"openshift-cluster-api-guests"} "cluster"={"name":"rdr-hamzy-test-dal10-58hkl","namespace":"openshift-cluster-api-guests"} "controller"="ibmpowervscluster" "controllerGroup"="infrastructure.cluster.x-k8s.io" "controllerKind"="IBMPowerVSCluster" "name"="rdr-hamzy-test-dal10-58hkl" "namespace"="openshift-cluster-api-guests" "reconcileID"="3665bd34-7bdb-4785-aae1-a0ed76a199fc"

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/provider/ibmcloudIssues or PRs related to ibmcloud providerkind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions