Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions playbooks/dcn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
ansible.builtin.include_role:
name: ci_dcn_site

- name: Verify cinder backups across AZs
when: cifmw_dcn_test_cinder_backups | default(true) | bool
cifmw.general.ci_script:
output_dir: "{{ cifmw_basedir }}/artifacts"
extra_args:
ANSIBLE_LOG_PATH: "{{ cifmw_basedir }}/logs/cinder_backups_test.log"
script: |
ansible-playbook -i {{ inventory_file }} {{ cifmw_repo }}/hooks/playbooks/cinder_backups.yaml

- name: The map for az0 contains all AZ backends
ansible.builtin.set_fact:
az_to_group_map:
Expand Down
25 changes: 20 additions & 5 deletions roles/ci_dcn_site/templates/service-values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,28 @@ data:
cinderAPI:
replicas: 3
cinderBackup:
replicas: 3
replicas: 0
customServiceConfig: |
[DEFAULT]
backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
backup_ceph_conf = /etc/ceph/az0.conf
backup_ceph_pool = backups
backup_ceph_user = openstack
# cinderBackup (singular) is deprecated; use cinderBackups (plural)
cinderBackups:
{% for _ceph in _ceph_vars_list %}
{{ _ceph.cifmw_ceph_client_cluster }}:
customServiceConfig: |
[DEFAULT]
storage_availability_zone = {{ _ceph.cifmw_ceph_client_cluster }}
backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
backup_ceph_conf = /etc/ceph/{{ _ceph.cifmw_ceph_client_cluster }}.conf
backup_ceph_pool = backups
backup_ceph_user = openstack
networkAttachments:
- storage
{% if _ceph.cifmw_ceph_client_cluster == _az_to_scaledown %}
replicas: 0
{% else %}
replicas: 2
{% endif %}
{% endfor %}
cinderVolumes:
{% for _ceph in _ceph_vars_list %}
{% if _ceph.cifmw_ceph_client_cluster != _az_to_scaledown %}
Expand Down
Loading