Use serial or parallel execution depending on the kind of backup
Currently, we support two kinds of backups: the "old way" that stops all
the controllers at the same time and then does the backup and the
"snapshots" that only stops one controller at a time.
In the first case, we want to take the backup of all the controllers
in parallel to save time, while in the second case we want to take the
backup of each controller serialized so we do not stop all of them at
the same time.
This change enables this for the openstack overcloud backup CLI action.
Closes-Bug: #1930861
Change-Id: I72b8380025fbd7b22999d4ea938cb9c218f9ad8f
(cherry picked from commit ed0437e2c0
)
This commit is contained in:
parent
6503d4e874
commit
29af0cec6e
|
@ -12,9 +12,9 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
- become: true
|
||||
- name: Backup ceph authentication
|
||||
hosts: ceph_mon
|
||||
name: Backup ceph authentication
|
||||
become: true
|
||||
tasks:
|
||||
- name: Backup ceph authentication role
|
||||
include_role:
|
||||
|
@ -23,9 +23,12 @@
|
|||
tags:
|
||||
- bar_create_recover_image
|
||||
|
||||
- name: TripleO Controller backup.
|
||||
- name: TripleO Controller backup
|
||||
hosts: Controller
|
||||
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
|
||||
serial: "{{ tripleo_backup_and_restore_enable_snapshots|bool | ternary(1, groups['Controller']|length) }}"
|
||||
vars_files:
|
||||
../roles/backup_and_restore/defaults/main.yml
|
||||
become: true
|
||||
roles:
|
||||
- role: backup_and_restore
|
||||
|
|
Loading…
Reference in New Issue