Um, sorry, this is kind of a last-minute afterthought, so I'm not expecting it for F19 launch or anything crazy. But:
For F19, we're putting cloud images on the mirrors. In the staging tree, the URL is like this:
https://dl.fedoraproject.org/pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_6...
and I presume that the final pattern will be
../19/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2
(Or possibly s/Images/Cloud/ -- I had thought that's what we previously agreed but I need to dig that up.)
Is there a way that we could make permanent URLs for the following:
- per-versionsorted list of URLs to the image on mirrors - per-version redirect to the closest (or at least randomly chosen) image suitable for giving to OpenStack Glance directly - an unversioned URL redirecting to the latest per-version list - an unversioned URL redirecting to the latest-version redirect
I'm just guessing that mirrormanager is the best place for this. I'm happy with any other solution....
MirrorManager has no way to do any of the 4 redirects you're asking for today, so it would have to be a feature enhancement, if done there.
The trick is, you want URLs that, like the mirrorlist?repo=foo&arch=bar, act as an indirection, meaning, a constant string URL that then points to where said content actually is (perhaps it's in the staging tree right now, and later it's in the releases tree). Right? We can do this for yum repositories today, but MM can't do it for arbitrary files - not impossible, it just isn't implemented today. So by F19, no chance.
An alternative manual solution would be to deploy apache mod_rewrite lines, such as: RewriteRule permalink?file=Fedora-x86_64-19-sda.qcow2 mirrorlist?path=pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2&redirect=1 RewriteRule mirrorlist?file=Fedora-x86_64-19-sda.qcow2 mirrorlist?path=pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2 RewriteRule permalink?file=Fedora-x86_64-sda.qcow2 mirrorlist?path=pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2&redirect=1 RewriteRule mirrorlist?file=Fedora-x86_64-sda.qcow2 mirrorlist?path=pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2 and update them manually as the files change location and version.
If instead done in MM, use of file=<something> here would be new arguments to the mirrorlist/metalink URLs already existing, and would have to be unique across the whole file system, so couldn't be used with an arbitrary file (e.g. repomd.xml), only those with unique names...
-- Matt Domsch Distinguished Engineer, Technology Strategist Dell | Office of the CTO
-----Original Message----- From: infrastructure-bounces@lists.fedoraproject.org [mailto:infrastructure-bounces@lists.fedoraproject.org] On Behalf Of Matthew Miller Sent: Tuesday, June 25, 2013 10:12 AM To: infrastructure@lists.fedoraproject.org Subject: mirrormanager support for the cloud image
Um, sorry, this is kind of a last-minute afterthought, so I'm not expecting it for F19 launch or anything crazy. But:
For F19, we're putting cloud images on the mirrors. In the staging tree, the URL is like this:
https://dl.fedoraproject.org/pub/alt/stage/19-RC1/Images/x86_64/Fedora-x86_6...
and I presume that the final pattern will be
../19/Images/x86_64/Fedora-x86_64-19-20130624-sda.qcow2
(Or possibly s/Images/Cloud/ -- I had thought that's what we previously agreed but I need to dig that up.)
Is there a way that we could make permanent URLs for the following:
- per-versionsorted list of URLs to the image on mirrors - per-version redirect to the closest (or at least randomly chosen) image suitable for giving to OpenStack Glance directly - an unversioned URL redirecting to the latest per-version list - an unversioned URL redirecting to the latest-version redirect
I'm just guessing that mirrormanager is the best place for this. I'm happy with any other solution....
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ infrastructure mailing list infrastructure@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/infrastructure
On Sun, Jun 30, 2013 at 11:47:57PM -0500, Matt_Domsch@Dell.com wrote:
MirrorManager has no way to do any of the 4 redirects you're asking for today, so it would have to be a feature enhancement, if done there.
[...]
An alternative manual solution would be to deploy apache mod_rewrite lines, such as:
Can I feature-request the first for F20 and the second as a temporary approach for f19?
I assume the second is best filed as a ticket; what about the former?
Given how little time I've had for MM in the past few years (2 weeks ago not withstanding), feature requests accompanied by patches would be most appreciated. :-)
-- Matt Domsch Distinguished Engineer, Technology Strategist Dell | Office of the CTO
-----Original Message----- From: infrastructure-bounces@lists.fedoraproject.org [mailto:infrastructure-bounces@lists.fedoraproject.org] On Behalf Of Matthew Miller Sent: Monday, July 01, 2013 7:12 AM To: Fedora Infrastructure Subject: Re: mirrormanager support for the cloud image
On Sun, Jun 30, 2013 at 11:47:57PM -0500, Matt_Domsch@Dell.com wrote:
MirrorManager has no way to do any of the 4 redirects you're asking for today, so it would have to be a feature enhancement, if done there.
[...]
An alternative manual solution would be to deploy apache mod_rewrite lines, such as:
Can I feature-request the first for F20 and the second as a temporary approach for f19?
I assume the second is best filed as a ticket; what about the former?
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ infrastructure mailing list infrastructure@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/infrastructure
infrastructure@lists.fedoraproject.org