Deprecate support for Xen

Since Nova removed its XenAPI driver[1] and Xen support using libvirt,
we no longer expect usage of Xen in OpenStack deployments.

[1] adb28f503ca8c38bd7224ec0a335f730557d7ca9
[1] 3a390c2c8238409c00acc08fad725d46fa02c0ad

Change-Id: Id79799541dfc8ec17d3ea1482c6b8ca4b58f7a92
This commit is contained in:
Takashi Kajinami 2021-02-19 20:38:33 +09:00
parent 55c7f31274
commit fd0a561bea
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.