Ansible update to support remote subcloud restore

In this commit:
  - Common code to validate target is updated to include additional
    host check options (system readiness, load version, bootstrap ip,
    and patches).
  - A new playbook is added to perform host check for various
    use cases (remote install, pre subcloud restore, pre subcloud
    upgrade, etc...).
  - Install playbook is updated to make use of the new playbook.
  - A new role which performs generic user input validation for all
    restore playbooks is added.
  - A new B&R parameter is added to indicate where the backup data
    can be found, on the host itself (on-box) or on another
    machine (off-box).
  - Platform, user images and openstack restore playbooks are
    updated to a) make use of the on_box_data parameter,
    b) use the same target_backup_dir for both local and remote
    playbook execution for consistent behavior.
  - Host override file is extracted only on the target.
  - Patches restore is skipped if requested by the caller. Default
    behavior is to restore patches.
  - Various subtle bugs are fixed.
  - Ansible version is specified in Zuul test requirements.

Tests:
  - Deployment of a Redfish capable subcloud
  - Remote restore a simplex with various options: a) without patches
    b) skip patches restore, c) with patches restore, d) on-box backup
    tarball, e) off-box backup tarball
  - Local restore of a simplex with 2 options: a) without patches and
    b) skip patches restore
  - Simplex fresh install
  - Restore user images
  - Restore OpenStack
  - Error cases

Task: 41725
Story: 2008573
Change-Id: Ica2b9010a73854a01216e2e16b581484d182264e
Signed-off-by: Tee Ngo <tee.ngo@windriver.com>
This commit is contained in:
Tee Ngo
2021-02-09 23:08:32 -05:00
parent aec355e9b1
commit 9c62c83536
15 changed files with 376 additions and 155 deletions

View File

@@ -15,7 +15,6 @@
- common/prepare-env
- common/validate-target
- restore-platform/prepare-env
- backup-restore/transfer-file
- restore-platform/restore-sw-patches
- name: Run bootstrap playbook with restore mode