Add plug-in modules for direct downloads of glance locations.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Andreas Jaeger |
Bug Description
https:/
commit 4818e7d66105456
Author: John Bresnahan <email address hidden>
Date: Thu Jul 18 10:39:33 2013 -1000
Add plug-in modules for direct downloads of glance locations.
Glance can expose direct URL locations to its clients. In current
versions of nova the only URL that can be accessed directly is file://.
This patch adds a notion of download plug-ins. With this new download
protocol modules can be added to without disruption to the rest of the
code base. Based on the scheme of the URL returned from Glance a
plug-in will be loaded and used to download the data directly, instead
of first routing it through Glance. If anything fails in the process
the image will be downloaded by way of Glance.
To add a new download handler one must create a file with a JSON
document in it. The document must have the following:
{
'scheme': <a string representing the scheme this plug-in handles>
'module': <a python module path to the download handler class>
# the remaining entries are defined by the plug-ins specific needs
}
The path to this file is then added to the new option: download_modules.
Additionally, as part of the multiple-locations work in Glance meta data
comes back with each locations describing that location. As an example,
this is needed for direct access to file URLs. Nova cannot assume that
every file URL is accessible on its mounted file systems, nor can it
assume that the mount points are the same. This patch solves that
problem for direct access to files.
docImpact
blueprint: image-multiple-
Change-Id: I79b863c0075ceb
Changed in openstack-manuals: | |
milestone: | none → havana |
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in openstack-manuals: | |
milestone: | havana → juno |
Changed in openstack-manuals: | |
assignee: | nobody → Tom Fifield (fifieldt) |
Changed in openstack-manuals: | |
assignee: | Tom Fifield (fifieldt) → Andreas Jaeger (jaegerandi) |
Changed in openstack-manuals: | |
assignee: | Andreas Jaeger (jaegerandi) → Gauvain Pocentek (gpocentek) |
Changed in openstack-manuals: | |
assignee: | Gauvain Pocentek (gpocentek) → Andreas Jaeger (jaegerandi) |
Fix proposed to branch: master /review. openstack. org/107889
Review: https:/