Allow cinder-backup to be configured to use S3 backend.

Added options to configure S3 cinder backup driver, so cinder backup
can use S3 storage, for safekeeping backups.

Change-Id: Id6ff6206714581555baacecebfb6d8dd53bed8ac
This commit is contained in:
Sergei Raiskii 2022-07-13 17:33:53 +03:00
parent 2b5cef68d7
commit 73fc230fe3
5 changed files with 25 additions and 2 deletions
ansible
group_vars
roles/cinder
defaults
templates
etc/kolla
releasenotes/notes

@ -940,7 +940,7 @@ cinder_target_helper: "{{ 'lioadm' if ansible_facts.os_family == 'RedHat' else '
# Valid options are [ '', redis, etcd ]
cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
# Valid options are [ nfs, swift, ceph ]
# Valid options are [ nfs, swift, ceph, s3 ]
cinder_backup_driver: "ceph"
cinder_backup_share: ""
cinder_backup_mount_options_nfs: ""

@ -271,6 +271,14 @@ pure_fc_backend: "pure_fc_backend"
pure_api_token:
pure_san_ip:
################################
# Cinder Backup S3
################################
cinder_backup_s3_endpoint: "{{ s3_url }}"
cinder_backup_s3_store_bucket: "volumebackups"
cinder_backup_s3_store_access_key: "{{ s3_access_key }}"
cinder_backup_s3_store_secret_key: "{{ s3_secret_key }}"
####################
# Kolla
####################

@ -47,6 +47,12 @@ backup_swift_auth = per_user
backup_swift_auth_version = 1
backup_swift_user =
backup_swift_key =
{% elif cinder_backup_driver == "s3" %}
backup_driver = cinder.backup.drivers.s3.S3BackupDriver
backup_s3_endpoint_url = {{ cinder_backup_s3_endpoint }}
backup_s3_store_bucket = {{ cinder_backup_s3_store_bucket }}
backup_s3_store_access_key = {{ cinder_backup_s3_store_access_key }}
backup_s3_store_secret_key = {{ cinder_backup_s3_store_secret_key }}
{% endif %}
{% endif %}

@ -518,11 +518,17 @@ workaround_ansible_issue_8743: yes
# Valid options are [ '', redis, etcd ]
#cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
# Valid options are [ nfs, swift, ceph ]
# Valid options are [ nfs, swift, ceph, s3 ]
#cinder_backup_driver: "ceph"
#cinder_backup_share: ""
#cinder_backup_mount_options_nfs: ""
# Cinder backup S3 options
#cinder_backup_s3_endpoint: "{{ s3_url }}"
#cinder_backup_s3_store_bucket: "volumebackups"
#cinder_backup_s3_store_access_key: "{{ s3_access_key }}"
#cinder_backup_s3_store_secret_key: "{{ s3_secret_key }}"
#######################
# Cloudkitty options
#######################

@ -0,0 +1,3 @@
---
features:
- Allow cinder-backup to be configured to use S3 backend.