Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure atomic hosts prepull node image during pre-upgrade
Currently, atomic hosts do not prepull the node image during pre-upgrade step. This commit refactors image prepulling to ensure it happens at the approriate times for both install and upgrades and properly accounts for atomic host. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1629558
- Loading branch information
1 parent
e71f308
commit a8d03ae
Showing
11 changed files
with
67 additions
and
74 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,9 @@ | ||
--- | ||
- name: Copy node container image to ostree storage | ||
command: > | ||
atomic pull --storage=ostree docker:{{ osn_image }} | ||
register: pull_result | ||
retries: 3 | ||
delay: 5 | ||
until: pull_result.rc == 0 | ||
changed_when: "'Pulling layer' in pull_result.stdout" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
- name: Check status of node image pre-pull | ||
async_status: | ||
jid: "{{ image_prepull.ansible_job_id }}" | ||
register: job_result | ||
until: job_result.finished | ||
when: | ||
- node_image.stdout_lines == [] | ||
- not openshift_is_atomic | bool | ||
retries: 20 | ||
delay: 30 | ||
failed_when: false | ||
|
||
- name: Check status of node pod image pre-pull | ||
async_status: | ||
jid: "{{ pod_image_prepull.ansible_job_id }}" | ||
register: job_result | ||
until: job_result.finished | ||
when: pod_image.stdout_lines == [] | ||
retries: 20 | ||
delay: 30 | ||
failed_when: false |
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