Merge "Deprecate Cinder Hosts API/Extension"

This commit is contained in:
Zuul 2018-02-08 00:09:22 +00:00 committed by Gerrit Code Review
commit 7a3b77d34f
2 changed files with 14 additions and 0 deletions

View File

@ -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']

View File

@ -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.