coredns pods use wrong format (x86) on ARM64 server

Bug #1841725 reported by Zhanglei Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CDK Addons
Fix Released
High
George Kraft

Bug Description

After deploy the charmed kubernetes v1.15 bundle from (https://api.jujucharms.com/charmstore/v5/charmed-kubernetes-209/archive/bundle.yaml)
which us this "charm: cs:~containers/kubernetes-master-700"

The pods status would show below "CrashLoopBackoff" and "exec format error" of log. This was cuased by use x86 docker image instead of arm64 version.

ubuntu@maas3:~$ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
...
kube-system coredns-75dc589b9b-6ggxx 0/1 CrashLoopBackOff 25 136m
kube-system coredns-75dc589b9b-vmk49 0/1 CrashLoopBackOff 27 136m

1 ubuntu@maas3:~$ kubectl logs pod/coredns-75dc589b9b-6ggxx -n kube-system
standard_init_linux.go:211: exec user process caused "exec format error"
ubuntu@maas3:~$

ubuntu@infra2-vm06:~$ docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
image-registry.canonical.com:5000/cdk/coredns/coredns 1.5.1 4ee43bd86fe6 2 months ago 40.8MB

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

There is already coredns-arm64 docker image from Canonical private registry as:

ubuntu@infra2-vm02:~$ docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
image-registry.canonical.com:5000/cdk/coredns/coredns-arm64 1.5.1 eccb4755e655 2 months ago 39.1MB

If pod configure was modified to use this arm64 image, the pods would become working.

ubuntu@maas3:~$ kubectl describe pods/coredns-75dc589b9b-mhr2j -n kube-system |grep -i image-registry
    Image: image-registry.canonical.com:5000/cdk/coredns/coredns-arm64:1.5.1
    Image ID: docker-pullable://image-registry.canonical.com:5000/cdk/coredns/coredns-arm64@sha256:ad065eb4f03b7e4108007947f928434f7de3f0ffa0f2ed729198d5f49329c56e
ubuntu@maas3:~$

1 ubuntu@maas3:~$ kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
...
kube-system coredns-75dc589b9b-mhr2j 1/1 Running 874 6d6h
kube-system coredns-75dc589b9b-xwpdq 1/1 Running 873 6d6h
...

Changed in charm-kubernetes-master:
status: New → Triaged
assignee: nobody → George Kraft (cynerva)
milestone: none → 1.16
importance: Undecided → High
George Kraft (cynerva)
Changed in charm-kubernetes-master:
status: Triaged → In Progress
George Kraft (cynerva)
Changed in cdk-addons:
importance: Undecided → High
assignee: nobody → George Kraft (cynerva)
milestone: none → 1.16
status: New → In Progress
Revision history for this message
George Kraft (cynerva) wrote :
Changed in cdk-addons:
status: In Progress → Fix Committed
no longer affects: charm-kubernetes-master
Changed in cdk-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.