Page MenuHomePhabricator

tools-package-builder-01.tools.eqiad.wmflabs Puppet failing for pbuilder changes
Closed, ResolvedPublic

Description

Possibly related to rOPUP1bf2f6229177: Create profile::package_builder

tools-package-builder-01.tools:~
bd808$ sudo -i puppet agent -tv
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for tools-package-builder-01.tools.eqiad.wmflabs
Info: Applying configuration version '1508860385'
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns:  -> Invoking pbuilder
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns:   forking: pbuilder create --components main --debootstrapopts --variant=buildd --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --buildplace /srv/pbuilder/base-buster-amd64.cow --mirror http://mirrors.wikimedia.org/debian --architecture amd64 --distribution buster --no-targz --extrapackages cowdancer
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: W: /.pbuilderrc does not exist
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: Running in no-targz mode
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: Distribution is buster.
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: Current time: Tue Oct 24 16:00:08 UTC 2017
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: pbuilder-time-stamp: 1508860808
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: Building the build environment
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: I: running debootstrap
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: /usr/sbin/debootstrap
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: E: No such script: /usr/share/debootstrap/scripts/buster
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: E: debootstrap failed
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: W: Aborting with an error
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: pbuilder create failed
Notice: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns:   forking: rm -rf /srv/pbuilder/base-buster-amd64.cow
Error: /usr/sbin/cowbuilder --create                         --mirror http://mirrors.wikimedia.org/debian                         --distribution buster                         --components "main"                         --architecture amd64                         --basepath "/var/cache/pbuilder/base-buster-amd64.cow"                         --debootstrapopts --variant=buildd                         --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg returned 1 instead of one of [0]
Error: /Stage[main]/Package_builder::Environments/Package_builder::Pbuilder_base[buster-amd64]/Exec[cowbuilder_init_buster-amd64]/returns: change from notrun to 0 failed: /usr/sbin/cowbuilder --create                         --mirror http://mirrors.wikimedia.org/debian                         --distribution buster                         --components "main"                         --architecture amd64                         --basepath "/var/cache/pbuilder/base-buster-amd64.cow"                         --debootstrapopts --variant=buildd                         --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg returned 1 instead of one of [0]
Notice: Finished catalog run in 5.75 seconds

Event Timeline

@akosiaris Hello, we have a package builder node in tools that seems to be running into some trouble with the new buster stuff in puppet (logs in task description)

E: No such script: /usr/share/debootstrap/scripts/buster seems to be the thing that's tripping puppet up.

I noticed that you'd added made some changes recently around the buster distro (https://github.com/wikimedia/puppet/commit/3767da034ebfbb4e7c3ca332d7cbd86aa5e170c3), and was wondering if you'd have an idea why we are running into this error. May be some manual step we're missing?

Mentioned in SAL (#wikimedia-cloud) [2017-10-24T18:09:37Z] <madhuvishy> Disable puppet on tools-package-builder-01 temporarily (T178920)

akosiaris claimed this task.

@madhuvishy, I 've had a quick look, it seems to me that VM has an old version of debootstrap, namely 1.0.67 instead of 1.0.67+deb8u1. Per https://anonscm.debian.org/cgit/d-i/debootstrap.git/commit/?h=jessie buster support was added in the latter. An upgrade of the package solved the issue.