Ubuntu

lxc-fedora template is broken with fedora 17

Reported by Eslam on 2012-05-29
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Low
Unassigned

Bug Description

lxc-fedora template is broken with feodra 17 as release url changes from RELEASE_URL="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm" to RELEASE_URL="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm"

Changed in lxc (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → Triaged
anatoly techtonik (techtonik) wrote :

I confirm that it fixes Fedora 17 download.

Dan Kegel (dank) wrote :

Yeah, this fixes download, but there are worse problems with fedora > 15:

--- lxc-fedora.orig 2012-08-27 14:08:55.870661264 -0700
+++ lxc-fedora 2012-08-27 14:09:01.966663229 -0700
@@ -138,7 +138,12 @@
             echo "Failed to get a mirror"
             continue
         fi
- RELEASE_URL="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm"
+ if test $release -lt 17
+ then
+ RELEASE_URL="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm"
+ else
+ RELEASE_URL="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm"
+ fi
         echo "Fetching from $RELEASE_URL"
         curl -f "$RELEASE_URL" > $INSTALL_ROOT/fedora-release-$release.noarch.rpm
         if [ $? -ne 0 ]; then

Serge Hallyn (serge-hallyn) wrote :

@Dan,

Is what is in comment #2 enoug to fix the bug for you?

If not, do you mind preparing a full diff? I'll go ahead and apply it then.

Changed in lxc (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Serge Hallyn (serge-hallyn)
Serge Hallyn (serge-hallyn) wrote :

Changing these links is not sufficient to make fedora release > 15 succeed, unfortunately.

Changed in lxc (Ubuntu):
assignee: Serge Hallyn (serge-hallyn) → nobody
status: In Progress → Triaged
Serge Hallyn (serge-hallyn) wrote :

A new lxc-fedora template, by Michael Warfield, which works on ubuntu has been pushed to upstream git.

Changed in lxc (Ubuntu):
status: Triaged → Fix Committed
Changed in lxc (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers