DEP8 tests need vm

Bug #1806389 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbuild (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

The sbuild DEP8 tests call debootstrap, which tries to create device nodes and fails in a lxd container:

autopkgtest [00:43:53]: test build-procenv: [-----------------------
INFO: Creating sbuild chroot 'disco-armhf-sbuild' for release 'disco' in directory '/tmp/autopkgtest.58S3ah/autopkgtest_tmp/schroot-disco' from url 'http://ports.ubuntu.com/ubuntu-ports'
mkdir /tmp/autopkgtest.58S3ah/autopkgtest_tmp/schroot-disco
mknod: /tmp/autopkgtest.58S3ah/autopkgtest_tmp/schroot-disco/test-dev-null: Operation not permitted
E: Cannot install into target '/tmp/autopkgtest.58S3ah/autopkgtest_tmp/schroot-disco' mounted with noexec or nodev
E: Error running debootstrap at /usr/bin/sbuild-createchroot line 397.

This is currently the cause of all dep8 failures in armhf in the canonical autopkgtest infra:

http://autopkgtest.ubuntu.com/packages/sbuild

Related branches

Changed in sbuild (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Alternatively, the test could be changed to tell debootstrap to use another directory, other than /tmp:
[ -z "$ADTTMP" ] && die "ADTTMP not set"
dir="$ADTTMP/schroot-$release"
...
sbuild-createchroot $components "$release" "$dir" "$url"

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sbuild - 0.77.1-2ubuntu2

---------------
sbuild (0.77.1-2ubuntu2) disco; urgency=medium

  * d/t/control: add isolation-machine to the test flags (LP: #1806389)
  * d/t/build-procenv: only install the built package if the chroot it was
    built in matches the release of the host system (LP: #1806388)

 -- Andreas Hasenack <email address hidden> Mon, 03 Dec 2018 11:47:38 -0200

Changed in sbuild (Ubuntu):
status: In Progress → 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.