cbb567cb86
Sometimes, the registries may intermittently fail to deliver the images. This is often seen in the CI, though it also happens with production deployments, even those with internal registries and/or registry mirrors - due to sheer load when trying to pull the images from many hosts. This patchs adds two new vars to control retry behaviour. The default has been set to make users happier by default. :-) Change-Id: I81ad7d8642654f8474f11084c6934aab40243d35
75 lines
2.4 KiB
YAML
75 lines
2.4 KiB
YAML
---
|
|
- name: Pulling rsyncd image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_rsyncd_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-account-server'] or
|
|
inventory_hostname in groups['swift-container-server'] or
|
|
inventory_hostname in groups['swift-object-server']
|
|
|
|
- name: Pulling swift-proxy-server image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_proxy_server_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-proxy-server']
|
|
|
|
- name: Pulling swift-account image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_account_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-account-server']
|
|
|
|
- name: Pulling swift-container image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_container_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-container-server']
|
|
|
|
- name: Pulling swift-object image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_object_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-object-server']
|
|
|
|
- name: Pulling swift-object-expirer image
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ swift_object_expirer_image_full }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
when: inventory_hostname in groups['swift-object-server']
|