03ddd02656
* Downgrade openstacksdk instead of the collections since some keystone
code does not work on old collection and new SDK.
* Force checkout on upgrade since we have local changes to requirements
Reverts commit c12b7fafe8
.
Change-Id: I14a83b703c1c76fd311c60aa23880b5708105165
39 lines
1.8 KiB
YAML
39 lines
1.8 KiB
YAML
- 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
|
|
- shell:
|
|
cmd: |
|
|
set -eo pipefail
|
|
./scripts/test-bifrost.sh 2>&1 | tee "{{ ansible_user_dir }}/bifrost-old.log"
|
|
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
|
|
executable: /bin/bash
|
|
environment:
|
|
BIFROST_TRACE: "true"
|
|
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 --force -
|
|
args:
|
|
chdir: "{{ ansible_user_dir }}/{{ item.src_dir }}"
|
|
loop: "{{ zuul.projects.values() | list }}"
|
|
when: item.name not in skip_upgrade
|
|
- shell:
|
|
cmd: |
|
|
set -eo pipefail
|
|
./scripts/test-bifrost.sh 2>&1 | tee "{{ ansible_user_dir }}/bifrost-new.log"
|
|
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
|
|
executable: /bin/bash
|
|
environment:
|
|
BIFROST_TRACE: "true"
|
|
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 }}"
|