Merge "bnr - Deprecation note"

This commit is contained in:
Zuul 2022-12-13 05:32:01 +00:00 committed by Gerrit Code Review
commit a4b19677bf
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(