[SRU] sync 14.04 cloud-initramfs-tools to 12.04

Bug #1515661 reported by Scott Moser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Fix Released
Medium
Scott Moser
Precise
Fix Released
Medium
Scott Moser

Bug Description

=== Begin SRU Template ===
[Impact]
MAAS uses 'maas images' from http://maas.ubuntu.com/images/ephemeral-v2/ to
boot a ephemeral environment for curtin to do an install in. The ephemeral
environment is pxe booted with root on a iscsi target also provided by MAAS

For hardware enablement kernels the kernel is not installed in the iscsi
root. Instead, the initramfs contains all the modules that are necessary
and cloud-initramfs-copymods takes care of copying those modules from
/lib/modules in the initramfs into the target.

This is a well tested path in 14.04 and later, but was not present in 12.04.

The request is to bring cloud-intiramfs-tools code from 14.04 to 12.04. This would also bring in overlayroot and dyn-netconf packages.

[Test Case]
Simple test case: install cloud-initramfs-copymods in prese.
  * boot precise system
  * enable proposed
  * apt-get update && apt-get install -qy cloud-initramfs-copymods
  * initrd=/boot/initrd.img-$(uname -r)
    echo $initrd
    lsinitramfs $initrd | grep copymods && echo GOOD || echo MISSING

MAAS Image Test case: Check maas image for presense of copymods
  * download latest daily initramfs precise hwe-t. from http://maas.ubuntu.com/images/ephemeral-v2/daily/precise/amd64/ . Under that URL you'll find a date. Given that date:
     $ serial=20151105
     $ burl=http://maas.ubuntu.com/images/ephemeral-v2/daily/precise/amd64
     $ wget "$burl/$serial/trusty/generic/boot-initrd" -O boot-initrd
     $ lsinitramfs | grep copymods && echo GOOD || echo MISSING

MAAS 1.9 Test Case: Deploy MAAS 1.9 with bcache.
  * configure a node for bcache
  * install node
  * currently this will fail with error like:
     FATAL: Could not load /lib/modules/3.13.0-68-generic/modules.dep: No such file or directory
     An error occured handling 'bcache0': ProcessExecutionError - Unexpected error while running command.
     Command: ['modprobe', 'bcache']

[Regression Potential]
New binary only package will not likely cause any regression. Only to people who pick up this new package which takes action on their part.

There are 2 changes that come in to existing code, both are in growroot.
a.) identify partitions named with a 'p' (mmcblk0p1) (LP: #1236380)
b.) support new versions of growpart which changed exit status. This change is backwards compatible as growpart looks at the exit output written rather than only at the exit code.

[Other Information]
MAAS precise images build with ppa:maas-maintainers/maas-ephemeral-images [1] enabled. That ppa currently has a quantal level version of cloud-initramfs-tools in it. Taking the trusty version of cloud-initramfs-tools back will allow us to drop that package in the PPA and also have a more supportable path.

  [1] https://launchpad.net/~maas-maintainers/+archive/ubuntu/maas-ephemeral-images/
=== End SRU Template ===

cloud-initramfs-copymods is an initramfs module that copies moves the modules from the initramfs into the root if there are no modules in the root. This allows you to boot an initramfs with a root= and after pivot_root still see the modules as if they were there.

bug 1513176 reported failure of bcache with maas images. The failure was two pronged.
A.) there was no bcache module in the initramfs .
B.) in precise, there is no cloud-initramfs-copymods available in the archive

In order to boot hwe kernels with 12.04 in MAAS, we need to add cloud-initramfs-copymods to the initramfs.

Related branches

Scott Moser (smoser)
Changed in cloud-initramfs-tools (Ubuntu):
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Medium
status: New → Confirmed
Changed in cloud-initramfs-tools (Ubuntu Precise):
status: New → Confirmed
Changed in cloud-initramfs-tools (Ubuntu):
status: Confirmed → Fix Released
Changed in cloud-initramfs-tools (Ubuntu Precise):
importance: Undecided → Medium
assignee: nobody → Scott Moser (smoser)
Changed in maas-images:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Scott Moser (smoser)
Scott Moser (smoser)
description: updated
Scott Moser (smoser)
description: updated
Scott Moser (smoser)
description: updated
summary: - SRU:add cloud-initramfs-copymods to 12.04
+ [SRU] sync 14.04 cloud-initramfs-tools to 12.04
Scott Moser (smoser)
description: updated
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Scott, or anyone else affected,

Accepted cloud-initramfs-tools into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-initramfs-tools/0.25ubuntu1.12.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in cloud-initramfs-tools (Ubuntu Precise):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
LaMont Jones (lamont) wrote :

I have verified this fix.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-initramfs-tools - 0.25ubuntu1.12.04.1

---------------
cloud-initramfs-tools (0.25ubuntu1.12.04.1) precise-proposed; urgency=medium

  * no change backport of 0.25ubuntu1.14.04.1 from 14.04 to 12.04
    (LP: #1515661)
    + add new binary packages: overlayroot, cloud-initramfs-copymods,
      cloud-initramfs-dyn-netconf
    + growroot: correctly identify partition and block device for devices
      named like devnameXpN, such as mmcblk0p1 (LP: #1236380).
    + growroot: support newer versions of growpart which exit 1
      for 'NOCHANGE'.

 -- Scott Moser <email address hidden> Thu, 12 Nov 2015 13:02:02 -0500

Changed in cloud-initramfs-tools (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for cloud-initramfs-tools has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Scott Moser (smoser) wrote :

To show verification of 'MAAS Image Test case' for working in 20151119 and fail in 20151117:

$ burl=http://maas.ubuntu.com/images/ephemeral-v2/daily/precise/amd64
$ wget "$burl/$serial/trusty/generic/boot-initrd" -O boot-initrd
$ for ser in 20151117 20151119; do for arch in i386 amd64; do
   for krel in precise trusty; do
     out=boot-initrd.$ser.$arch.$krel
     [ -f "$out" ] || wget -qO "$out" "$burl/$ser/$krel/generic/boot-initrd"
     echo -n "$out:"
     lsinitramfs $out | grep -q copymods && echo GOOD || echo MISSING
   done; done; done
boot-initrd.20151117.i386.precise:MISSING
boot-initrd.20151117.i386.trusty:MISSING
boot-initrd.20151117.amd64.precise:MISSING
boot-initrd.20151117.amd64.trusty:MISSING
boot-initrd.20151119.i386.precise:GOOD
boot-initrd.20151119.i386.trusty:GOOD
boot-initrd.20151119.amd64.precise:GOOD
boot-initrd.20151119.amd64.trusty:GOOD

[1] http://maas.ubuntu.com/images/ephemeral-v2/daily/precise/
[2] http://maas.ubuntu.com/images/ephemeral-v2/daily/precise/amd64/20151119/trusty/generic/

Scott Moser (smoser)
no longer affects: maas-images
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.