CI: Add CentOS 8 ceph-ansible job
Change-Id: If354fbdeb2fd8d026faa0210b84da0a688c3ae0a
This commit is contained in:
parent
cd3c51197e
commit
1a68c53fe0
@ -7,12 +7,13 @@ set -o errexit
|
|||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
function setup_ceph_ansible {
|
function setup_ceph_ansible {
|
||||||
# FIXME(mnasiadka): Use python3 when we move to CentOS 8
|
|
||||||
# (there are no python3 selinux bindings for 3 on C7)
|
|
||||||
# see https://bugs.centos.org/view.php?id=16389
|
|
||||||
|
|
||||||
# Prepare virtualenv for ceph-ansible deployment
|
# Prepare virtualenv for ceph-ansible deployment
|
||||||
virtualenv --system-site-packages ~/ceph-venv
|
# NOTE(mnasiadka): Use python2 on centos7 due to missing python3 selinux bindings
|
||||||
|
if [[ $BASE_DISTRO == "centos" ]] && [[ $BASE_DISTRO_MAJOR_VERSION -eq 8 ]]; then
|
||||||
|
virtualenv --system-site-packages ~/ceph-venv
|
||||||
|
else
|
||||||
|
virtualenv -p `which python2` --system-site-packages ~/ceph-venv
|
||||||
|
fi
|
||||||
~/ceph-venv/bin/pip install -Ir requirements.txt
|
~/ceph-venv/bin/pip install -Ir requirements.txt
|
||||||
~/ceph-venv/bin/pip install -IU selinux
|
~/ceph-venv/bin/pip install -IU selinux
|
||||||
}
|
}
|
||||||
|
@ -289,6 +289,9 @@
|
|||||||
cmd: deploy-ceph-ansible.sh
|
cmd: deploy-ceph-ansible.sh
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
chdir: "{{ ceph_ansible_src_dir }}"
|
chdir: "{{ ceph_ansible_src_dir }}"
|
||||||
|
environment:
|
||||||
|
BASE_DISTRO: "{{ base_distro }}"
|
||||||
|
BASE_DISTRO_MAJOR_VERSION: "{{ ansible_distribution_major_version }}"
|
||||||
|
|
||||||
- name: Ensure required kolla config directories exist
|
- name: Ensure required kolla config directories exist
|
||||||
file:
|
file:
|
||||||
|
@ -9,6 +9,8 @@ configure_firewall: false
|
|||||||
|
|
||||||
docker: true
|
docker: true
|
||||||
containerized_deployment: true
|
containerized_deployment: true
|
||||||
|
container_binary: "docker"
|
||||||
|
docker_pull_timeout: "600s"
|
||||||
|
|
||||||
dashboard_enabled: false
|
dashboard_enabled: false
|
||||||
|
|
||||||
|
@ -47,8 +47,7 @@
|
|||||||
- kolla-ansible-centos8-source-mariadb
|
- kolla-ansible-centos8-source-mariadb
|
||||||
- kolla-ansible-ubuntu-source-mariadb
|
- kolla-ansible-ubuntu-source-mariadb
|
||||||
- kolla-ansible-centos-source-ceph-ansible
|
- kolla-ansible-centos-source-ceph-ansible
|
||||||
# FIXME(mgoddard): Ceph-ansible CentOS 8 job.
|
- kolla-ansible-centos8-source-ceph-ansible
|
||||||
# - kolla-ansible-centos8-source-ceph-ansible
|
|
||||||
- kolla-ansible-ubuntu-source-ceph-ansible
|
- kolla-ansible-ubuntu-source-ceph-ansible
|
||||||
- kolla-ansible-centos-source-upgrade-ceph-ansible
|
- kolla-ansible-centos-source-upgrade-ceph-ansible
|
||||||
- kolla-ansible-ubuntu-source-upgrade-ceph-ansible
|
- kolla-ansible-ubuntu-source-upgrade-ceph-ansible
|
||||||
|
Loading…
Reference in New Issue
Block a user