oracle-cne / ocne

The Oracle Cloud Native Environment CLI
Universal Permissive License v1.0
1 stars 0 forks source link

When creating a cluster with oci provider, omitting ocpus information for a worker node shape causes cluster provisioning to fail. #56

Open prasad-shirodkar opened 2 weeks ago

prasad-shirodkar commented 2 weeks ago

When creating a cluster with oci provider, omitting ocpus information for a worker node shape causes cluster provisioning to fail.

Just a generic error is mentioned instead of an explicit error related to incorrect (implicit) ocpus.

Below is a relevant snippet of cluster config. ocpus is not mentioned for the worker node shape VM.GPU3.2

providers:
  oci:
    workerShape:
      shape: VM.GPU3.2
$ ocne cluster start --config capi.yaml 
INFO[2024-10-02T18:15:41Z] Installing cert-manager into cert-manager: ok 
INFO[2024-10-02T18:15:41Z] Installing core-capi into capi-system: ok 
INFO[2024-10-02T18:15:42Z] Installing capoci into cluster-api-provider-oci-system: ok 
INFO[2024-10-02T18:15:42Z] Installing bootstrap-capi into capi-kubeadm-bootstrap-system: ok 
INFO[2024-10-02T18:15:43Z] Installing control-plane-capi into capi-kubeadm-control-plane-system: ok 
INFO[2024-10-02T18:15:43Z] Waiting for Core Cluster API Controllers: ok 
INFO[2024-10-02T18:15:43Z] Waiting for Kubadm Boostrap Cluster API Controllers: ok 
INFO[2024-10-02T18:15:43Z] Waiting for Kubadm Control Plane Cluster API Controllers: ok 
INFO[2024-10-02T18:15:43Z] Waiting for OCI Cluster API Controllers: ok 
INFO[2024-10-02T18:15:43Z] Applying Cluster API resources               
INFO[2024-10-02T18:15:44Z] Waiting for kubeconfig: ok       
ERRO[2024-10-02T18:26:16Z] Waiting for the Kubernetes cluster to be ready: Timeout waiting for get nodes to succeed 
ERRO[2024-10-02T18:26:16Z] Failed to access Kubernetes cluster: Timeout waiting for get nodes to succeed 

Relates to #55