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
This commit is contained in:
parent
eb0f82b98d
commit
ca5139211f
@ -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',
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user