Merge "Deprecate support for Xen"

This commit is contained in:
Zuul 2021-02-22 12:50:55 +00:00 committed by Gerrit Code Review
commit f6c4287dbb
3 changed files with 18 additions and 1 deletions

View File

@ -28,7 +28,7 @@ OPTS = [
default='libvirt',
help='Inspector to use for inspecting the hypervisor layer. '
'Known inspectors are libvirt, hyperv, vsphere '
'and xenapi.'),
'and xenapi. Note that xenapi has been deprecated.'),
]
@ -270,6 +270,9 @@ class Inspector(object):
def get_hypervisor_inspector(conf):
if conf.hypervisor_inspector == 'xenapi':
LOG.warning('Support for XenServer/Xen Cloud Platform has been '
'deprecated and will be removed in a future release')
try:
namespace = 'ceilometer.compute.virt'
mgr = driver.DriverManager(namespace,

View File

@ -30,12 +30,21 @@ opt_group = cfg.OptGroup(name='xenapi',
OPTS = [
cfg.StrOpt('connection_url',
deprecated_for_removal=True,
deprecated_reason='Support for XenServer/Xen Cloud Platform '
'has been deprecated',
help='URL for connection to XenServer/Xen Cloud Platform.'),
cfg.StrOpt('connection_username',
default='root',
deprecated_for_removal=True,
deprecated_reason='Support for XenServer/Xen Cloud Platform '
'has been deprecated',
help='Username for connection to XenServer/Xen Cloud '
'Platform.'),
cfg.StrOpt('connection_password',
deprecated_for_removal=True,
deprecated_reason='Support for XenServer/Xen Cloud Platform '
'has been deprecated',
help='Password for connection to XenServer/Xen Cloud Platform.',
secret=True),
]

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Support for XenServer/Xen Cloud Platform has been deprecated and will be
removed in a future release.