make iso fails: some packages fail to install in Ubuntu chroot

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

Bug Description

make iso fails when creating Ubuntu chroot (used for image based provisioning) with the following error:

Selecting previously unselected package linux-image-3.13.0-40-generic.
Preparing to unpack .../linux-image-3.13.0-40-generic_3.13.0-40.69_amd64.deb ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
grep: /proc/cpuinfo: No such file or directory
This kernel does not support a non-PAE CPU.
dpkg: error processing archive /tmp/mirror/ubuntu/pool/main/linux-image-3.13.0-40-generic_3.13.0-40.69_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

The root cause is that /proc is not mounted in the staging chroot, hence the configuration scripts which need /proc fail.

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/142409

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

Reviewed: https://review.openstack.org/142409
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=2c7395dae943e3098660653ecf7c0fb1dfb40d07
Submitter: Jenkins
Branch: master

commit 2c7395dae943e3098660653ecf7c0fb1dfb40d07
Author: Alexei Sheplyakov <email address hidden>
Date: Wed Dec 17 11:47:54 2014 +0300

    image/ubuntu: fix packages installation failures due to missing /proc

    The configuration scripts of some packages (in particular linux-image)
    fail if /proc is not mounted. Mount /proc in the chroot before installing
    packages (and umount it afterwards).

    Related-bug: #1383641
    Closes-bug: #1403435
    blueprint support-ubuntu-trusty
    Change-Id: I6846b7d7107260125291efee27f6205b8e48969f

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.