Commit Graph

6 Commits

Author SHA1 Message Date
Dougal Matthews 103cc944b0 Remove the undercloud backup workflow and actions
Depends-On: https://review.opendev.org/#/c/665690/
Change-Id: I0c44ddd8fb5ffc6ddd929bf897c2aa66eaed23a5
2020-02-14 09:37:48 +00:00
Martin Magr f7cc16c235 Fix undercloud backup via tripleoclient
The move to containerized deployment introduced a regression that mistral
executor service does not have access to undercloud host any more because
it runs in container. This patch and it's dependencies are fixing this
issue by:

  - using remote connection during DB backup
  - using volume mounts during filesystem backup

For details see following patches.

Change-Id: I8726187da444b55832bc2741da66ab7240e7bc3e
Depends-On: Ia1fd60a13570a42f5243beb5bb0487c743e31d27
Depends-On: I67899db3c1f4197210bc362a8f944529a3a7b2b3
Closes-Bug: #1812960
2019-03-27 12:06:27 +01:00
Carlos Camacho bd11ebccfe Include --xattrs when creating the undercloud backup.
We need to use --xattrs when running the backup, otherwise
swift objects after the restore won't be accesible.

Change-Id: I62e5488c78c95368f6b6b967a5504ff3478f1fce
Closes-Bug: 1778215
2018-06-22 14:33:24 +02:00
Carlos Camacho 5578770768 Add validation for empty file system backup on Undercloud
This patch works as an addition to the exclude path
when executing an Undercloud backup.

In this case if we exclude all files, there is no need to execute
the task to create the FS backup.

Change-Id: Icd25a8d579151015c9cdf56861d2be933848a723
Closes-Bug: 1767385
2018-05-14 13:00:29 +02:00
Carlos Camacho 13f2704c8e Allow uploading big files to swift (5GB)
This patch enables the swift upload for big files (+5GB)
in TripleO.
Also, adds support to the undercloud backup CLI to upload
big backups to swift.

Change-Id: I80163c8df15377dd3b5a44b5439a23223d8cccee
Depends-On: Iff73833f1d470750862873f70a4a9aaba50bd164
Closes-Bug: 1761412
2018-04-23 16:48:30 +02:00
Carlos Camacho bfc687b4d3 Add UC Backup Mistral workflow definition and actions
This patch adds the workflow definition and actions
to perform an Undercloud backup.

Workflow can be executed as:
  mistral execution-create tripleo.undercloud_backup.v1.launch

Actions can be invoked as:
  mistral run-action tripleo.undercloud.get_free_space
  mistral run-action tripleo.undercloud.create_backup_dir
  mistral run-action tripleo.undercloud.create_database_backup \
    '{"path": "/tmp", "dbpassword": "", "dbuser":"root"}'
  mistral run-action tripleo.undercloud.create_file_system_backup \
    '{ "path": "/tmp/undercloud-backup-dCxQSn", "sources_path": "/home/stack/"}'
  mistral run-action tripleo.undercloud.upload_backup_to_swift
  mistral run-action tripleo.undercloud.remove_temp_dir

Related bp undercloud-backup-restore

Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com>

Change-Id: Iebd67568d5e72967e694b88fc8c73361543929a1
2018-02-05 16:38:01 +00:00