ubuntu-cloud template can't find .img

Bug #979996 reported by Serge Hallyn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When creating releases older than precise, i.e.
lxc-create -t ubuntu-cloud -n o1 -- -r oneiric

I get the following error. note that the tarball contains:
oneiric-server-cloudimg-amd64.img, not ubuntu-11.10-server-cloudimg-amd64.img.

===============================

ubuntu@server-8308:~$ sudo lxc-create -t ubuntu-cloud -n cloudl1 -- -r oneiric

No config file specified, using the default config
ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query
wget is /usr/bin/wget
--2012-04-12 15:34:02-- https://cloud-images.ubuntu.com/server/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64-root.tar.gz
Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141
Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud-images.ubuntu.com/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64-root.tar.gz [following]
--2012-04-12 15:34:02-- https://cloud-images.ubuntu.com/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64-root.tar.gz
Reusing existing connection to cloud-images.ubuntu.com:443.
HTTP request sent, awaiting response... 404 Not Found
2012-04-12 15:34:02 ERROR 404: Not Found.

Downloading cloud image from https://cloud-images.ubuntu.com/server/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64.tar.gz
--2012-04-12 15:34:02-- https://cloud-images.ubuntu.com/server/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64.tar.gz
Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141
Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud-images.ubuntu.com/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64.tar.gz [following]
--2012-04-12 15:34:02-- https://cloud-images.ubuntu.com/releases/oneiric/release-20120401/ubuntu-11.10-server-cloudimg-amd64.tar.gz
Reusing existing connection to cloud-images.ubuntu.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 217901063 (208M) [application/x-gzip]
Saving to: `ubuntu-11.10-server-cloudimg-amd64.tar.gz'

100%[===============================================================================================================================>] 217,901,063 15.8M/s in 12s

2012-04-12 15:34:14 (17.2 MB/s) - `ubuntu-11.10-server-cloudimg-amd64.tar.gz' saved [217901063/217901063]

Creating new cached cloud image rootfs
tar: ubuntu-11.10-server-cloudimg-amd64.img: Not found in archive
tar: Exiting with failure status due to previous errors
umount: /var/cache/lxc/cloud-oneiric/./tmp.XAPfavowLw: not mounted
failed to execute template 'ubuntu-cloud'
aborted

Related branches

Changed in lxc (Ubuntu):
importance: Undecided → High
status: New → Incomplete
status: Incomplete → Confirmed
assignee: nobody → Ben Howard (utlemming)
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu52

---------------
lxc (0.7.5-3ubuntu52) precise; urgency=low

  [ Ben Howard ]
  * Fixed image extraction for old releases (LP: #979996).

  [ Timothy Chen ]
  * 0072-lxc-shutdown-help: display usage when passed help. (LP: #980905)
  * 0073-lxc-destroy-waits-before-destroy: lxc-shutdown waits for the
    container to fully stop before it destroys it. (LP: #980902)
 -- Serge Hallyn <email address hidden> Mon, 16 Apr 2012 12:02:06 -0500

Changed in lxc (Ubuntu):
status: Confirmed → 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.