Skip to content

change registry image to arm64#1

Open
moczniak wants to merge 1 commit intorobinhuiser:mainfrom
moczniak:arm64-registry-image
Open

change registry image to arm64#1
moczniak wants to merge 1 commit intorobinhuiser:mainfrom
moczniak:arm64-registry-image

Conversation

@moczniak
Copy link

@moczniak moczniak commented Feb 18, 2022

on concourse arm64 we should have ability to fetch image for arm64. So it need this fix: moczix/registry-image-resource@9f0f2f1

also i have question, is your worker on rpi is fine? i mean 7.6.0 version because my not. Here my logs when i try to do something, which works perfectly fine on 7.4.0

worker-arm_1 | {"timestamp":"2022-02-20T09:15:49.994033680Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.get-volume.volume-not-found","data":{"session":"4.1.69.1","volume":"50db581c-abd7-497a-7dff-444b1a652993"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:49.994437028Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.volume-not-found","data":{"session":"4.1.69","volume":"50db581c-abd7-497a-7dff-444b1a652993"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:50.851466774Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.get-volume.volume-not-found","data":{"session":"4.1.75.1","volume":"047ddf91-4e34-43a8-6d09-eef97ba293cf"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:50.851575254Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.volume-not-found","data":{"session":"4.1.75","volume":"047ddf91-4e34-43a8-6d09-eef97ba293cf"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:50.881867912Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.get-volume.volume-not-found","data":{"session":"4.1.79.1","volume":"210143d4-845c-40bb-7f2b-27d993f47f85"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:50.882212186Z","level":"info","source":"baggageclaim","message":"baggageclaim.api.volume-server.get-volume.volume-not-found","data":{"session":"4.1.79","volume":"210143d4-845c-40bb-7f2b-27d993f47f85"}} worker-arm_1 | time="2022-02-20T09:15:51.023519531Z" level=info msg="starting signal loop" namespace=concourse path=/run/containerd/io.containerd.runtime.v2.task/concourse/d42ec9b0-2dae-45bf-5055-45d7080a34c6 pid=324 worker-arm_1 | time="2022-02-20T09:15:51.348914281Z" level=error msg="failed to enable controllers ([cpuset cpu io memory pids])" error="failed to write subtree controllers [cpuset cpu io memory pids] to \"/sys/fs/cgroup/garden/cgroup.subtree_control\": write /sys/fs/cgroup/garden/cgroup.subtree_control: no such file or directory" worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.350766465Z","level":"info","source":"worker","message":"worker.garden.garden-server.create.created","data":{"request":{"Handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","GraceTime":0,"RootFSPath":"raw:///worker-state/volumes/live/9fb08093-e115-44c7-69bc-388fbcb16fa8/volume/rootfs","BindMounts":[{"src_path":"/worker-state/volumes/live/b9ea2c13-50bd-4350-72e5-f17545f62bba/volume","dst_path":"/scratch","mode":1},{"src_path":"/worker-state/volumes/live/210143d4-845c-40bb-7f2b-27d993f47f85/volume","dst_path":"/tmp/build/4564f7bc","mode":1},{"src_path":"/worker-state/volumes/live/50db581c-abd7-497a-7dff-444b1a652993/volume","dst_path":"/repo-source","mode":1},{"src_path":"/worker-state/volumes/live/047ddf91-4e34-43a8-6d09-eef97ba293cf/volume","dst_path":"/tmp/build/4564f7bc/git-commit","mode":1}],"Network":"","Privileged":false,"Limits":{"bandwidth_limits":{},"cpu_limits":{},"disk_limits":{},"memory_limits":{},"pid_limits":{}}},"session":"1.2.24"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.416541023Z","level":"info","source":"worker","message":"worker.garden.garden-server.get-properties.got-properties","data":{"handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","session":"1.2.25"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.427560609Z","level":"error","source":"worker","message":"worker.garden.garden-server.attach.failed","data":{"error":"load proc: no running process found: process does not exist task: not found","handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","session":"1.2.26"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.436376589Z","level":"info","source":"worker","message":"worker.garden.garden-server.get-properties.got-properties","data":{"handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","session":"1.2.27"}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.620365700Z","level":"info","source":"worker","message":"worker.garden.garden-server.run.spawned","data":{"handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","id":"task","session":"1.2.28","spec":{"Path":"sh","Dir":"/tmp/build/4564f7bc","User":"","Limits":{},"TTY":{"window_size":{"columns":500,"rows":500}}}}} worker-arm_1 | {"timestamp":"2022-02-20T09:15:51.630545258Z","level":"info","source":"worker","message":"worker.garden.garden-server.run.exited","data":{"handle":"d42ec9b0-2dae-45bf-5055-45d7080a34c6","id":"task","session":"1.2.28","status":159}}

when im readed about it, it seems to do something with: docker/for-mac#6073 (comment)

@robinhuiser
Copy link
Owner

Hi @moczniak!

I understand the problem!

In stead of creating a fork with a hard-coded reference to the arm architecture, I would suggest you make a pull request to the original repository to add a parameter "architecture" to the source configuration, see example below:

...
      image_resource:
        type: registry-image
        source:
          repository: arm64v8/busybox
          architecture: arm
...

The effort should be minor since you already have the logic figured out ;-)

Hope this makes sense?

Robin

@robinhuiser
Copy link
Owner

@moczniak -- let me know if you need help, I am available for supporting you if required implementing the solution described earlier!

@natto1784
Copy link

natto1784 commented Oct 24, 2022

Just here to report about this concourse/registry-image-resource#36
@robinhuiser can you trigger a new build?
Thanks

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

Successfully merging this pull request may close these issues.

3 participants