Half-broken Debian installer initramfs image

Bug #1397845 reported by Alexei Sheplyakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Alexei Sheplyakov

Bug Description

Debian installer's initrd.gz on Fuel ISO is not compressed, and contains (a broken) chunk of itself:

$ file /mnt/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
/mnt/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz: ASCII cpio archive (SVR4 with no CRC)
$ cpio --list < /mnt/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz | grep -e 'initrd\.gz'
initrd.gz

Thus initrd (or rather initramfs) is more than 2x larger than it should have been:

$ ls -sh /mnt/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
55M /mnt/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz

The original initrd is:

$ ls -hs local_mirror/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
20M local_mirror/ubuntu/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz

This slows down the provisioning (2x more data should be transferred over the network) for no good reason and puts the extra load on the master node.

description: updated
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Alexei, please add iso version.

Changed in fuel:
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/138010

Changed in fuel:
assignee: nobody → Alexei Sheplyakov (asheplyakov)
status: Incomplete → In Progress
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

> please add iso version.

I think any 6.0 ISO since the commit b0c8fc14f30792752cd49a2127ada79888d8b27a (circa October 2014) is affected.
I've found the issue with a locally built custom ISO, but the problem is generic, see https://review.openstack.org/138010 for more details.

Changed in fuel:
milestone: none → 6.1
Changed in fuel:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/138010
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=63882d87476a6bfff9d3ca21b4633115ba22baab
Submitter: Jenkins
Branch: master

commit 63882d87476a6bfff9d3ca21b4633115ba22baab
Author: Alexei Sheplyakov <email address hidden>
Date: Sun Nov 30 10:12:37 2014 +0300

    ubuntu: produce a valid Debian installer initrd.gz

    The code which applies initrd patch(es) produces a half-broken initrd which
    is a) not compressed, b) contains a chunk of itself. Fortunately the initrd
    is still able to boot, however, it's 2.5x larger than the original. This
    slows down the provisioning and puts an extra load on the master node.

    Closes-bug: #1397845
    blueprint support-ubuntu-trusty
    Change-Id: I666a4395e577b917016c2220a760a4cf340a54d2

Changed in fuel:
status: In Progress → Fix Committed
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.