-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
area/provider/ibmcloudIssues or PRs related to ibmcloud providerIssues or PRs related to ibmcloud providerkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
/kind feature
/area provider/ibmcloud
While deploying a VPC cluster with v2 flow, certain errors are thrown during reconciliation when the resources are being created.
Errors:
- When subnets are mentioned without zones such as
network:
controlPlaneSubnets:
- name: ibm-vpc-subnet-cp-0
- name: ibm-vpc-subnet-cp-1
workerSubnets:
- name: ibm-vpc-subnet-worker-0
- name: ibm-vpc-subnet-worker-1
it fails with
error failed reconciling control plane subnet: error subnet zone must be defined for subnet ibm-vpc-subnet-cp-0
- When network is added in spec and load balancers are missing such as
network:
controlPlaneSubnets:
- name: ibm-vpc-subnet-cp-0
- name: ibm-vpc-subnet-cp-1
workerSubnets:
- name: ibm-vpc-subnet-worker-0
- name: ibm-vpc-subnet-worker-1
it fails with
Message: error no load balancers specified for cluster
Reason: LoadBalancerReconciliationFailed
Severity: Error
Status: False
Type: LoadBalancerReady
Such errors can be avoided by either adding validation in webhooks or the reconciliation logic could create subnets/LBs by constructing zone on demand from zone/region specified in spec.
Metadata
Metadata
Assignees
Labels
area/provider/ibmcloudIssues or PRs related to ibmcloud providerIssues or PRs related to ibmcloud providerkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.