Remove async jobs to debug and possible async instability
Individual Loci gate jobs are failing about 1 out of 10 times. Remove async to help debug and remove potential instability. Change-Id: I3a3dbeebe4c5c928c21181500a7e07be4015b858
This commit is contained in:
parent
d0ef425ef6
commit
1fe0468291
|
@ -17,45 +17,19 @@
|
||||||
repository: 172.17.0.1:5000/loci/requirements
|
repository: 172.17.0.1:5000/loci/requirements
|
||||||
push: yes
|
push: yes
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
async: 1000
|
|
||||||
poll: 0
|
|
||||||
register: pull
|
|
||||||
|
|
||||||
- async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
with_items: "{{ pull.results }}"
|
|
||||||
register: pull_result
|
|
||||||
until:
|
|
||||||
- pull_result.finished is defined
|
|
||||||
- pull_result.finished
|
|
||||||
retries: 1000
|
|
||||||
delay: 5
|
|
||||||
when:
|
when:
|
||||||
- reuse_requirements | bool
|
- reuse_requirements | bool
|
||||||
- project != 'requirements'
|
- project != 'requirements'
|
||||||
|
|
||||||
- name: Build base images
|
- name: Build base images
|
||||||
block:
|
block:
|
||||||
- name: "Build base image for {{ item.name }} asynchronously"
|
- name: "Build base image for {{ item.name }}"
|
||||||
docker_image:
|
docker_image:
|
||||||
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
|
path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
|
||||||
name: base
|
name: base
|
||||||
tag: "{{ item.name }}"
|
tag: "{{ item.name }}"
|
||||||
buildargs: "{{ item.buildargs.base }}"
|
buildargs: "{{ item.buildargs.base }}"
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
async: 1000
|
|
||||||
poll: 0
|
|
||||||
register: base
|
|
||||||
|
|
||||||
- async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
with_items: "{{ base.results }}"
|
|
||||||
register: base_result
|
|
||||||
until:
|
|
||||||
- base_result.finished is defined
|
|
||||||
- base_result.finished
|
|
||||||
retries: 1000
|
|
||||||
delay: 5
|
|
||||||
|
|
||||||
- name: Build requirements image
|
- name: Build requirements image
|
||||||
block:
|
block:
|
||||||
|
@ -69,19 +43,6 @@
|
||||||
pull: False
|
pull: False
|
||||||
buildargs: "{{ item.buildargs.requirements }}"
|
buildargs: "{{ item.buildargs.requirements }}"
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
async: 1000
|
|
||||||
poll: 0
|
|
||||||
register: build
|
|
||||||
|
|
||||||
- async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
with_items: "{{ build.results }}"
|
|
||||||
register: build_result
|
|
||||||
until:
|
|
||||||
- build_result.finished is defined
|
|
||||||
- build_result.finished
|
|
||||||
retries: 1000
|
|
||||||
delay: 5
|
|
||||||
when:
|
when:
|
||||||
- (not reuse_requirements) | bool
|
- (not reuse_requirements) | bool
|
||||||
- project != 'requirements'
|
- project != 'requirements'
|
||||||
|
@ -96,16 +57,3 @@
|
||||||
pull: False
|
pull: False
|
||||||
buildargs: "{{ item.buildargs.project }}"
|
buildargs: "{{ item.buildargs.project }}"
|
||||||
with_items: "{{ distros }}"
|
with_items: "{{ distros }}"
|
||||||
async: 1000
|
|
||||||
poll: 0
|
|
||||||
register: build
|
|
||||||
|
|
||||||
- async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
with_items: "{{ build.results }}"
|
|
||||||
register: build_result
|
|
||||||
until:
|
|
||||||
- build_result.finished is defined
|
|
||||||
- build_result.finished
|
|
||||||
retries: 1000
|
|
||||||
delay: 5
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Collect logs
|
|
||||||
block:
|
|
||||||
# FIXME: https://github.com/ansible/ansible/issues/14131
|
|
||||||
# This issue closed on October 11, 2018. Patch will be released
|
|
||||||
# with Ansible 2.8 release.
|
|
||||||
- command: cp -r /home/zuul/.ansible_async /logs/async_logs
|
|
||||||
# FIXME: running this is causing the gate to hang
|
|
||||||
#- command: journalctl -xb -u docker.service
|
|
||||||
# register: docker_daemon_log
|
|
||||||
# no_log: True
|
|
||||||
#- copy:
|
|
||||||
# content: "{{ docker_daemon_log.stdout }}"
|
|
||||||
# dest: /logs/docker_daemon.log
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Copy logs
|
- name: Copy logs
|
||||||
synchronize:
|
synchronize:
|
||||||
src: /logs
|
src: /logs
|
||||||
|
|
Loading…
Reference in New Issue