Merge "Add cinder-lvm CI job"
This commit is contained in:
commit
4ad5122d3f
@ -4,10 +4,13 @@
|
|||||||
kolla_ansible_src_dir: "src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible"
|
kolla_ansible_src_dir: "src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible"
|
||||||
kolla_ansible_full_src_dir: "{{ zuul.executor.work_root }}/{{ kolla_ansible_src_dir }}"
|
kolla_ansible_full_src_dir: "{{ zuul.executor.work_root }}/{{ kolla_ansible_src_dir }}"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Prepare ceph disks for bluestore and filestore OSD
|
- name: Prepare disks for Ceph or LVM
|
||||||
script: "{{ kolla_ansible_full_src_dir }}/tests/setup_ceph_disks.sh {{ hostvars[inventory_hostname]['ceph_osd_storetype'] }}"
|
script: "{{ kolla_ansible_full_src_dir }}/tests/setup_disks.sh {{ disk_type }}"
|
||||||
when: scenario == "ceph"
|
when: scenario in ["ceph", "cinder-lvm"]
|
||||||
become: true
|
become: true
|
||||||
|
vars:
|
||||||
|
disk_type: "{{ ceph_storetype if scenario == 'ceph' else 'cinder-lvm' }}"
|
||||||
|
ceph_storetype: "{{ hostvars[inventory_hostname].get('ceph_osd_storetype') }}"
|
||||||
|
|
||||||
- hosts: primary
|
- hosts: primary
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
mkdir -p /opt/data/kolla
|
mkdir -p /opt/data/kolla
|
||||||
|
|
||||||
if [ $1 = 'filestore' ]; then
|
if [ $1 = 'cinder-lvm' ]; then
|
||||||
|
# cinder-volumes volume group
|
||||||
|
free_device=$(losetup -f)
|
||||||
|
fallocate -l 5G /var/lib/cinder_data.img
|
||||||
|
losetup $free_device /var/lib/cinder_data.img
|
||||||
|
pvcreate $free_device
|
||||||
|
vgcreate cinder-volumes $free_device
|
||||||
|
|
||||||
|
elif [ $1 = 'filestore' ]; then
|
||||||
#setup devices for Kolla Ceph filestore OSD
|
#setup devices for Kolla Ceph filestore OSD
|
||||||
dd if=/dev/zero of=/opt/data/kolla/ceph-osd1.img bs=5M count=1000
|
dd if=/dev/zero of=/opt/data/kolla/ceph-osd1.img bs=5M count=1000
|
||||||
LOOP=$(losetup -f)
|
LOOP=$(losetup -f)
|
@ -36,6 +36,12 @@ ceph_pool_pgp_num: 8
|
|||||||
glance_enable_rolling_upgrade: "yes"
|
glance_enable_rolling_upgrade: "yes"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if scenario == "cinder-lvm" %}
|
||||||
|
enable_cinder: "yes"
|
||||||
|
enable_cinder_backend_lvm: "yes"
|
||||||
|
glance_api_hosts: ["{{ inventory_hostname }}"]
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if scenario == "zun" %}
|
{% if scenario == "zun" %}
|
||||||
enable_zun: "yes"
|
enable_zun: "yes"
|
||||||
enable_kuryr: "yes"
|
enable_kuryr: "yes"
|
||||||
|
@ -24,7 +24,7 @@ function test_openstack_logged {
|
|||||||
fi
|
fi
|
||||||
echo "SUCCESS: Server creation"
|
echo "SUCCESS: Server creation"
|
||||||
|
|
||||||
if echo $ACTION | grep -q "ceph"; then
|
if [[ $ACTION = "ceph" ]] || [[ $ACTION == "cinder-lvm" ]]; then
|
||||||
echo "TESTING: Cinder volume attachment"
|
echo "TESTING: Cinder volume attachment"
|
||||||
openstack volume create --size 2 test_volume
|
openstack volume create --size 2 test_volume
|
||||||
openstack server add volume kolla_boot_test test_volume --device /dev/vdb
|
openstack server add volume kolla_boot_test test_volume --device /dev/vdb
|
||||||
|
@ -44,6 +44,10 @@ EOF
|
|||||||
GATE_IMAGES+=",ceph,cinder"
|
GATE_IMAGES+=",ceph,cinder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $ACTION == "cinder-lvm" ]]; then
|
||||||
|
GATE_IMAGES+=",cinder,iscsid,tgtd"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $ACTION == "zun" ]]; then
|
if [[ $ACTION == "zun" ]]; then
|
||||||
GATE_IMAGES+=",zun,kuryr,etcd"
|
GATE_IMAGES+=",zun,kuryr,etcd"
|
||||||
fi
|
fi
|
||||||
|
@ -102,6 +102,26 @@
|
|||||||
secondary2:
|
secondary2:
|
||||||
ceph_osd_storetype: bluestore
|
ceph_osd_storetype: bluestore
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-ansible-ubuntu-source-cinder-lvm
|
||||||
|
parent: kolla-ansible-base
|
||||||
|
nodeset: kolla-ansible-xenial-multi
|
||||||
|
voting: false
|
||||||
|
vars:
|
||||||
|
base_distro: ubuntu
|
||||||
|
install_type: source
|
||||||
|
scenario: cinder-lvm
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-ansible-centos-source-cinder-lvm
|
||||||
|
parent: kolla-ansible-base
|
||||||
|
nodeset: kolla-ansible-centos-multi
|
||||||
|
voting: false
|
||||||
|
vars:
|
||||||
|
base_distro: centos
|
||||||
|
install_type: source
|
||||||
|
scenario: cinder-lvm
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-ansible-bifrost-centos-source
|
name: kolla-ansible-bifrost-centos-source
|
||||||
parent: kolla-ansible-bifrost-base
|
parent: kolla-ansible-bifrost-base
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
- kolla-ansible-ubuntu-source-ceph
|
- kolla-ansible-ubuntu-source-ceph
|
||||||
- kolla-ansible-centos-source-ceph
|
- kolla-ansible-centos-source-ceph
|
||||||
- kolla-ansible-oraclelinux-source-ceph
|
- kolla-ansible-oraclelinux-source-ceph
|
||||||
|
- kolla-ansible-ubuntu-source-cinder-lvm:
|
||||||
|
files: ^ansible\/roles\/(cinder|iscsi)\/.*
|
||||||
|
- kolla-ansible-centos-source-cinder-lvm:
|
||||||
|
files: ^ansible\/roles\/(cinder|iscsi)\/.*
|
||||||
- kolla-ansible-bifrost-centos-source:
|
- kolla-ansible-bifrost-centos-source:
|
||||||
files: ^ansible\/roles\/bifrost\/.*
|
files: ^ansible\/roles\/bifrost\/.*
|
||||||
- kolla-ansible-ubuntu-source-zun:
|
- kolla-ansible-ubuntu-source-zun:
|
||||||
@ -33,3 +37,5 @@
|
|||||||
- kolla-ansible-bifrost-centos-source
|
- kolla-ansible-bifrost-centos-source
|
||||||
- kolla-ansible-ubuntu-source-zun
|
- kolla-ansible-ubuntu-source-zun
|
||||||
- kolla-ansible-centos-source-scenario-nfv
|
- kolla-ansible-centos-source-scenario-nfv
|
||||||
|
- kolla-ansible-ubuntu-source-cinder-lvm
|
||||||
|
- kolla-ansible-centos-source-cinder-lvm
|
||||||
|
Loading…
Reference in New Issue
Block a user