Deprecate infra driver nova for Mitaka
Infra driver nova is deprecated as of Mitaka and will be removed for Netwon release Change-Id: Iaf1dba67bda5c6e77b719d04cc86d1295b7ca56b Partial-Bug: #1544332
This commit is contained in:
parent
5ce343274f
commit
5e71d14f9a
@ -388,6 +388,7 @@ auth_uri = http://127.0.0.1:5000
|
||||
|
||||
[tacker]
|
||||
# Specify drivers for hosting device
|
||||
# infra_driver nova deprecated for Mitaka. Will be removed in Newton cycle.
|
||||
# infra_driver = heat,nova,noop
|
||||
|
||||
# Specify drivers for mgmt
|
||||
@ -405,6 +406,8 @@ default_vim = VIM0
|
||||
|
||||
[vim_keys]
|
||||
#openstack = /etc/tacker/vim/fernet_keys
|
||||
|
||||
#Deprecated for Mitaka. Will be removed in Newton cycle.
|
||||
[tacker_nova]
|
||||
# parameters for novaclient to talk to nova
|
||||
region_name = RegionOne
|
||||
|
@ -58,12 +58,22 @@ class deprecated(object):
|
||||
GRIZZLY = 'G'
|
||||
HAVANA = 'H'
|
||||
ICEHOUSE = 'I'
|
||||
JUNO = 'J'
|
||||
KILO = 'K'
|
||||
LIBERTY = 'L'
|
||||
MITAKA = 'M'
|
||||
NEWTON = 'N'
|
||||
|
||||
_RELEASES = {
|
||||
'F': 'Folsom',
|
||||
'G': 'Grizzly',
|
||||
'H': 'Havana',
|
||||
'I': 'Icehouse',
|
||||
'J': 'Juno',
|
||||
'K': 'Kilo',
|
||||
'L': 'Liberty',
|
||||
'M': 'Mitaka',
|
||||
'N': 'Newton',
|
||||
}
|
||||
|
||||
_deprecated_msg_with_alternative = _(
|
||||
|
@ -28,6 +28,7 @@ from oslo_config import cfg
|
||||
from tacker.api.v1 import attributes
|
||||
from tacker.i18n import _LE, _LW
|
||||
from tacker.openstack.common import log as logging
|
||||
from tacker.openstack.common import versionutils
|
||||
from tacker.vm.infra_drivers import abstract_driver
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
@ -69,6 +70,11 @@ class DefaultAuthPlugin(v2_auth.Password):
|
||||
return super(DefaultAuthPlugin, self).get_endpoint(session, **kwargs)
|
||||
|
||||
|
||||
@versionutils.deprecated(
|
||||
versionutils.deprecated.MITAKA,
|
||||
what='infra_driver nova',
|
||||
in_favor_of='infra_driver heat',
|
||||
remove_in=+1)
|
||||
class DeviceNova(abstract_driver.DeviceAbstractDriver):
|
||||
|
||||
"""Nova driver of hosting device."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user