Add more options for cinder-backup.
This commit brings necessary configuration and container start-up options to use two popular backends for backup - nfs and swift. Both drivers support incremental backups and should work with any cinder volume backend. Change-Id: Ieed29a895dc1b9faad196e160a88ea9d293f9c75
This commit is contained in:
parent
4aa693f2fd
commit
c0a07b697e
@ -370,6 +370,9 @@ gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}"
|
|||||||
#################################
|
#################################
|
||||||
cinder_backend_ceph: "{{ enable_ceph }}"
|
cinder_backend_ceph: "{{ enable_ceph }}"
|
||||||
cinder_volume_group: "cinder-volumes"
|
cinder_volume_group: "cinder-volumes"
|
||||||
|
cinder_backup_driver: "nfs"
|
||||||
|
cinder_backup_share: ""
|
||||||
|
cinder_backup_mount_options_nfs: ""
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Cloudkitty options
|
# Cloudkitty options
|
||||||
|
@ -32,6 +32,19 @@ backup_ceph_pool = {{ ceph_cinder_backup_pool_name }}
|
|||||||
backup_ceph_stripe_unit = 0
|
backup_ceph_stripe_unit = 0
|
||||||
backup_ceph_stripe_count = 0
|
backup_ceph_stripe_count = 0
|
||||||
restore_discard_excess_bytes = true
|
restore_discard_excess_bytes = true
|
||||||
|
{% elif cinder_backup_driver == "nfs"%}
|
||||||
|
backup_driver = cinder.backup.drivers.nfs
|
||||||
|
backup_mount_options = {{ cinder_backup_mount_options_nfs }}
|
||||||
|
backup_mount_point_base = /var/lib/cinder/backup
|
||||||
|
backup_share = {{ cinder_backup_share }}
|
||||||
|
backup_file_size = 327680000
|
||||||
|
{% elif cinder_backup_driver == "swift"%}
|
||||||
|
backup_driver = cinder.backup.drivers.swift
|
||||||
|
backup_swift_url = http://{{ kolla_internal_vip_address }}:{{ swift_proxy_server_port }}/v1/AUTH_
|
||||||
|
backup_swift_auth = per_user
|
||||||
|
backup_swift_auth_version = 1
|
||||||
|
backup_swift_user =
|
||||||
|
backup_swift_key =
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
osapi_volume_listen = {{ api_interface_address }}
|
osapi_volume_listen = {{ api_interface_address }}
|
||||||
|
@ -212,9 +212,10 @@ kolla_internal_vip_address: "10.10.10.254"
|
|||||||
#################################
|
#################################
|
||||||
# Enable / disable Cinder backends
|
# Enable / disable Cinder backends
|
||||||
#cinder_backend_ceph: "{{ enable_ceph }}"
|
#cinder_backend_ceph: "{{ enable_ceph }}"
|
||||||
|
|
||||||
#cinder_volume_group: "cinder-volumes"
|
#cinder_volume_group: "cinder-volumes"
|
||||||
|
#cinder_backup_driver: "nfs"
|
||||||
|
#cinder_backup_share: ""
|
||||||
|
#cinder_backup_mount_options_nfs: ""
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Nova - Compute Options
|
# Nova - Compute Options
|
||||||
|
Loading…
Reference in New Issue
Block a user