CentOS 8: CI: Add upgrade job

Test upgrade from CentOS 8 train to CentOS 8 master.

Change-Id: Ibff2c7f8844dec4758945cbc7aa8df80d70a3dfd
Partially-Implements: blueprint centos-rhel-8
This commit is contained in:
Mark Goddard 2020-03-02 15:33:33 +00:00
parent 19671fb3c7
commit 29f223c02a
3 changed files with 15 additions and 1 deletions

View File

@ -11,6 +11,8 @@
vars:
# NOTE(yoctozepto): needed here to use in other facts too
openstack_core_enabled: "{{ scenario not in ['bifrost', 'mariadb'] }}"
# TODO(mgoddard): Remove when previous_release is ussuri.
is_centos8: "{{ ansible_os_family == 'RedHat' and ansible_distribution_major_version | int == 8 }}"
set_fact:
kolla_inventory_path: "/etc/kolla/inventory"
logs_dir: "/tmp/logs"
@ -24,7 +26,7 @@
openstack_core_tested: "{{ scenario in ['core', 'ceph-ansible', 'zun', 'cells', 'swift', 'linuxbridge'] }}"
dashboard_enabled: "{{ openstack_core_enabled }}"
# TODO(mgoddard): Remove when previous_release is ussuri.
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' else '3' }}"
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' and not is_centos8 else '3' }}"
- name: Install xfsprogs package for Swift filesystems
become: true
@ -498,6 +500,7 @@
executable: pip2
state: absent
become: true
when: playbook_python_version == '2'
- name: install ansible and ARA for python 3
vars:

View File

@ -140,6 +140,16 @@
install_type: source
is_upgrade: yes
- job:
name: kolla-ansible-centos8-source-upgrade
parent: kolla-ansible-base
nodeset: kolla-ansible-centos8
timeout: 9000
vars:
base_distro: centos
install_type: source
is_upgrade: yes
- job:
name: kolla-ansible-ubuntu-source-upgrade
parent: kolla-ansible-base

View File

@ -36,6 +36,7 @@
- kolla-ansible-centos8-binary-ironic
- kolla-ansible-ubuntu-source-ironic
- kolla-ansible-centos-source-upgrade
- kolla-ansible-centos8-source-upgrade
- kolla-ansible-ubuntu-source-upgrade
- kolla-ansible-centos-binary
- kolla-ansible-centos8-binary