Console: warn that the Nova VMRC console driver will be deprecated in K
This code is not used and should be deprecated. In addition to this the
ESX driver was deprecated in commit 1deb31f85a
Closes-bug: #1368202
Change-Id: Ic71cf4d01ccd7eee19f6c44e1101e542900235d6
This commit is contained in:
parent
b00da8421c
commit
a957488450
@ -20,21 +20,25 @@ import base64
|
||||
from oslo.config import cfg
|
||||
|
||||
from nova import exception
|
||||
from nova.i18n import _LW
|
||||
from nova.openstack.common import jsonutils
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.virt.vmwareapi import vim_util
|
||||
|
||||
|
||||
vmrc_opts = [
|
||||
cfg.IntOpt('console_vmrc_port',
|
||||
default=443,
|
||||
help="Port for VMware VMRC connections"),
|
||||
help="DEPRECATED. Port for VMware VMRC connections"),
|
||||
cfg.IntOpt('console_vmrc_error_retries',
|
||||
default=10,
|
||||
help="Number of retries for retrieving VMRC information"),
|
||||
help="DEPRECATED. "
|
||||
"Number of retries for retrieving VMRC information"),
|
||||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.register_opts(vmrc_opts)
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class VMRCConsole(object):
|
||||
@ -42,6 +46,8 @@ class VMRCConsole(object):
|
||||
|
||||
def __init__(self):
|
||||
super(VMRCConsole, self).__init__()
|
||||
LOG.warning(_LW('The ESX driver has been removed! '
|
||||
'This code will be removed in Kilo release!'))
|
||||
|
||||
@property
|
||||
def console_type(self):
|
||||
@ -108,6 +114,7 @@ class VMRCSessionConsole(VMRCConsole):
|
||||
|
||||
def __init__(self):
|
||||
super(VMRCSessionConsole, self).__init__()
|
||||
LOG.warning(_LW('This code will be removed in Kilo release!'))
|
||||
|
||||
@property
|
||||
def console_type(self):
|
||||
|
Loading…
Reference in New Issue
Block a user