CI: octavia: remove octavia from magnum scenario
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/755589 Co-Authored-By: wu.chunyang <wuchunyang@yovole.com> Change-Id: I489c1ca23d8abc350d3204ecc167d5d93bbbd1d9
This commit is contained in:
parent
5d3ebc0452
commit
3c5ccb915e
@ -274,13 +274,6 @@
|
|||||||
docker_image_tag: "{{ build_image_tag if need_build_image else (zuul.branch | basename) ~ docker_image_tag_suffix }}"
|
docker_image_tag: "{{ build_image_tag if need_build_image else (zuul.branch | basename) ~ docker_image_tag_suffix }}"
|
||||||
docker_image_prefix: "{{ 'primary:4000/lokolla/' if need_build_image else 'kolla/' }}"
|
docker_image_prefix: "{{ 'primary:4000/lokolla/' if need_build_image else 'kolla/' }}"
|
||||||
|
|
||||||
# NOTE(yoctozepto): k-a octavia-certificates should run before k-a bootstrap-servers
|
|
||||||
# because the latter hijacks /etc/kolla permissions (due to same directory on the
|
|
||||||
# same host being used by both)
|
|
||||||
- name: create TLS certificates for octavia
|
|
||||||
command: kolla-ansible octavia-certificates
|
|
||||||
when: scenario == 'magnum'
|
|
||||||
|
|
||||||
# NOTE(mgoddard): We are using the script module here and later to ensure
|
# NOTE(mgoddard): We are using the script module here and later to ensure
|
||||||
# we use the local copy of these scripts, rather than the one on the remote
|
# we use the local copy of these scripts, rather than the one on the remote
|
||||||
# host, which could be checked out to a previous release (in an upgrade
|
# host, which could be checked out to a previous release (in an upgrade
|
||||||
|
@ -18,7 +18,7 @@ function setup_openstack_clients {
|
|||||||
packages+=(python-ironicclient python-ironic-inspector-client)
|
packages+=(python-ironicclient python-ironic-inspector-client)
|
||||||
fi
|
fi
|
||||||
if [[ $SCENARIO == magnum ]]; then
|
if [[ $SCENARIO == magnum ]]; then
|
||||||
packages+=(python-designateclient python-magnumclient python-octaviaclient python-troveclient)
|
packages+=(python-designateclient python-magnumclient python-troveclient)
|
||||||
fi
|
fi
|
||||||
if [[ $SCENARIO == masakari ]]; then
|
if [[ $SCENARIO == masakari ]]; then
|
||||||
packages+=(python-masakariclient)
|
packages+=(python-masakariclient)
|
||||||
@ -66,7 +66,7 @@ function prepare_images {
|
|||||||
GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid"
|
GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid"
|
||||||
fi
|
fi
|
||||||
if [[ $SCENARIO == "magnum" ]]; then
|
if [[ $SCENARIO == "magnum" ]]; then
|
||||||
GATE_IMAGES+=",^designate,^magnum,^octavia,^trove"
|
GATE_IMAGES+=",^designate,^magnum,^trove"
|
||||||
fi
|
fi
|
||||||
if [[ $SCENARIO == "masakari" ]]; then
|
if [[ $SCENARIO == "masakari" ]]; then
|
||||||
GATE_IMAGES+=",^masakari"
|
GATE_IMAGES+=",^masakari"
|
||||||
|
@ -157,7 +157,6 @@ enable_prometheus_openstack_exporter: "no"
|
|||||||
enable_designate: "yes"
|
enable_designate: "yes"
|
||||||
enable_magnum: "yes"
|
enable_magnum: "yes"
|
||||||
enable_trove: "yes"
|
enable_trove: "yes"
|
||||||
enable_octavia: "yes"
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if scenario == "monasca" %}
|
{% if scenario == "monasca" %}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Test deployment of magnum, octavia and designate.
|
# Test deployment of magnum, trove and designate.
|
||||||
|
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
set -o errexit
|
set -o errexit
|
||||||
@ -14,10 +14,6 @@ function test_magnum_clusters {
|
|||||||
openstack coe cluster template list
|
openstack coe cluster template list
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_octavia {
|
|
||||||
openstack loadbalancer list
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_trove {
|
function test_trove {
|
||||||
# smoke test
|
# smoke test
|
||||||
openstack database instance list
|
openstack database instance list
|
||||||
@ -66,19 +62,18 @@ function test_magnum_logged {
|
|||||||
. /etc/kolla/admin-openrc.sh
|
. /etc/kolla/admin-openrc.sh
|
||||||
. ~/openstackclient-venv/bin/activate
|
. ~/openstackclient-venv/bin/activate
|
||||||
test_magnum_clusters
|
test_magnum_clusters
|
||||||
test_octavia
|
|
||||||
test_designate
|
test_designate
|
||||||
test_trove
|
test_trove
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_magnum {
|
function test_magnum {
|
||||||
echo "Testing Magnum, Octavia, Trove and Designate"
|
echo "Testing Magnum, Trove and Designate"
|
||||||
test_magnum_logged > /tmp/logs/ansible/test-magnum 2>&1
|
test_magnum_logged > /tmp/logs/ansible/test-magnum 2>&1
|
||||||
result=$?
|
result=$?
|
||||||
if [[ $result != 0 ]]; then
|
if [[ $result != 0 ]]; then
|
||||||
echo "Testing Magnum, Octavia, Trove and Designate failed. See ansible/test-magnum for details"
|
echo "Testing Magnum, Trove and Designate failed. See ansible/test-magnum for details"
|
||||||
else
|
else
|
||||||
echo "Successfully tested Magnum, Octavia, Trove and Designate . See ansible/test-magnum for details"
|
echo "Successfully tested Magnum, Trove and Designate . See ansible/test-magnum for details"
|
||||||
fi
|
fi
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
parent: kolla-ansible-base
|
parent: kolla-ansible-base
|
||||||
voting: false
|
voting: false
|
||||||
files:
|
files:
|
||||||
- ^ansible/roles/(designate|magnum|octavia|octavia-certificates|trove)/
|
- ^ansible/roles/(designate|magnum|trove)/
|
||||||
- ^tests/test-dashboard.sh
|
- ^tests/test-dashboard.sh
|
||||||
- ^tests/test-magnum.sh
|
- ^tests/test-magnum.sh
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user