Page MenuHomePhabricator

Publish Wikimedia bookworm base Docker image
Closed, ResolvedPublic

Description

Bookworm is planned to release in about a month and a half, so it would be nice to have a Docker base image to start testing on.

Previous work: T281596: Publish wikimedia-bullseye base docker image

Event Timeline

Joe triaged this task as Medium priority.

Mentioned in SAL (#wikimedia-operations) [2023-05-15T05:36:23Z] <_joe_> building bookworm image for the first time T335560

Change 919611 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/puppet@production] docker::baseimages: support bookworm

https://gerrit.wikimedia.org/r/919611

Change 919611 merged by Giuseppe Lavagetto:

[operations/puppet@production] docker::baseimages: support bookworm

https://gerrit.wikimedia.org/r/919611

While I've added bookworm to the build process, I think I'll revert that part of my change.

Every time I try to run a build there is a different symlink broken on snapshots.debian.org making the process fail.

I guess we're better off waiting for the official release.

The last issue I encountered happened *after* the base system was installed (so, success compared to other runs!):

warning: no apparent 'bookworm/main' for 'amd64' on any of the following; skipping
  - http://snapshot.debian.org/archive/debian/20230516T063700Z
warning: no apparent 'bookworm/updates/main' for 'amd64' on any of the following; skipping
  - http://snapshot.debian.org/archive/debian-security/20230516T063700Z
warning: no apparent 'bookworm-updates/main' for 'amd64' on any of the following; skipping
  - http://snapshot.debian.org/archive/debian/20230516T063700Z
error: sources.list ended up empty -- something is definitely wrong

which makes it look like some logic has changed in how the debian archives are organized for bookworm. I'll need to dig deeper.

It's much simpler than that - debuerreotype would work correctly - the problem is that snapshots are full of broken links for bookworm - again:

http://snapshot.debian.org/archive/debian/20230515T030231Z/dists/bookworm/main/binary-amd64/ lists Packages.gz as a symlink to a hash url that doesn't exist.

I'll revert the build step for bookworm and set this task to stalled for the moment - it's simply too un predictable if a bookworm image will be built or not.

Change 920196 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/puppet@production] docker::baseimages: skip building bookworm

https://gerrit.wikimedia.org/r/920196

Change 920196 merged by Giuseppe Lavagetto:

[operations/puppet@production] docker::baseimages: skip building bookworm

https://gerrit.wikimedia.org/r/920196

Joe changed the task status from Open to Stalled.May 16 2023, 7:47 AM
Joe added a subscriber: MoritzMuehlenhoff.

After discussion with @MoritzMuehlenhoff - it makes sense that snapshots might be broken right now that things change hectically for a testing distro before the freeze - we should pick up this task after June 3rd when the freeze will be enacted.

taavi changed the task status from Stalled to Open.Jun 10 2023, 1:56 PM

The freeze started about a week ago and the release is due today, so I'd imagine things are stable enough to pick this up again.

Change 929168 had a related patch set uploaded (by Muehlenhoff; author: Muehlenhoff):

[operations/puppet@production] Build Bookworm base image

https://gerrit.wikimedia.org/r/929168

Change 929168 merged by Muehlenhoff:

[operations/puppet@production] Build Bookworm base image

https://gerrit.wikimedia.org/r/929168

This still fails with errors related to snapshot.debian.org

Jun 15 15:39:09 build2001 build-base-images[2139003]: W: Couldn't download package libxxhash0 (ver 0.8.1-1 arch amd64) at http://snapshot.debian.org/archive/debian/20230615T124400Z/pool/main/>Jun 15 15:39:09 build2001 build-base-images[2139003]: I: Retrieving liblzma5 5.4.1-0.2
Jun 15 15:41:29 build2001 build-base-images[2139003]: I: Validating liblzma5 5.4.1-0.2
Jun 15 15:41:30 build2001 build-base-images[2139003]: I: Retrieving zlib1g 1:1.2.13.dfsg-1
Jun 15 15:42:57 build2001 build-base-images[2139003]: I: Validating zlib1g 1:1.2.13.dfsg-1
Jun 15 15:42:57 build2001 build-base-images[2162916]: E: Couldn't download packages: passwd libsystemd0 libudev1 sysvinit-utils tar tzdata usr-is-merged usrmerge bsdutils libblkid1 libmount1 >Jun 15 15:42:57 build2001 build-base-images[2135871]: error: 'debootstrap' failed!
Jun 15 15:42:57 build2001 build-base-images[2135871]:   Full command:
Jun 15 15:42:57 build2001 build-base-images[2135871]:     debootstrap --force-check-gpg --variant=minbase --merged-usr bookworm rootfs http://snapshot.debian.org/archive/debian/20230615T12440>

This needs some further debugging, not sure why debuerrotype uses snapshot.d.o and not the main errors