Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575570 - app-emulation/lxc: lxc-create: Installation of gentoo template fails with 404
Summary: app-emulation/lxc: lxc-create: Installation of gentoo template fails with 404
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 17:26 UTC by Kristian Fiskerstrand (RETIRED)
Modified: 2018-06-16 02:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lxc-1.0.7-kf-gentoo-template.patch (lxc-1.0.7-kf-gentoo-template.patch,1.38 KB, patch)
2016-02-24 17:28 UTC, Kristian Fiskerstrand (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-02-24 17:26:54 UTC
# lxc-create -n gentoo_test -t gentoo
### set_default_arch: default arch/variant autodetect...
 => Got: arch=amd64 variant=amd64
Attempting to obtain an exclusive lock (timeout: 60 sec) named
"cache-amd64-amd64"...
 => done.
 => Executing "do_all"
###### cache_setup(): doing cache preparation
### cache_precheck(): doing some pre-start checks ...
### cache_stage3(): stage3 cache deployment...
Determining path to latest Gentoo amd64 (amd64) stage3 archive...
 => downloading and processing
http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt
 => Got: 20160218/stage3-amd64-20160218.tar.bz2 250588707
Downloading/untarring the actual stage3 tarball...
--2016-02-21 17:17:39--
http://distfiles.gentoo.org/releases/amd64/autobuilds/20160218/stage3-amd64-20160218.tar.bz2%20250588707
Resolving distfiles.gentoo.org... 64.50.233.100, 64.50.236.52, 156.56.247.195,
...
Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-02-21 17:17:39 ERROR 404: Not Found.


bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now

[the last exit code leading to this death was: 2 ]
Error: unable to fetch or untar
lxc_container: lxccontainer.c: create_run_template: 1125 container creation
template for gentoo_test failed
lxc_container: lxc_create.c: main: 271 Error creating container gentoo_test
Comment 1 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-02-24 17:28:22 UTC
Created attachment 426460 [details, diff]
lxc-1.0.7-kf-gentoo-template.patch

From 950e94b0ad06eaca2227956559334c511e3064f2 Mon Sep 17 00:00:00 2001
From: Kristian Fiskerstrand <kristian.fiskerstrand@sumptuouscapital.com>
Date: Wed, 24 Feb 2016 10:15:47 +0100
Subject: [PATCH] templates/lxc-gentoo.in: Fix download issue due to updated
 pointer

templates/lxc-gentoo.in downloads a pointer to the latest
stage3 release, e.g
http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt
that contains two fields, the path to the file itself and a timestamp.

The timestamp is attempted to be included in the further downloading
automatically, resulting in 404 error. By splitting this properly
download works again
---
 templates/lxc-gentoo.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Virgil Dupras (RETIRED) gentoo-dev 2018-06-16 02:39:04 UTC
Similarly to Bug 650770 , as of today on LXC 3.0.1 with lxc-templates installed, creating a new container with the "gentoo" template works fine. Closing.