Deprecate TSM Backup driver

TSM Driver seems to be broken for a while [1] and is not supported
anymore.

[1] https://review.opendev.org/#/q/Ie67d919f8f59572268f1f07946fb2d2f14a851f1

Change-Id: I33bbe4f50040096b71bb1540b87dc10d575b46b4
This commit is contained in:
Ivan Kolodyazhny 2020-08-19 14:42:32 +03:00
parent 55fcd444d8
commit e6795b8906
2 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import stat
from oslo_concurrency import processutils from oslo_concurrency import processutils
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging
from oslo_log import versionutils
from cinder.backup import driver from cinder.backup import driver
from cinder import exception from cinder import exception
@ -275,6 +276,11 @@ class TSMBackupDriver(driver.BackupDriver):
return tsm_opts return tsm_opts
def check_for_setup_error(self): def check_for_setup_error(self):
versionutils.report_deprecated_feature(
LOG,
"Cinder TSM Backup Driver is deprecated and will be removed "
"in Wallaby release. Please, migrate you backups to a supported "
"backend.")
required_flags = ['backup_share'] required_flags = ['backup_share']
for flag in required_flags: for flag in required_flags:
val = getattr(CONF, flag, None) val = getattr(CONF, flag, None)

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Cinder TSM Backup Driver is deprecated and will be removed in Wallaby
release.