Back up OpenStack

StarlingX OpenStack is backed up using the StarlingX back-up facilities.

Note

Before running the StarlingX OpenStack backup, review the details in OpenStack Storage Data Backup Considerations an plan ahead to ensure all application system data and OpenStack storage data will be properly saved and restored.

Overview

The backup playbook will produce a OpenStack backup tarball in addition to the platform tarball. This can be used to perform StarlingX OpenStack restores independently of restoring the underlying platform.

The stx-openstack backup can be performed using the following command:

$ ansible-playbook /usr/share/ansible/stx-ansible/playbooks/backup.yml -e "ansible_become_pass=<sysadmin password> admin_password=<sysadmin password> openstack_app_name=|prefix|-openstack skip_os_dbs=['Database','information_schema','performance_schema','mysql','horizon','panko','gnocchi','sys']"

Note

For Distributed Cloud systems, the complete subcloud platform and OpenStack backup and restore is managed by the DCManager on the Centralized Cloud.

Back Up a DC Subcloud Platform and OpenStack Application

Back up subcloud system data and OpenStack application data by storing the backup files in the default local storage.

  1. Create a backup_values.yaml file and specify the OpenStack application name:

    cat << EOF > backup_values.yaml
    openstack_app_name: |prefix|-openstack
    EOF
    
  2. Run the following command, including the --local-only and --backup-values parameters:

    dcmanager subcloud-backup create \
      --subcloud <subcloud> \
      --sysadmin-password <sysadmin-password> \
      --backup-values backup_values.yaml \
      --local-only
    

The system generates the subcloud_platform_backup and openstack_backup files on the subcloud in the following location:

/opt/platform-backup/backups/<release>/