Merge "Deprecate allowed_direct_url_schemes and nova.image.download.modules"

This commit is contained in:
Zuul 2018-01-27 00:15:49 +00:00 committed by Gerrit Code Review
commit 92754a0f91
3 changed files with 30 additions and 0 deletions

View File

@ -54,6 +54,14 @@ an image to / from glance. 0 means no retries.
"""),
cfg.ListOpt('allowed_direct_url_schemes',
default=[],
deprecated_for_removal=True,
deprecated_since='17.0.0',
deprecated_reason="""
This was originally added for the 'nova.image.download.file' FileTransfer
extension which was removed in the 16.0.0 Pike release. The
'nova.image.download.modules' extension point is not maintained
and there is no indication of its use in production clouds.
""",
help="""
List of url schemes that can be directly accessed.

View File

@ -41,4 +41,14 @@ def load_transfer_modules():
else:
module_dictionary[scheme] = mgr.driver
if module_dictionary:
LOG.warning('The nova.image.download.modules extension point is '
'deprecated for removal starting in the 17.0.0 Queens '
'release and may be removed as early as the 18.0.0 Rocky '
'release. It is not maintained and there is no indication '
'of its use in production clouds. If you are using this '
'extension point, please make the nova development team '
'aware by contacting us in the #openstack-nova freenode '
'IRC channel or on the openstack-dev mailing list.')
return module_dictionary

View File

@ -0,0 +1,12 @@
---
deprecations:
- |
The ``[glance]/allowed_direct_url_schemes`` configuration option and
``nova.image.download.modules`` extension point have been deprecated for
removal. These were originally added for the *nova.image.download.file*
FileTransfer extension which was removed in the 16.0.0 Pike release. The
``nova.image.download.modules`` extension point is not maintained
and there is no indication of its use in production clouds. If you are
using this extension point, please make the nova development team
aware by contacting us in the #openstack-nova freenode IRC channel or
on the openstack-dev mailing list.