Image builds on Ubuntu 14.04 fails with errors

Bug #1386353 reported by azher ullah khan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
azher ullah khan

Bug Description

While performing the image builds using diskimage-builder on Ubuntu 14.04 (mke2fs 1.42.9) VM the builds fail with the below error. However the build completes successfully while performed on Ubuntu 13.10 (mke2fs 1.42.8) VM.

Below is the error log:
************************************************************************************************************************
----------------------- PROFILING -----------------------

Target: post-install.d

Script Seconds
--------------------------------------- ----------

99-write-dpkg-manifest 0.018
99-clean-up-cache 0.034
99-build-ramdisk 5.360
95-post-configure-hacks 0.006
01-ensure-binaries 0.017
00-unconfigure-pypi-mirror 0.006

--------------------- END PROFILING ---------------------

mke2fs 1.42.9 (4-Feb-2014)
Discarding device blocks: 4096/393168 done
Filesystem label=cloudimg-rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
393216 inodes, 393168 blocks
19658 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
32768 inodes per group
Superblock backups stored on blocks:
 32768, 98304, 163840, 229376, 294912

Allocating group tables: 0/12 done
Writing inode tables: 0/12 done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: 0/12 done

mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/4': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/3': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/0': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/1': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/7': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/2': Operation not permitted
mv: cannot remove '/tmp/image.ZmAXOSQD/built/dev/pts/ptmx': Operation not permitted
mv: error reading '/tmp/image.ZmAXOSQD/built/proc/sysrq-trigger': Input/output error
mv: failed to extend '/tmp/image.ZmAXOSQD/mnt/proc/sysrq-trigger': Input/output error
************************************************************************************************************************

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

azher, Thanks for taking the time to file this bug report, it is much appreciated.

I've built quite a few, in the hundreds, of images on Ubuntu 14.04 VMs without seeing this problem.

The error itself doesn't look like an mke2fs problem anyway. Can you look in your logs for apparmor denials, or something of that nature? Also please provide the exact command line you used to produce the error. Also a copy of the output of 'dpkg -l' would be useful.

Thanks!

Changed in diskimage-builder:
status: New → Incomplete
importance: Undecided → High
Revision history for this message
azher ullah khan (azher-ullah-khan) wrote :

Highly appreciate your help Clint,

The logs don't say much (i.e. no errors prior to the one mentioned in the description).

The exact command is as below.
"diskimage-builder/bin/ramdisk-image-create -a amd64 hp-hlinux apt-conf apt-sources deploy-ironic -o deploy-ramdisk-ironic pypi --offline use-ephemeral common-venv mellanox"

The output of 'dpkg -l' is in the below link.
http://paste.openstack.org/show/128493/

Thanks once again, in looking into this.

Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

Try to reproduce it (replacing the hp-hlinux element with debian testing) but didn't get any failure. Will contact with you private about that element.

Changed in diskimage-builder:
assignee: nobody → Ghe Rivero (ghe.rivero)
Changed in diskimage-builder:
status: Incomplete → In Progress
assignee: Ghe Rivero (ghe.rivero) → azher ullah khan (azher-ullah-khan)
Revision history for this message
azher ullah khan (azher-ullah-khan) wrote :

I reformatted my VM (which earlier had multiple partitions (disks) attached) to a single partition and installed Ubuntu 14.04 freshly on top of it.

And installed all the applications for image builds and was able to successfully build the images.

Changed in diskimage-builder:
status: In Progress → 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.