Merge "Add Zun scenario job for ubuntu" into stable/queens

This commit is contained in:
Zuul 2019-02-25 11:03:52 +00:00 committed by Gerrit Code Review
commit 4fe206e739
5 changed files with 35 additions and 1 deletions

View File

@ -14,7 +14,8 @@
- kolla-ansible-ubuntu-source-ceph
- kolla-ansible-centos-source-ceph
- kolla-ansible-oraclelinux-source-ceph
- kolla-ansible-ubuntu-source-zun:
files: ^ansible\/roles\/zun\/.*
- nodeset:
name: kolla-ansible-centos
nodes:
@ -162,3 +163,13 @@
base_distro: oraclelinux
install_type: source
scenario: ceph
- job:
name: kolla-ansible-ubuntu-source-zun
parent: kolla-ansible-base
nodeset: kolla-ansible-xenial
voting: false
vars:
base_distro: ubuntu
install_type: source
scenario: zun

View File

@ -109,3 +109,4 @@ policy_file = {{ zun_policy_file }}
[docker]
docker_remote_api_version = 1.24
api_url = tcp://{{ api_interface_address }}:2375

View File

@ -36,3 +36,9 @@ enable_cinder: "yes"
ceph_pool_pg_num: 64
ceph_pool_pgp_num: 64
{% endif %}
{% if scenario == "zun" %}
enable_zun: "yes"
enable_kuryr: "yes"
docker_custom_option: " -H unix:///var/run/docker.sock -H tcp://{{ api_interface_address }}:2375"
{% endif %}

View File

@ -597,6 +597,9 @@ placement
[zun-api:children]
zun
[zun-wsproxy:children]
zun
[zun-compute:children]
compute

View File

@ -44,6 +44,10 @@ fi
# Use the kolla-ansible tag rather than the kolla tag, since this is what
# kolla-ansible will use by default.
TAG=$(python -c "import pbr.version; print(pbr.version.VersionInfo('kolla-ansible'))")
if [[ $ACTION == "zun" ]]; then
GATE_IMAGES+=",zun,kuryr"
fi
cat <<EOF | sudo tee /etc/kolla/kolla-build.conf
[DEFAULT]
include_header = /etc/kolla/header
@ -91,6 +95,9 @@ function setup_ansible {
# TODO(SamYaple): Move to virtualenv
sudo -H pip install -U "ansible>=2,<2.4" "docker>=2.0.0" "python-openstackclient" "ara<0.16" "cmd2<0.9.0"
if [[ $ACTION == "zun" ]]; then
sudo -H pip install -U "python-zunclient"
fi
detect_distro
sudo mkdir /etc/ansible
@ -139,6 +146,12 @@ function sanity_check {
openstack volume create --size 2 test_volume
openstack server add volume kolla_boot_test test_volume --device /dev/vdb
fi
if echo $ACTION | grep -q "zun"; then
openstack --debug appcontainer service list
openstack --debug appcontainer host list
# TODO(hongbin): Run a Zun container and assert the container becomes
# Running
fi
}
check_failure() {