Public bug reported:

The modules-extra packages for derivative kernels (maybe just some of
them) do not get installed during ADT testing, despite what looks like
an attempt to do so with this setup-command:


--setup-commands 'apt-get install -y 
^kernel-testing--linux\-aws\-6\.5--modules-extra--preferred$ || apt-get install 
-y ^linux-modules-extra\-aws\-6\.5$ || :'

This results in nothing being found:
146s Reading package lists...
155s Building dependency tree...
155s Reading state information...E: Unable to locate package 
^kernel-testing--linux-aws-6.5--modules-extra--preferred$
155s E: Couldn't find any package by glob 
'^kernel-testing--linux-aws-6.5--modules-extra--preferred$'
155s E: Couldn't find any package by regex 
'^kernel-testing--linux-aws-6.5--modules-extra--preferred$'
155s Reading package lists...
155s Building dependency tree...
155s Reading state information...
155s 
155s E: Unable to locate package ^linux-modules-extra-aws-6.5$
155s E: Couldn't find any package by glob '^linux-modules-extra-aws-6.5$'
155s E: Couldn't find any package by regex '^linux-modules-extra-aws-6.5$'

From https://autopkgtest.ubuntu.com/results/autopkgtest-
jammy/jammy/amd64/n/nvidia-graphics-
drivers-520/20240409_174454_51c2a@/log.gz

When testing linux-generic, the modules-extra package is installed as a
result of a dependency from linux-image-generic:

$ apt-cache show linux-image-generic
…
Depends: linux-image-5.15.0-105-generic, 
linux-modules-extra-5.15.0-105-generic, linux-firmware, intel-microcode, 
amd64-microcode

But the aws kernel is different:

$ apt-cache show linux-image-aws
…
Depends: linux-image-6.5.0-1018-aws, microcode-initrd
$ apt-cache show linux-image-6.5.0-1018-aws
…
Depends: kmod, linux-base (>= 4.5ubuntu1~16.04.1), linux-modules-6.5.0-1018-aws

The only thing which depends on the modules-extra package, is what looks
like a meta package: 

$ apt-cache rdepends linux-modules-extra-6.5.0-1018-aws
linux-modules-extra-6.5.0-1018-aws
Reverse Depends:
  linux-modules-extra-aws
  linux-modules-extra-aws-edge
$ apt-cache rdepends linux-modules-extra-aws
linux-modules-extra-aws
Reverse Depends:
$ apt-cache rdepends linux-modules-extra-aws-edge
linux-modules-extra-aws-edge
Reverse Depends:

This meta package does contain a “Provides”, but it does not match what the ADT 
setup command is trying to install:
$ apt-cache show linux-modules-extra-aws
Package: linux-modules-extra-aws
…
Provides: kernel-testing--linux-aws-6.5--modules-extra--aws
Depends: linux-modules-extra-6.5.0-1018-aws

The difference is `^kernel-testing--linux-aws-6.5--modules-extra--
preferred$` vs `kernel-testing--linux-aws-6.5--modules-extra--aws`

I do not have a list of kernels that show this behavior. Just looked at
focal:linux-aws-5.15, focal:linux-azure-5.15 and jammy:linux-aws-6.5
(and compared with the behavior of jammy:linux)

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2063489

Title:
  modules-extra packages not installed during ADT testing for some
  kernels

Status in ubuntu-kernel-tests:
  New

Bug description:
  The modules-extra packages for derivative kernels (maybe just some of
  them) do not get installed during ADT testing, despite what looks like
  an attempt to do so with this setup-command:

  
  --setup-commands 'apt-get install -y 
^kernel-testing--linux\-aws\-6\.5--modules-extra--preferred$ || apt-get install 
-y ^linux-modules-extra\-aws\-6\.5$ || :'

  This results in nothing being found:
  146s Reading package lists...
  155s Building dependency tree...
  155s Reading state information...E: Unable to locate package 
^kernel-testing--linux-aws-6.5--modules-extra--preferred$
  155s E: Couldn't find any package by glob 
'^kernel-testing--linux-aws-6.5--modules-extra--preferred$'
  155s E: Couldn't find any package by regex 
'^kernel-testing--linux-aws-6.5--modules-extra--preferred$'
  155s Reading package lists...
  155s Building dependency tree...
  155s Reading state information...
  155s 
  155s E: Unable to locate package ^linux-modules-extra-aws-6.5$
  155s E: Couldn't find any package by glob '^linux-modules-extra-aws-6.5$'
  155s E: Couldn't find any package by regex '^linux-modules-extra-aws-6.5$'

  From https://autopkgtest.ubuntu.com/results/autopkgtest-
  jammy/jammy/amd64/n/nvidia-graphics-
  drivers-520/20240409_174454_51c2a@/log.gz

  When testing linux-generic, the modules-extra package is installed as
  a result of a dependency from linux-image-generic:

  $ apt-cache show linux-image-generic
  …
  Depends: linux-image-5.15.0-105-generic, 
linux-modules-extra-5.15.0-105-generic, linux-firmware, intel-microcode, 
amd64-microcode

  But the aws kernel is different:

  $ apt-cache show linux-image-aws
  …
  Depends: linux-image-6.5.0-1018-aws, microcode-initrd
  $ apt-cache show linux-image-6.5.0-1018-aws
  …
  Depends: kmod, linux-base (>= 4.5ubuntu1~16.04.1), 
linux-modules-6.5.0-1018-aws

  The only thing which depends on the modules-extra package, is what
  looks like a meta package: 

  $ apt-cache rdepends linux-modules-extra-6.5.0-1018-aws
  linux-modules-extra-6.5.0-1018-aws
  Reverse Depends:
    linux-modules-extra-aws
    linux-modules-extra-aws-edge
  $ apt-cache rdepends linux-modules-extra-aws
  linux-modules-extra-aws
  Reverse Depends:
  $ apt-cache rdepends linux-modules-extra-aws-edge
  linux-modules-extra-aws-edge
  Reverse Depends:

  This meta package does contain a “Provides”, but it does not match what the 
ADT setup command is trying to install:
  $ apt-cache show linux-modules-extra-aws
  Package: linux-modules-extra-aws
  …
  Provides: kernel-testing--linux-aws-6.5--modules-extra--aws
  Depends: linux-modules-extra-6.5.0-1018-aws

  The difference is `^kernel-testing--linux-aws-6.5--modules-extra--
  preferred$` vs `kernel-testing--linux-aws-6.5--modules-extra--aws`

  I do not have a list of kernels that show this behavior. Just looked
  at focal:linux-aws-5.15, focal:linux-azure-5.15 and jammy:linux-
  aws-6.5 (and compared with the behavior of jammy:linux)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2063489/+subscriptions


-- 
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to     : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help   : https://help.launchpad.net/ListHelp

Reply via email to