Update containers for update jobs
WIP. Just checking what we're missing here. Resolves: #2015993 Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/880162 Change-Id: I2829307d1013e96317338eccc7a4b16376fb1d2b
This commit is contained in:
parent
a21d6b35ab
commit
0bcd37a99b
|
@ -1,4 +1,83 @@
|
||||||
---
|
---
|
||||||
|
# the yum repos ALWAYS need to change
|
||||||
|
- name: Configure next release repository in the undercloud
|
||||||
|
hosts: undercloud
|
||||||
|
tags:
|
||||||
|
- overcloud-update
|
||||||
|
vars:
|
||||||
|
repo_setup_run_update: false
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# note: in upstream CI the gerrit change is built on the content-provider
|
||||||
|
# this task will be skipped upstream
|
||||||
|
- name: Build the gerrit changes on the relevant release for the upgrade
|
||||||
|
hosts: undercloud
|
||||||
|
tags:
|
||||||
|
- build
|
||||||
|
vars:
|
||||||
|
repo_setup_run_update: false
|
||||||
|
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: build-test-packages
|
||||||
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
||||||
|
|
||||||
|
|
||||||
|
- name: DEBUG save current containers-prepare-parameter.yaml
|
||||||
|
hosts: undercloud
|
||||||
|
gather_facts: false
|
||||||
|
tags:
|
||||||
|
- overcloud-update
|
||||||
|
tasks:
|
||||||
|
- name: DEBUG ensure current containers-prepare-parameter.yaml is saved
|
||||||
|
shell: |
|
||||||
|
cp containers-prepare-parameter.yaml containers-prepare-parameter-before.yaml
|
||||||
|
|
||||||
|
- name: Revert container to current dlrn tag for update testing
|
||||||
|
hosts: undercloud
|
||||||
|
gather_facts: false
|
||||||
|
tags:
|
||||||
|
- overcloud-update
|
||||||
|
roles:
|
||||||
|
- role: container-update
|
||||||
|
when:
|
||||||
|
- containerized_undercloud|default(false)|bool
|
||||||
|
- overcloud_update|default(false)|bool
|
||||||
|
vars:
|
||||||
|
release_update: "{{ release }}-current"
|
||||||
|
docker_registry_host: "{{ job.registry_ip_address_branch[release_update] }}:{{ local_registry_port }}"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Prepare containers for update
|
||||||
|
hosts: undercloud
|
||||||
|
gather_facts: false
|
||||||
|
tags:
|
||||||
|
- overcloud-update
|
||||||
|
tasks:
|
||||||
|
- name: Gather facts for prep-container role
|
||||||
|
include_role:
|
||||||
|
name: overcloud-prep-containers
|
||||||
|
tasks_from: main
|
||||||
|
- name: Create prep containers script
|
||||||
|
include_role:
|
||||||
|
name: overcloud-prep-containers
|
||||||
|
tasks_from: create-scripts
|
||||||
|
- name: Run prep containers script
|
||||||
|
include_role:
|
||||||
|
name: overcloud-prep-containers
|
||||||
|
tasks_from: overcloud-prep-containers
|
||||||
|
vars:
|
||||||
|
overcloud_prep_containers_log: "update_overcloud_prep_containers.log"
|
||||||
|
when: overcloud_update|default(false)|bool
|
||||||
|
|
||||||
- name: Run tripleo-upgrade role to update the overcloud
|
- name: Run tripleo-upgrade role to update the overcloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
- name: set the service environments for container image prepare
|
- name: set the service environments for container image prepare
|
||||||
set_fact:
|
set_fact:
|
||||||
prepare_service_env_args: >-
|
prepare_service_env_args: >-
|
||||||
-e {{ overcloud_templates_path }}/environments/docker.yaml
|
-e {{ overcloud_templates_path }}/environments/podman.yaml
|
||||||
-e {{ overcloud_templates_path }}/ci/environments/{{ composable_scenario }}
|
-e {{ overcloud_templates_path }}/ci/environments/{{ composable_scenario }}
|
||||||
when: not composable_scenario|trim == ''
|
when: not composable_scenario|trim == ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue