Render containerized-prepare-parameters.yaml during upgrade if not found.
Generally, if we upgrade from a containerized undercloud the containers-prepare-paramters.yaml file will be already present (as it is being rendered during the undercloud-deploy). However, if we upgrade the Undercloud from Queens (non-containerized) to Rocky (containerized) the file won't be present. We need to render it during the container-update role so we can set the right values. Change-Id: I3fd411ef753bdd1f4ce5d6befa726d82e9073458 Related-Bug: #1855856
This commit is contained in:
parent
66ce22d6ed
commit
0de4ed518d
|
@ -3,7 +3,14 @@
|
|||
stat:
|
||||
path: "{{ working_dir }}/{{ containers_file }}"
|
||||
register: stat_cont_file
|
||||
failed_when: not stat_cont_file.stat.exists
|
||||
|
||||
- name: "Render {{ containers_file }} if it doesn't exist."
|
||||
include_role:
|
||||
name: undercloud_deploy
|
||||
tasks_from: create-scripts.yml
|
||||
vars:
|
||||
containerized_undercloud: "{{ containerized_undercloud_upgrade }}"
|
||||
when: not stat_cont_file.stat.exists
|
||||
|
||||
- name: "Substitute containers registry to {{ docker_registry_host|default('nothing') }}/{{ docker_registry_namespace_used|default('nothing') }}"
|
||||
replace:
|
||||
|
|
Loading…
Reference in New Issue