Merge "Fix copying of deployment archive"

changes/71/798371/3
Zuul 1 year ago committed by Gerrit Code Review
commit 27d0309f3f
  1. 2
      tripleoclient/utils.py
  2. 1
      tripleoclient/v1/overcloud_deploy.py

@ -2883,7 +2883,7 @@ def run_role_playbooks(self, working_dir, roles_file_dir, roles):
'cli-overcloud-node-network-config.yaml')
def create_archive_dir(self, archive_dir=constants.TRIPLEO_ARCHIVE_DIR):
def create_archive_dir(archive_dir=constants.TRIPLEO_ARCHIVE_DIR):
"""Create the TripleO archive directory as root. The directory is created
in a location typically owned by root (/var/lib), and remains owned as root
to decrease the chance it is accidentally deleted by a normal user.

@ -1264,6 +1264,7 @@ class DeployOvercloud(command.Command):
ansible_dir = None
archive_filename = utils.archive_deploy_artifacts(
self.log, parsed_args.stack, self.working_dir, ansible_dir)
utils.create_archive_dir()
utils.run_command(
['sudo', 'cp', archive_filename,
constants.TRIPLEO_ARCHIVE_DIR])

Loading…
Cancel
Save