diff --git a/cinder/api/contrib/hosts.py b/cinder/api/contrib/hosts.py index dc1f93e75ba..ac8ba1c9aa8 100644 --- a/cinder/api/contrib/hosts.py +++ b/cinder/api/contrib/hosts.py @@ -17,6 +17,7 @@ from oslo_config import cfg from oslo_log import log as logging +from oslo_log import versionutils from oslo_utils import timeutils import webob.exc @@ -89,6 +90,10 @@ class HostController(wsgi.Controller): def __init__(self): self.api = volume_api.HostAPI() super(HostController, self).__init__() + versionutils.report_deprecated_feature( + LOG, + "The Host API is deprecated and will be " + "be removed in a future version.") def index(self, req): context = req.environ['cinder.context'] diff --git a/releasenotes/notes/deprecate_hosts_api_extension-fe0c042af10a20db.yaml b/releasenotes/notes/deprecate_hosts_api_extension-fe0c042af10a20db.yaml new file mode 100644 index 00000000000..76e75f8c52d --- /dev/null +++ b/releasenotes/notes/deprecate_hosts_api_extension-fe0c042af10a20db.yaml @@ -0,0 +1,9 @@ +--- +upgrade: + - | + The hosts api extension is now deprecated and will be removed in a + future version. +deprecations: + - | + The hosts api extension is now deprecated and will be removed in a + future version.