oracle-cne / ocne

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

Image Create command fails when the version differs from what is currently running on an ephemeral cluster #33

Closed zabdulre closed 2 weeks ago

zabdulre commented 4 weeks ago

Summary

During testing of the image create command, an existing 1.29 ephemeral cluster named ocne-ephemeral was already created on the system. When the image create command was run to create a 1.27 OCK image, an error was returned saying that the Kubernetes version of the existing cluster was 1.29, while the target version was 1.27. Users should be able to create images regardless of the underlying version of the ephemeral cluster.

Steps to Reproduce

Using cluster start with an OCI provider, create a 1.29 cluster. The command can be killed as soon as a 1.29 ephemeral cluster is available named ocne-ephemeral.
Run the image create command specifying the image to be version 1.27

Expected Results

./ocne image create --arch amd64 --type oci --version 1.27 INFO[2024-09-03T13:31:56-04:00] Creating Image
INFO[2024-09-03T13:31:56-04:00] Preparing pod used to create image
INFO[2024-09-03T13:32:01-04:00] Waiting for pod ocne-system/ocne-image-builder to be ready: ok INFO[2024-09-03T13:32:01-04:00] Getting local boot image for architecture: amd64 Getting image source signatures Copying blob 18cdb85de7d8 done | Copying config e1d5e5857d done | Writing manifest to image destination INFO[2024-09-03T13:36:11-04:00] Uploading boot image to pod ocne-system/ocne-image-builder: ok INFO[2024-09-03T13:36:56-04:00] Downloading boot image from pod ocne-system/ocne-image-builder: ok INFO[2024-09-03T13:36:56-04:00] New boot image was created successfully at ~/.ocne/images/boot.qcow2-1.27-amd64.oci

Actual Results

./ocne image create --arch amd64 --type oci --version 1.27 INFO[2024-09-03T13:24:45-04:00] Creating Image
ERRO[2024-09-03T13:24:45-04:00] the Kubernetes version of the existing cluster is 1.29. The target Kubernetes version is 1.27

Reported By - @George-Aeillo