[CI] Test Swift upgrades

Swift is a major OpenStack project. It could use testing upgrades.

New jobs are placed in the experimental pipeline to avoid
excessive CI load on general changes.

Change-Id: I8a089fdd1f21eb4c3e00c38ea9dfcecc77565bf5
Related-Bug: #1874691
This commit is contained in:
Radosław Piliszek 2020-04-24 16:14:42 +02:00
parent 85879afc0b
commit b7e85d5282
4 changed files with 38 additions and 0 deletions

View File

@ -591,6 +591,12 @@
HAS_UPGRADE: 'yes'
PHASE: upgrade
when: openstack_core_tested
- name: Run test-swift.sh script
command:
cmd: tests/test-swift.sh
chdir: "{{ kolla_ansible_src_dir }}"
when: scenario == 'swift'
when: is_upgrade
# Bifrost testing.

View File

@ -40,9 +40,17 @@ function test_swift_logged {
openstack --debug object store account show
cleanup_swift
echo "SUCCESS: Swift"
}
function cleanup_swift {
openstack --debug object delete $CONTAINER_NAME $FILE_PATH
openstack --debug container delete $CONTAINER_NAME
}
function test_swift {
echo "Testing Swift"
log_file=/tmp/logs/ansible/test-swift

View File

@ -225,6 +225,26 @@
base_distro: ubuntu
install_type: source
- job:
name: kolla-ansible-centos8s-source-swift-upgrade
parent: kolla-ansible-swift-base
nodeset: kolla-ansible-centos8s-multi
timeout: 10800
vars:
base_distro: centos
install_type: source
is_upgrade: yes
- job:
name: kolla-ansible-ubuntu-source-swift-upgrade
parent: kolla-ansible-swift-base
nodeset: kolla-ansible-focal-multi
timeout: 10800
vars:
base_distro: ubuntu
install_type: source
is_upgrade: yes
- job:
name: kolla-ansible-centos8s-source-scenario-nfv
parent: kolla-ansible-scenario-nfv-base

View File

@ -64,3 +64,7 @@
- kolla-ansible-centos8s-source-upgrade
- kolla-ansible-ubuntu-source
- kolla-ansible-ubuntu-source-upgrade
experimental:
jobs:
- kolla-ansible-centos8s-source-swift-upgrade
- kolla-ansible-ubuntu-source-swift-upgrade