Add basic upgrade jobs

The CI scripts install Bifrost on old stable, test it, then
do the same on master.

Change-Id: I300828d54af78ef4843094ff231652adc4566aa0
This commit is contained in:
Dmitry Tantsur 2020-09-08 16:50:53 +02:00
parent 2c79b71602
commit abf7d3fcb3
3 changed files with 60 additions and 0 deletions

30
playbooks/ci/upgrade.yaml Normal file
View File

@ -0,0 +1,30 @@
- hosts: all
tasks:
- command: git checkout {{ upgrade_from }}
args:
chdir: "{{ ansible_user_dir }}/{{ item.src_dir }}"
loop: "{{ zuul.projects.values() | list }}"
when: item.name not in skip_upgrade
- command: bash scripts/test-bifrost.sh
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
environment:
ENABLE_KEYSTONE: "{{ enable_keystone | default(false) | bool | lower }}"
LOG_LOCATION: "{{ ansible_user_dir }}/logs"
UPPER_CONSTRAINTS_FILE: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
WORKSPACE: "{{ ansible_user_dir }}/src/opendev.org"
ZUUL_BRANCH: "{{ upgrade_from }}"
- command: git checkout -
args:
chdir: "{{ ansible_user_dir }}/{{ item.src_dir }}"
loop: "{{ zuul.projects.values() | list }}"
when: item.name not in skip_upgrade
- command: bash scripts/test-bifrost.sh
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
environment:
ENABLE_KEYSTONE: "{{ enable_keystone | default(false) | bool | lower }}"
LOG_LOCATION: "{{ ansible_user_dir }}/logs"
UPPER_CONSTRAINTS_FILE: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
WORKSPACE: "{{ ansible_user_dir }}/src/opendev.org"
ZUUL_BRANCH: "{{ zuul.branch }}"

View File

@ -176,3 +176,29 @@
parent: openstack-tox-linters
required-projects:
- openstack/ansible-collections-openstack
- job:
name: bifrost-upgrade
parent: bifrost-base
run: playbooks/ci/upgrade.yaml
timeout: 9600
vars:
upgrade_from: stable/victoria
skip_upgrade:
- openstack/diskimage-builder
- openstack/ironic-python-agent-builder
- job:
name: bifrost-upgrade-ubuntu-focal
parent: bifrost-upgrade
nodeset: ubuntu-focal
- job:
name: bifrost-upgrade-keystone-centos8
parent: bifrost-upgrade
nodeset: centos-8-stream
required-projects:
- openstack/keystone
vars:
enable_keystone: true
noauth_mode: false

View File

@ -13,6 +13,8 @@
- bifrost-integration-tinyipa-keystone-centos-8
- bifrost-integration-redfish-vmedia-uefi-ubuntu-focal
- bifrost-integration-redfish-vmedia-uefi-centos-8
- bifrost-upgrade-ubuntu-focal
- bifrost-upgrade-keystone-centos8
# Non-voting jobs
- bifrost-integration-tinyipa-ubuntu-bionic:
voting: false
@ -59,3 +61,5 @@
- bifrost-integration-tinyipa-centos-8
- bifrost-integration-tinyipa-keystone-ubuntu-focal
- bifrost-integration-tinyipa-keystone-centos-8
- bifrost-upgrade-ubuntu-focal
- bifrost-upgrade-keystone-centos8