
When upgrading from Queens to Rocky, we are jumping from a non-containerized undercloud into a containerized one. However, this scenario hasn't been considered yet. When submitting [0] we add the logic to upgrade always to a containerized undercloud, we need to have a variable that allows us differentiate between the type (containerized or non-containrized) of undercloud we deploy and upgrade to. [0] - Ibcdfd71b9280615aedc4d59ef0c566c475f15d0b Related-Bug: #1855856 Change-Id: I30b4789adcf348c636d3679523075b22f8956ff1
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
---
|
|
- name: Configure next release repository in the undercloud
|
|
hosts: undercloud
|
|
tags:
|
|
- undercloud-upgrade
|
|
vars:
|
|
repo_setup_script: "repo-setup-{{ lookup('env', 'UPGRADE_RELEASE') }}.sh"
|
|
repo_setup_log: "repo-setup-{{ lookup('env', 'UPGRADE_RELEASE') }}.log"
|
|
repo_setup_run_update: false
|
|
dlrn_hash_path: ''
|
|
dlrn_hash_path_newest: ''
|
|
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
|
# This should not be enabled because the updating of the packages occurs
|
|
# durring the upgrade process. For general installation it's ok to have
|
|
# this enabled, but this needs to be disabled for upgrades
|
|
ib_gating_repo_update: false
|
|
roles:
|
|
- role: repo-setup
|
|
- role: build-test-packages
|
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
|
|
|
- name: Prepare containers for Upgrade
|
|
hosts: undercloud
|
|
gather_facts: false
|
|
tags:
|
|
- undercloud-upgrade
|
|
roles:
|
|
- role: container-update
|
|
when: containerized_undercloud_upgrade|default(false)|bool
|
|
|
|
- name: Run tripleo-upgrade role to upgrade undercloud
|
|
hosts: undercloud
|
|
tags:
|
|
- undercloud-upgrade
|
|
roles:
|
|
- role: tripleo-upgrade
|