|
58 | 58 | ansible.builtin.command: |
59 | 59 | argv: [/usr/local/bin/openshell, gateway, add, http://127.0.0.1:17670, --local, --name, tmachine] |
60 | 60 |
|
| 61 | + # DIAGNOSTIC PROBE, NOT FOR MERGE (#3712): `script` backs the PTY helper |
| 62 | + # used by the sandbox_lifecycle tests. |
| 63 | + - name: Install guest tools used by the E2E archive |
| 64 | + become: true |
| 65 | + ansible.builtin.dnf: |
| 66 | + name: util-linux-script |
| 67 | + state: present |
| 68 | + |
61 | 69 | - name: Run Podman E2E archive tests |
62 | 70 | ansible.builtin.command: |
63 | 71 | argv: |
|
109 | 117 | var: podman_e2e_gateway_journal.stdout_lines |
110 | 118 | when: podman_e2e_test_result.rc != 0 |
111 | 119 |
|
| 120 | + # DIAGNOSTIC PROBE, NOT FOR MERGE (#3712): evidence for the IP-literal |
| 121 | + # timeouts in proxy_egress_pipeline and the policy DNS failure in |
| 122 | + # transparent_tcp. |
| 123 | + - name: Capture Podman network diagnostics after Podman E2E test failure |
| 124 | + ansible.builtin.shell: | |
| 125 | + echo "== podman network inspect tmachine" |
| 126 | + podman network inspect tmachine |
| 127 | + echo "== podman ps -a" |
| 128 | + podman ps -a |
| 129 | + args: |
| 130 | + executable: /bin/bash |
| 131 | + environment: |
| 132 | + HOME: /home/tmachine |
| 133 | + XDG_RUNTIME_DIR: /run/user/1000 |
| 134 | + changed_when: false |
| 135 | + failed_when: false |
| 136 | + when: podman_e2e_test_result.rc != 0 |
| 137 | + register: podman_e2e_podman_diagnostics |
| 138 | + |
| 139 | + - name: Capture guest network diagnostics after Podman E2E test failure |
| 140 | + become: true |
| 141 | + ansible.builtin.shell: | |
| 142 | + echo "== ip -brief addr" |
| 143 | + ip -brief addr |
| 144 | + echo "== ip route" |
| 145 | + ip route |
| 146 | + echo "== getenforce" |
| 147 | + getenforce |
| 148 | + echo "== nft ruleset (first 80 lines)" |
| 149 | + nft list ruleset 2>&1 | head -80 |
| 150 | + args: |
| 151 | + executable: /bin/bash |
| 152 | + changed_when: false |
| 153 | + failed_when: false |
| 154 | + when: podman_e2e_test_result.rc != 0 |
| 155 | + register: podman_e2e_guest_diagnostics |
| 156 | + |
| 157 | + - name: Show Podman network diagnostics after Podman E2E test failure |
| 158 | + ansible.builtin.debug: |
| 159 | + var: podman_e2e_podman_diagnostics.stdout_lines |
| 160 | + when: podman_e2e_test_result.rc != 0 |
| 161 | + |
| 162 | + - name: Show guest network diagnostics after Podman E2E test failure |
| 163 | + ansible.builtin.debug: |
| 164 | + var: podman_e2e_guest_diagnostics.stdout_lines |
| 165 | + when: podman_e2e_test_result.rc != 0 |
| 166 | + |
112 | 167 | - name: Require Podman E2E archive success |
113 | 168 | ansible.builtin.assert: |
114 | 169 | that: [podman_e2e_test_result.rc == 0] |
|
0 commit comments