Browse Source

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
Chris Hoge 5 months ago
parent
commit
1fe0468291
2 changed files with 1 additions and 68 deletions
  1. 1
    53
      playbooks/loci-builder.yaml
  2. 0
    15
      playbooks/post.yaml

+ 1
- 53
playbooks/loci-builder.yaml View File

@@ -17,45 +17,19 @@
17 17
             repository: 172.17.0.1:5000/loci/requirements
18 18
             push: yes
19 19
           with_items: "{{ distros }}"
20
-          async: 1000
21
-          poll: 0
22
-          register: pull
23
-
24
-        - async_status:
25
-            jid: "{{ item.ansible_job_id }}"
26
-          with_items: "{{ pull.results }}"
27
-          register: pull_result
28
-          until:
29
-            - pull_result.finished is defined
30
-            - pull_result.finished
31
-          retries: 1000
32
-          delay: 5
33 20
       when:
34 21
        - reuse_requirements | bool
35 22
        - project != 'requirements'
36 23
 
37 24
     - name: Build base images
38 25
       block:
39
-        - name: "Build base image for {{ item.name }} asynchronously"
26
+        - name: "Build base image for {{ item.name }}"
40 27
           docker_image:
41 28
             path: "{{ loci_src_dir }}/dockerfiles/{{ item.name }}"
42 29
             name: base
43 30
             tag: "{{ item.name }}"
44 31
             buildargs: "{{ item.buildargs.base }}"
45 32
           with_items: "{{ distros }}"
46
-          async: 1000
47
-          poll: 0
48
-          register: base
49
-
50
-        - async_status:
51
-            jid: "{{ item.ansible_job_id }}"
52
-          with_items: "{{ base.results }}"
53
-          register: base_result
54
-          until:
55
-            - base_result.finished is defined
56
-            - base_result.finished
57
-          retries: 1000
58
-          delay: 5
59 33
 
60 34
     - name: Build requirements image
61 35
       block:
@@ -69,19 +43,6 @@
69 43
             pull: False
70 44
             buildargs: "{{ item.buildargs.requirements }}"
71 45
           with_items: "{{ distros }}"
72
-          async: 1000
73
-          poll: 0
74
-          register: build
75
-
76
-        - async_status:
77
-            jid: "{{ item.ansible_job_id }}"
78
-          with_items: "{{ build.results }}"
79
-          register: build_result
80
-          until:
81
-            - build_result.finished is defined
82
-            - build_result.finished
83
-          retries: 1000
84
-          delay: 5
85 46
       when:
86 47
        - (not reuse_requirements) | bool
87 48
        - project != 'requirements'
@@ -96,16 +57,3 @@
96 57
             pull: False
97 58
             buildargs: "{{ item.buildargs.project }}"
98 59
           with_items: "{{ distros }}"
99
-          async: 1000
100
-          poll: 0
101
-          register: build
102
-
103
-        - async_status:
104
-            jid: "{{ item.ansible_job_id }}"
105
-          with_items: "{{ build.results }}"
106
-          register: build_result
107
-          until:
108
-            - build_result.finished is defined
109
-            - build_result.finished
110
-          retries: 1000
111
-          delay: 5

+ 0
- 15
playbooks/post.yaml View File

@@ -1,20 +1,5 @@
1 1
 - hosts: all
2 2
   tasks:
3
-    - name: Collect logs
4
-      block:
5
-        # FIXME: https://github.com/ansible/ansible/issues/14131
6
-        # This issue closed on October 11, 2018. Patch will be released
7
-        # with Ansible 2.8 release.
8
-        - command: cp -r /home/zuul/.ansible_async /logs/async_logs
9
-        # FIXME: running this is causing the gate to hang
10
-        #- command: journalctl -xb -u docker.service
11
-        #  register: docker_daemon_log
12
-        #  no_log: True
13
-        #- copy:
14
-        #    content: "{{ docker_daemon_log.stdout }}"
15
-        #    dest: /logs/docker_daemon.log
16
-      become: true
17
-
18 3
     - name: Copy logs
19 4
       synchronize:
20 5
         src: /logs

Loading…
Cancel
Save