Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When creating a cluster with oci provider, wrong ocpus information for worker nodes causes worker nodes to not be provisioned. No error is logged either during cluster provisioning. #55

Open
prasad-shirodkar opened this issue Oct 2, 2024 · 0 comments
Assignees

Comments

@prasad-shirodkar
Copy link
Contributor

prasad-shirodkar commented Oct 2, 2024

When creating a cluster with oci provider, wrong ocpus information for worker nodes causes worker nodes to not be provisioned. No error is logged either during cluster provisioning.

Ideally, a validation should be performed to validate the ocpus prior to cluster provisioning.

Below is a relevant snippet of cluster config. ocpus is wrongly set as 10 instead of 12 for the shape VM.GPU3.2

providers:
  oci:
    workerShape:
      shape: VM.GPU3.2
      ocpus: 10
$ ocne cluster start --config capi.yaml
INFO[2024-10-02T17:40:02Z] Installing cert-manager into cert-manager: ok 
INFO[2024-10-02T17:40:03Z] Installing core-capi into capi-system: ok 
INFO[2024-10-02T17:40:03Z] Installing capoci into cluster-api-provider-oci-system: ok 
INFO[2024-10-02T17:40:04Z] Installing bootstrap-capi into capi-kubeadm-bootstrap-system: ok 
INFO[2024-10-02T17:40:04Z] Installing control-plane-capi into capi-kubeadm-control-plane-system: ok 
INFO[2024-10-02T17:40:05Z] Waiting for Core Cluster API Controllers: ok 
INFO[2024-10-02T17:40:05Z] Waiting for Kubadm Boostrap Cluster API Controllers: ok 
INFO[2024-10-02T17:40:05Z] Waiting for Kubadm Control Plane Cluster API Controllers: ok 
INFO[2024-10-02T17:40:05Z] Waiting for OCI Cluster API Controllers: ok 
INFO[2024-10-02T17:40:05Z] Applying Cluster API resources               
INFO[2024-10-02T17:40:42Z] Waiting for kubeconfig: ok       
INFO[2024-10-02T17:42:38Z] Waiting for the Kubernetes cluster to be ready: ok 
INFO[2024-10-02T17:42:38Z] Installing applications into workload cluster 
INFO[2024-10-02T17:42:39Z] Installing oci-ccm into kube-system: ok 
INFO[2024-10-02T17:42:40Z] Installing flannel into kube-flannel: ok 
INFO[2024-10-02T17:42:40Z] Installing ocne-catalog into ocne-system: ok 
INFO[2024-10-02T17:42:40Z] Kubernetes cluster was created successfully  
INFO[2024-10-02T17:42:40Z] Post install information:

To access the cluster:
    use /home/opc/.kube/kubeconfig.ocne

$ export KUBECONFIG=~/.kube/kubeconfig.ocne

$ kubectl get nodes -o wide
NAME                       STATUS   ROLES           AGE   VERSION         INTERNAL-IP      EXTERNAL-IP   OS-IMAGE                   KERNEL-VERSION                      CONTAINER-RUNTIME
ocne-control-plane-2r2sj   Ready    control-plane   97s   v1.30.3+1.el8   100.101.68.208   <none>        Oracle Linux Server 8.10   5.15.0-209.161.7.2.el8uek.aarch64   cri-o://1.30.3 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants