kadalu icon indicating copy to clipboard operation
kadalu copied to clipboard

[Bug]: Unable to install devel on aarch64

Open skrobul opened this issue 2 years ago • 6 comments

Describe the bug

I have attempted to try kadalu using minikube running on M1 macbook - installation for both stable and devel version has failed.

To Reproduce Steps to reproduce the behavior: kubectl kadalu install --type kubernetes deploys the operator pods, but the images for 0.8.17 are missing from Dockerhub.

kubectl kadalu install --version devel --type kubernetes - the pods are being deployed, the docker image seems to be present but the uploaded image is built for the wrong architecture (amd64 instead of aarm64):

❯ kubectl -n kadalu logs operator-6c7c7b5797-zjl2p
exec /kadalu/bin/python3: exec format error

Expected behavior Being able to follow the tutorial and eventually deploy the project.

Actual behavior As above - 0.8.17 images are missing, the devel is wrong architecture. I don't know how to specify older images other than manually altering the deployment

Environment:

kubectl-kadalu plugin: 0.8.17
kadalu pod(s) versions
Error while running the following command
$ kubectl exec -nkadalu -c kadalu-nodeplugin pod/kadalu-csi-nodeplugin-vx5qk -- bash -c echo $KADALU_VERSION

error: unable to upgrade connection: container not found ("kadalu-nodeplugin")


  • Kadalu Version: 0.8.17 / devel
  • K8S_DIST: kubernetes

Screenshots or Logs https://gist.github.com/skrobul/4a939f2ed004ce52014f2c36a2e13074

skrobul avatar Oct 17 '22 16:10 skrobul

Update: the 0.8.17 images are now available in the registry - looks like I was lucky enough to learn about this project during release time... :) The issue with invalid architecture for 'devel' image remains though

skrobul avatar Oct 17 '22 16:10 skrobul

Ah! You are right, you tried at the time when the release scripts finished uploading manifest files, but the docker image was not built.

About devel tag not working on M1/M2 Mac, it's a known issue, ie, the devel branch merge CI only pushes amd64 platform image. Mainly because of the time consumed for build on arm arch.

Considering our speed of changes have reduced, we can consider changing this.

amarts avatar Oct 17 '22 16:10 amarts

Ah! You are right, you tried at the time when the release scripts finished uploading manifest files, but the docker image was not built.

About devel tag not working on M1/M2 Mac, it's a known issue, ie, the devel branch merge CI only pushes amd64 platform image. Mainly because of the time consumed for build on arm arch.

Considering our speed of changes have reduced, we can consider changing this.

amarts avatar Oct 17 '22 16:10 amarts

That makes sense, I'll stick to stable version for time being

skrobul avatar Oct 18 '22 17:10 skrobul

Considering our speed of changes have reduced, we can consider changing this.

  • Arm builds might add at-least 2 hrs to every merge
  • It's better to have a weekly or fortnight build if needed and at the same time most of the usecases might be fulfilled sticking to released versions
  • If we've readily available gluster arm builds the whole 2 hrs merge will be snugged into 15 min build time 😃 , let's revisit after Moana merge

leelavg avatar Oct 21 '22 04:10 leelavg

Thank you for your contributions. Noticed that this issue is idle since 180 days! There is a possibility that this issue is already fixed in later releases. Please upgrade and check! If I don't hear any update in this issue in next 2 weeks, will be closing the issue. That doesn't mean one can't re-open the issue! Just comment on the issue, and click 'Reopen', if you still have the issue.

stale[bot] avatar May 21 '23 14:05 stale[bot]