trusty kernel tests install wrong kernel (from -updates)

Bug #1522469 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

We are landing a new linux-meta 3.13.0.72.78 http://people.canonical.com/~ubuntu-archive/proposed-migration/trusty/update_excuses.html#linux-meta in trusty. However, most of these tests are invalid and run against the kernel in -updates. For example

   https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-trusty/trusty/amd64/b/bbswitch/20151203_140546%40/log.gz

  --apt-pocket=proposed=src:linux-meta --apt-upgrade bbswitch --env=ADT_TEST_TRIGGERS=linux-meta/3.13.0.72.78
[...]
The following NEW packages will be installed:
  linux-headers-3.13.0-71 linux-headers-3.13.0-71-generic
  linux-image-3.13.0-71-generic

Simple reproducer locally from git:

  ./run-from-checkout -d --apt-pocket=proposed=src:linux-meta --apt-upgrade bbswitch --setup-commands 'apt-get install -y linux-image linux-headers || apt-get install -y linux-image-generic linux-headers-generic' --- schroot trusty

Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: New → Triaged
status: Triaged → In Progress
importance: Undecided → Critical
assignee: nobody → Martin Pitt (pitti)
milestone: none → ubuntu-15.12
Revision history for this message
Martin Pitt (pitti) wrote :

Indeed the apt pinning is wrong here:

# apt-cache policy linux-image-generic
linux-image-generic:
  Installed: 3.13.0.71.77
  Candidate: 3.13.0.71.77
  Version table:
     3.13.0.72.78 0
        800 http://de.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
 *** 3.13.0.71.77 0
        900 http://de.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.13.0.24.28 0
        900 http://de.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

# cat /etc/apt/preferences.d/autopkgtest-trusty-proposed
Package: linux-crashdump linux-generic-lpae-lts-saucy linux-generic-lpae-lts-saucy-eol-upgrade linux-generic-lts-quantal linux-generic-lts-quantal-eol-upgrade linux-generic-lts-raring linux-generic-lts-raring-eol-upgrade linux-generic-lts-saucy linux-generic-lts-saucy-eol-upgrade linux-headers-generic-lpae-lts-saucy linux-headers-generic-lts-quantal linux-headers-generic-lts-raring linux-headers-generic-lts-saucy linux-hwe-generic-trusty linux-hwe-virtual-trusty linux-image-generic-lpae-lts-saucy linux-image-generic-lts-quantal linux-image-generic-lts-raring linux-image-generic-lts-saucy linux-image-hwe-generic-trusty linux-image-hwe-virtual-trusty linux-signed-generic-lts-quantal linux-signed-generic-lts-quantal-eol-upgrade linux-signed-generic-lts-raring linux-signed-generic-lts-raring-eol-upgrade linux-signed-image-generic-lts-quantal linux-signed-image-generic-lts-raring linux-signed-image-generic-lts-saucy linux-source linux-tools-generic-lpae-lts-saucy linux-tools-generic-lts-saucy linux-tools-lts-quantal linux-tools-lts-raring linux-tools-lts-saucy
Pin: release a=trusty-proposed
Pin-Priority: 990

Package: *
Pin: release a=trusty
Pin-Priority: 900

Package: *
Pin: release a=trusty-updates
Pin-Priority: 900

Package: *
Pin: release a=trusty-proposed
Pin-Priority: 800

Indeed "linux-image-generic" is clearly missing from the binary package list there.

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.18.2

---------------
autopkgtest (3.18.2) unstable; urgency=medium

  [ Martin Pitt ]
  * tools/adt-build-lxc: Install libpam-systemd; some tests expect to have an
    $XDG_RUNTIME_DIR.
  * Fix --apt-pocket=proposed=pkgname.. to set up the apt pinning before
    running setup-commands (in particular, dist-upgrade), as otherwise the
    dist-ugprade will install package versions that conflict with the pinning.
    Change --apt-pocket to download (only) the apt indexes for the given
    pocket, so that we can set up the pinning correctly.
  * ssh-setup-nova: Separately track server UUID, to avoid resetting the
    originally given --name on testbed revert.
  * If apt-get fails for --apt-pocket ("Hash sum mismatch"!), retry up to
    three times.
  * Fix parsing of "apt-cache showsrc" to not get broken by wrapped lines.
    Thanks Andy Whitcroft! (LP: #1522469)
  * Don't try to "cd ." on testbeds in source rules commands, as this might be
    inaccessible in some cases. Default to '/' instead. Thanks Christopher
    Baine!
  * ssh-setup/nova: Treat --image value as a regexp pattern and use the
    greatest (by string sorting) result. This avoids having to put date stamps
    into the command line, and also avoids completely falling over if two
    images have the same name.
  * Add a new ssh setup script command "debug-failure" which is called when
    the setup script fails with nonzero or on timeouts waiting for ssh or
    reboot.
  * ssh-setup/nova: Implement "debug-failure" command with "nova console-log".
  * tools/adt-build-lxc: Only install libpam-systemd if that exists (e. g. not
    on Ubuntu 12.04).
  * setup-commands/cloud-vm-setup: Don't rm the /etc/cron.daily/apt conffile
    to avoid breaking apt upgrades. Instead, create
    /etc/apt/apt.conf.d/02periodic.
  * Create a testinfo.json for "badpkg" and other exit codes as well.
  * Set stdin to /dev/null when running commands in the testbed. This avoids
    hanging tests on interactive questions and also fixes auxverbs which check
    if stdin is a PTY (like "lxc exec").
  * tests/testarchive.py: Don't include the "Release" file into itself.
  * Fix SchrootRunner.test_apt_pocket_* test cases to include "Sources" into
    Release file. This makes the tests work with apt 1.1.

  [ Max Brustkern ]
  * adt-buildvm-ubuntu-cloud: Add timeout option.

  [ Antonio Terceiro ]
  * adt-build-lxc: Don't hardcode bridge interface.

 -- Martin Pitt <email address hidden> Wed, 09 Dec 2015 12:38:13 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → 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.