This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the in-built image prepare for undercloud install
This file will write out the heat environment file containers-prepare-parameter.yaml which will be used to do any required image preparation during undercloud install. The role parameter undercloud_container_images_file has been left as an option for overriding, but is no longer required. This change also switches the overcloud prepare to consume this file via the command "openstack tripleo container image prepare" It is expected that overcloud deploy will use the exact same containers-prepare-parameter.yaml and the logic will be in place to skip any unnecessary prepare actions. For this reason, the parameter undercloud_docker_image_tag has been removed, and docker_image_tag is used directly. Since this file (and the variables used to build it) will be common to undercloud and overcloud, there has been some refactoring to move variable defaults to extras-common. Change-Id: I290806b9296773688dfd02bc41f8baea28cf3d6a Blueprint: container-prepare-workflow
- Loading branch information
Showing
14 changed files
with
87 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Conditional facts to be set which are common to undercloud and overcloud | ||
- name: set docker_registry_namespace_used | ||
set_fact: | ||
docker_registry_namespace_used: "{{ docker_registry_namespace }}" | ||
|
||
- name: set container_build_id from get_build_command | ||
set_fact: | ||
container_build_id: "{{ get_build_command }}" | ||
when: get_build_command is defined | ||
|
||
- name: set mixed upgrade container_build_id | ||
set_fact: | ||
container_build_id: "{{ overcloud_docker_image_tag }}" | ||
docker_registry_namespace_used: "{{ overcloud_docker_registry_namespace }}" | ||
when: | ||
- container_build_id is not defined | ||
- use_overcloud_mixed_upgrade|default(false)|bool | ||
|
||
- name: set container_build_id from docker_image_tag | ||
set_fact: | ||
container_build_id: "{{ docker_image_tag }}" | ||
when: container_build_id is not defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
roles/undercloud-deploy/templates/containers-prepare-parameter.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
parameter_defaults: | ||
DockerInsecureRegistryAddress: | ||
- {{ local_docker_registry_host }}:8787 | ||
ContainerImagePrepare: | ||
- push_destination: "{{ local_docker_registry_host }}:8787" | ||
set: | ||
tag: "{{ container_build_id }}" | ||
namespace: "{{ docker_registry_host }}/{{ docker_registry_namespace_used }}" | ||
name_prefix: "{{ docker_prep_prefix }}" | ||
name_suffix: "{{ docker_prep_suffix }}" | ||
ceph_namespace: "{{ docker_ceph_namespace }}" | ||
ceph_image: "{{ docker_ceph_image }}" | ||
ceph_tag: "{{ docker_ceph_tag }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 0 additions & 77 deletions
77
roles/undercloud-deploy/templates/undercloud-prep-containers.sh.j2
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters