lxc-fedora template is broken with fedora 17

Bug #1005951 reported by Eslam
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
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
Revision history for this message
anatoly techtonik (techtonik) wrote :

I confirm that it fixes Fedora 17 download.

Revision history for this message
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

Revision history for this message
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)
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.