euca-bundle-image can fail on small images

Bug #760157 reported by C de-Avillez
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
euca2ools
Fix Released
Undecided
Mitch Garnaat
euca2ools (Ubuntu)
High
Scott Moser

Bug Description

Binary package hint: cloud-utils

while testing beta2 on natty beta2 i386. Usage of '--use-loader' causes the image to fail publishing.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: cloud-utils 0.21ubuntu1 [modified: usr/bin/uec-publish-image usr/bin/uec-publish-tarball]
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
Date: Wed Apr 13 15:12:29 2011
PackageArchitecture: all
ProcEnviron:
 LC_TIME=en_DK.utf8
 LANGUAGE=en_US:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
C de-Avillez (hggdh2) wrote :
tags: added: iso-testing
Revision history for this message
C de-Avillez (hggdh2) wrote :

Scott Moser and I worked it out -- Scott did, actually. His proposed patch works, and I will wait for an official update to the euca2ools to test it.

Revision history for this message
C de-Avillez (hggdh2) wrote :

Marking Triaged/High, milestoning to 11.04 -- although a bypass is available (do not use '--use-loader'), this option is the preferred.

Changed in cloud-utils (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-11.04
status: New → Triaged
Scott Moser (smoser)
affects: cloud-utils (Ubuntu) → euca2ools (Ubuntu)
Changed in euca2ools (Ubuntu):
assignee: nobody → Scott Moser (smoser)
Scott Moser (smoser)
summary: - uec-publish-tarball --use-loader fails to publish an image on eucalyptus
+ euca-bundle-image can fail on small images
Revision history for this message
Scott Moser (smoser) wrote :

Mitch,
 just by looking at source code this appears like it would be an issue with current trunk also.

Dave Walker (davewalker)
tags: added: server-nrs
Revision history for this message
Scott Moser (smoser) wrote :

I'm running natty, and I'm able to easily reproduce this by doing:
$ d=$(mktemp -d)
$ truncate --size 1440K "${d}/file.img";
$ mkdir "${d}/dest"
$ euca-bundle-image --image ${d}/file.img --arch i386 --dest "${d}/dest"

The patch I'm attaching fixes the bug for euca2ools in ubuntu, it would need to be applied to euca2ools trunk.

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

this small test case demonstrates what is happening in euca2ools bundle.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package euca2ools - 1.3.1-0ubuntu7

---------------
euca2ools (1.3.1-0ubuntu7) natty; urgency=low

  * fix bug with euca-bundle-image on small files such as
    the UEC images 'loader' files (LP: #760157)
 -- Scott Moser <email address hidden> Wed, 13 Apr 2011 17:17:16 -0400

Changed in euca2ools (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Mitch Garnaat (mitch-garnaat) wrote :

I have merged this into the new development branch for euca2ools upstream. We will need to decide if we are going to merge into the 1.3.1 branch upstream.

Changed in euca2ools:
assignee: nobody → Mitch Garnaat (mitch-garnaat)
Changed in euca2ools:
status: New → Fix Committed
Changed in euca2ools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers