9f56dc611a
This patch aims to implement testing of SLURP upgrades. While 2023.1 is the first SLURP release, upgrade from Yoga to 2023.1 is considered as unofficial SLURP upgrade. With that we're adding changes to gate-check-commit to be able to provide source release from which upgrade will be perfromed. While running upgrade script user is required to provide source release as input to script for SLURP releases. Also regular upgrades are now switched to Zed as they supposed to be. Change-Id: I64e55b2c685782d23bb84e7e9f7c60708c276cc3
62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
---
|
|
# Copyright 2019, Logan Vig <logan2211@gmail.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Bootstrap the OSA AIO
|
|
hosts: all[0]
|
|
vars_files:
|
|
- "{{ zuul.executor.work_root }}/osa-gate-scenario.yml"
|
|
vars:
|
|
_zuul_src_path: "{{ ansible_user_dir }}/src"
|
|
tasks:
|
|
- name: Mark OSA repository as safe
|
|
become: yes
|
|
become_user: root
|
|
git_config:
|
|
name: safe.directory
|
|
scope: global
|
|
value: "{{ _zuul_src_path }}/opendev.org/openstack/openstack-ansible"
|
|
- name: Run bootstrap-ansible script
|
|
become: yes
|
|
become_user: root
|
|
shell: scripts/bootstrap-ansible.sh
|
|
args:
|
|
chdir: "src/opendev.org/openstack/openstack-ansible"
|
|
executable: /bin/bash
|
|
environment:
|
|
# ZUUL_SRC_PATH is used by tests/get-ansible-role-requirements to
|
|
# where the CI provided git sources were cloned.
|
|
ZUUL_SRC_PATH: "{{ (action != 'shastest') | ternary(_zuul_src_path, '') }}"
|
|
ANSIBLE_PACKAGE: "{{ ansible_package | default('') }}"
|
|
SETUP_ARA: 'true'
|
|
when: "'upgrade' not in action"
|
|
- name: Run bootstrap-aio script
|
|
become: yes
|
|
become_user: root
|
|
shell: scripts/bootstrap-aio.sh
|
|
args:
|
|
chdir: "src/opendev.org/openstack/openstack-ansible"
|
|
executable: /bin/bash
|
|
environment:
|
|
# ZUUL_SRC_PATH is used by tests/roles/bootstrap-host
|
|
# symlink the zuul roles into /openstack/src
|
|
ZUUL_SRC_PATH: "{{ _zuul_src_path }}"
|
|
SCENARIO: "{{ scenario }}"
|
|
ACTION: "{{ action }}"
|
|
INSTALL_METHOD: "{{ install_method }}"
|
|
when:
|
|
- "'upgrade' not in action"
|
|
- action != 'linters'
|
|
- action != 'shastest'
|