Cannot enable uploading images with URL for Newton+ using IMAGES_ALLOW_LOCATION=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Image uploading with URL (URL to the image) was enabled by default before. But since Newton it's behind a config flag. There is no way to re-enable uploading with URL with the charm for Newton or newer releases.
[doc/source/
IMAGES_
~~~~~~~
.. versionadded:: 10.0.0(Newton)
Default: ``False``
If set to ``True``, this setting allows users to specify an image location
(URL) as the image source when creating or updating images. Depending on
the Glance version, the ability to set an image location is controlled by
policies and/or the Glance configuration. Therefore IMAGES_
should only be set to ``True`` if Glance is configured to allow specifying a
location. This setting has no effect when the Keystone catalog doesn't contain
a Glance v2 endpoint.
Thanks Nobuto.
For some history, IMAGES_ ALLOW_LOCATION was introduced upstream in the following commit when support was added for glance v2: http:// paste.ubuntu. com/25489609/
And here's the upstream code in particular that does the checking of IMAGES_ ALLOW_LOCATION and corresponding policy: http:// paste.ubuntu. com/25489603/
Prior to introduction of that commit upstream, it appears that image upload from URL was allowed by default.
It seems like we should add a config option to (re)enable this functionality.