Distrobuilder build alpine edge fails

lxd-build
distrobuilder git-db12018 1435 latest/edge stgraber classic
template: jenkins last successful build

Seems it purges all previously installed alpine-base … at some point.

– os-- alpine_edge

INFO[2022-07-20T11:13:38+02:00] Downloading source
INFO[2022-07-20T11:13:38+02:00] Unpacking image                               file=/tmp/distrobuilder/alpinelinux-edge-x86_64/alpine-minirootfs-3.12.0-x86_64.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: UNTRUSTED signature
WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/community: UNTRUSTED signature
WARNING: Ignoring APKINDEX.b53994b4.tar.gz: No such file or directory
INFO[2022-07-20T11:13:39+02:00] Managing repositories
INFO[2022-07-20T11:13:39+02:00] Running hooks                                 trigger=post-unpack
INFO[2022-07-20T11:13:39+02:00] Managing packages
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz: UNTRUSTED signature
ERROR: unsatisfiable constraints:
Error: Failed to manage packages: Failed to install packages: exit status 6
INFO[2022-07-20T11:13:39+02:00] Removing cache directory

Full log:

/tmp/distrobuilder/alpinelinux-edge-x86_64/alpine-minirootfs-3.12.0-x86_64.tar.gz: 100% (30.02MB/s)
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/3) Purging ssl_client (1.31.1-r16)
(2/3) Purging libtls-standalone (2.9.1-r1)
(3/3) Purging ca-certificates-bundle (20191127-r2)
Executing busybox-1.31.1-r16.trigger
OK: 5 MiB in 11 packages
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
OK: 11 distinct packages available
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
OK: 5 MiB in 11 packages
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
  alpine-base (missing):
    required by: world[alpine-base]
  doas (missing):
    required by: world[doas]
  logrotate (missing):
    required by: world[logrotate]

Any ideas @monstermunchkin ?

You need to either set -o source.same_as=3.16 when running distrobuilder, or change the value source.same_as to 3.16 in the yaml file.

The reason is that the edge keys have been rotated.

Pefect!
Thanks very much.
Jenkins template still same_as: 3.12 but I guess, you need it for older versions.

Yes, that’s the default value for our images, but it’s overriden in image-alpine.yaml when building edge.