diff --git a/nova/conf/glance.py b/nova/conf/glance.py index 61693b5a5b..c0f456b1be 100644 --- a/nova/conf/glance.py +++ b/nova/conf/glance.py @@ -47,6 +47,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. diff --git a/nova/image/download/__init__.py b/nova/image/download/__init__.py index 0b5d3453d7..ae6542cade 100644 --- a/nova/image/download/__init__.py +++ b/nova/image/download/__init__.py @@ -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 diff --git a/releasenotes/notes/deprecate-image-download-ext-point-cd5809e11bbd09d3.yaml b/releasenotes/notes/deprecate-image-download-ext-point-cd5809e11bbd09d3.yaml new file mode 100644 index 0000000000..ae73ae1f5a --- /dev/null +++ b/releasenotes/notes/deprecate-image-download-ext-point-cd5809e11bbd09d3.yaml @@ -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.