Ceph-Ansible upgrade jobs
Change-Id: Ifc87adbac6bef0aaab2ad0e80739654b3e3123ad
This commit is contained in:
parent
6d95d1a29b
commit
f9046c2dd9
@ -94,11 +94,14 @@
|
|||||||
state: directory
|
state: directory
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
# TODO(mnasiadka): remove cinder and glance in Victoria
|
||||||
- name: Ensure configuration directories exist
|
- name: Ensure configuration directories exist
|
||||||
file:
|
file:
|
||||||
path: "/etc/kolla/config/{{ item }}"
|
path: "/etc/kolla/config/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
|
- cinder
|
||||||
|
- glance
|
||||||
- nova
|
- nova
|
||||||
- bifrost
|
- bifrost
|
||||||
- swift
|
- swift
|
||||||
@ -141,6 +144,22 @@
|
|||||||
- src: "tests/templates/ceph-ansible.j2"
|
- src: "tests/templates/ceph-ansible.j2"
|
||||||
dest: /etc/kolla/ceph-ansible.yml
|
dest: /etc/kolla/ceph-ansible.yml
|
||||||
when: "{{ scenario == 'ceph-ansible' }}"
|
when: "{{ scenario == 'ceph-ansible' }}"
|
||||||
|
|
||||||
|
### TODO(mnasiadka): Remove following ceph-ansible block in Victoria
|
||||||
|
# external ceph: glance-api.conf on upgrade from Train
|
||||||
|
- src: "tests/templates/ceph-ansible-upgrade/glance-api.conf.j2"
|
||||||
|
dest: /etc/kolla/config/glance/glance-api.conf
|
||||||
|
when: "{{ scenario == 'ceph-ansible' and is_previous_release and previous_release == 'train' }}"
|
||||||
|
# external ceph: cinder-volume.conf on upgrade from Train
|
||||||
|
- src: "tests/templates/ceph-ansible-upgrade/cinder-volume.conf.j2"
|
||||||
|
dest: /etc/kolla/config/cinder/cinder-volume.conf
|
||||||
|
when: "{{ scenario == 'ceph-ansible' and is_previous_release and previous_release == 'train' }}"
|
||||||
|
# external ceph: cinder-backup.conf on upgrade from Train
|
||||||
|
- src: "tests/templates/ceph-ansible-upgrade/cinder-backup.conf.j2"
|
||||||
|
dest: /etc/kolla/config/cinder/cinder-backup.conf
|
||||||
|
when: "{{ scenario == 'ceph-ansible' and is_previous_release and previous_release == 'train' }}"
|
||||||
|
### TODO(mnasiadka): End of remove block for ceph-ansible in Victoria
|
||||||
|
|
||||||
when: item.when | default(true)
|
when: item.when | default(true)
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
@ -426,6 +445,16 @@
|
|||||||
git log --pretty=oneline -1
|
git log --pretty=oneline -1
|
||||||
chdir: "{{ kolla_ansible_src_dir }}"
|
chdir: "{{ kolla_ansible_src_dir }}"
|
||||||
|
|
||||||
|
# TODO(mnasiadka): Remove in Victoria
|
||||||
|
- name: Remove not needed external ceph required configs
|
||||||
|
file:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- /etc/kolla/config/glance/glance-api.conf
|
||||||
|
- /etc/kolla/config/cinder/cinder-volume.conf
|
||||||
|
- /etc/kolla/config/cinder/cinder-backup.conf
|
||||||
|
|
||||||
- name: Generate configuration files
|
- name: Generate configuration files
|
||||||
template:
|
template:
|
||||||
src: "{{ kolla_ansible_local_src_dir }}/{{ item.src }}"
|
src: "{{ kolla_ansible_local_src_dir }}/{{ item.src }}"
|
||||||
|
10
tests/templates/ceph-ansible-upgrade/cinder-backup.conf.j2
Normal file
10
tests/templates/ceph-ansible-upgrade/cinder-backup.conf.j2
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{# TODO(mnasiadka): Remove in Victoria #}
|
||||||
|
[DEFAULT]
|
||||||
|
backup_ceph_conf=/etc/ceph/ceph.conf
|
||||||
|
backup_ceph_user=cinder-backup
|
||||||
|
backup_ceph_chunk_size = 134217728
|
||||||
|
backup_ceph_pool=backups
|
||||||
|
backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
|
||||||
|
backup_ceph_stripe_unit = 0
|
||||||
|
backup_ceph_stripe_count = 0
|
||||||
|
restore_discard_excess_bytes = true
|
15
tests/templates/ceph-ansible-upgrade/cinder-volume.conf.j2
Normal file
15
tests/templates/ceph-ansible-upgrade/cinder-volume.conf.j2
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{# TODO(mnasiadka): Remove in Victoria #}
|
||||||
|
|
||||||
|
[DEFAULT]
|
||||||
|
enabled_backends=rbd-1
|
||||||
|
|
||||||
|
[rbd-1]
|
||||||
|
rbd_ceph_conf=/etc/ceph/ceph.conf
|
||||||
|
rbd_user=cinder
|
||||||
|
backend_host=rbd:volumes
|
||||||
|
rbd_pool=volumes
|
||||||
|
volume_backend_name=rbd-1
|
||||||
|
volume_driver=cinder.volume.drivers.rbd.RBDDriver
|
||||||
|
{% raw %}
|
||||||
|
rbd_secret_uuid = {{ cinder_rbd_secret_uuid }}
|
||||||
|
{% endraw %}
|
8
tests/templates/ceph-ansible-upgrade/glance-api.conf.j2
Normal file
8
tests/templates/ceph-ansible-upgrade/glance-api.conf.j2
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{# TODO(mnasiadka): Remove in Victoria #}
|
||||||
|
|
||||||
|
[glance_store]
|
||||||
|
stores = rbd
|
||||||
|
default_store = rbd
|
||||||
|
rbd_store_pool = images
|
||||||
|
rbd_store_user = glance
|
||||||
|
rbd_store_ceph_conf = /etc/ceph/ceph.conf
|
@ -2,3 +2,12 @@
|
|||||||
virt_type=qemu
|
virt_type=qemu
|
||||||
# NOTE(Jeffrey4l): fix the gate in iax-ord nodes for libvirt 2.0.
|
# NOTE(Jeffrey4l): fix the gate in iax-ord nodes for libvirt 2.0.
|
||||||
cpu_mode=none
|
cpu_mode=none
|
||||||
|
|
||||||
|
{# TODO(mnasiadka): Remove in Victoria #}
|
||||||
|
{% if scenario == 'ceph-ansible' and is_previous_release %}
|
||||||
|
[libvirt]
|
||||||
|
images_rbd_pool=vms
|
||||||
|
images_type=rbd
|
||||||
|
images_rbd_ceph_conf=/etc/ceph/ceph.conf
|
||||||
|
rbd_user=nova
|
||||||
|
{% endif %}
|
||||||
|
@ -167,6 +167,26 @@
|
|||||||
install_type: source
|
install_type: source
|
||||||
is_upgrade: yes
|
is_upgrade: yes
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-ansible-ubuntu-source-upgrade-ceph-ansible
|
||||||
|
parent: kolla-ansible-ceph-ansible-base
|
||||||
|
nodeset: kolla-ansible-bionic-multi
|
||||||
|
timeout: 9000
|
||||||
|
vars:
|
||||||
|
base_distro: ubuntu
|
||||||
|
install_type: source
|
||||||
|
is_upgrade: yes
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-ansible-centos-source-upgrade-ceph-ansible
|
||||||
|
parent: kolla-ansible-ceph-ansible-base
|
||||||
|
nodeset: kolla-ansible-centos-multi
|
||||||
|
timeout: 9000
|
||||||
|
vars:
|
||||||
|
base_distro: centos
|
||||||
|
install_type: source
|
||||||
|
is_upgrade: yes
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-ansible-bifrost-centos-source
|
name: kolla-ansible-bifrost-centos-source
|
||||||
parent: kolla-ansible-bifrost-base
|
parent: kolla-ansible-bifrost-base
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
- kolla-ansible-ubuntu-source-mariadb
|
- kolla-ansible-ubuntu-source-mariadb
|
||||||
- kolla-ansible-centos-source-ceph-ansible
|
- kolla-ansible-centos-source-ceph-ansible
|
||||||
- kolla-ansible-ubuntu-source-ceph-ansible
|
- kolla-ansible-ubuntu-source-ceph-ansible
|
||||||
|
- kolla-ansible-centos-source-upgrade-ceph-ansible
|
||||||
|
- kolla-ansible-ubuntu-source-upgrade-ceph-ansible
|
||||||
check-arm64:
|
check-arm64:
|
||||||
jobs:
|
jobs:
|
||||||
- kolla-ansible-debian-source-aarch64
|
- kolla-ansible-debian-source-aarch64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user