bnr - Deprecation note

Backup and restore is deprecated and will be removed in the next release. This change informs adds a deprecation note everytime a backup command is executed.

Change-Id: Ief36bd72fe58e2b0ac9709ce427407339454afbf
(cherry picked from commit ca5139211f)
This commit is contained in:
Fernando Diaz 2022-12-01 14:19:49 +01:00 committed by Fernando Díaz Bravo
parent 1a5eab6c20
commit 40992ebe4e
2 changed files with 16 additions and 0 deletions

View File

@ -213,6 +213,14 @@ class BackupOvercloud(command.Command):
parsed_args.cron is False and
parsed_args.init is None):
self.log.warning(
'\n'
' ########################################################\n'
' # Deprecation note #\n'
' # Backup and restore feature is deprecated and will be #\n'
' # removed in the next release. Please consider using #\n'
' # snapshot and revert feature. #\n'
' ########################################################\n')
self.log.debug(_('Starting Overcloud Backup'))
self._run_ansible_playbook(
playbook='cli-overcloud-backup.yaml',

View File

@ -175,6 +175,14 @@ class BackupUndercloud(command.Command):
extra_vars = self._parse_extra_vars(parsed_args.extra_vars)
LOG.warning(
'\n'
' #############################################################\n'
' # Deprecation note #\n'
' # Backup and restore feature is deprecated and will be #\n'
' # removed in the next release. #\n'
' #############################################################\n')
if not (os.path.isfile(parsed_args.inventory) and
os.access(parsed_args.inventory, os.R_OK)):
raise RuntimeError(