awx-operator icon indicating copy to clipboard operation
awx-operator copied to clipboard

"make deploy"-command doesn't work on arm64

Open test123-all opened this issue 3 years ago • 3 comments

ISSUE TYPE
  • Bug Report
SUMMARY

"make deploy"-command doesn't work on arm64(Ubuntu 20.04.3 LTS)

ENVIRONMENT
STEPS TO REPRODUCE
  1. install minikube on arm64
  2. git clone repository
  3. cd in the directory
  4. git checkout 0.14.0
  5. create namespace(is successful)
  6. make deploy
EXPECTED RESULTS

Should install the awx-operator

ACTUAL RESULTS

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now make: *** [Makefile:95: kustomize] Error 2

ADDITIONAL INFORMATION

I'm not into make and quite a beginner with kubernetes. I tried "make --help" but cant find a "deploy" option. Therefore I don't understand what the command really does and don't know where to look next, to resolve the problem by myself.

Thank you in advance for your help

test123-all avatar Oct 29 '21 17:10 test123-all

I had to install kustomize on my ARM based Mac to get it working.

rrobe53 avatar Nov 10 '21 21:11 rrobe53

In order to fix the download URLs (for kustomize and ansible-operator), I had to path the Makefile as below -ARCH := $(shell uname -m | sed 's/x86_64/amd64/') +ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')

pygoubet avatar Nov 12 '21 15:11 pygoubet

Installing kustomize on an M1 Mac through brew does seem to allow the make deploy command. However, I still had issues with the operator after deployment, since it seems the container images were for the wrong architecture (to the best of my knowledge). Even after trying @pygoubet comment, undeploying, and deploying again, the operator would not stand up.

Kpovoc avatar Feb 02 '22 13:02 Kpovoc

Multi-arch support, included arm was added in this PR:

https://github.com/ansible/awx-operator/pull/1681

With that change, arm operator images are now available.

rooftopcellist avatar Mar 07 '24 20:03 rooftopcellist