Merge ~pwlars/testflinger-cli:dont-let-poll-die into testflinger-cli:master
Proposed by
Paul Larson
Status: | Merged |
---|---|
Approved by: | Paul Larson |
Approved revision: | 6c1a552069f6ba63b70232f3741dcf267d27ab89 |
Merged at revision: | 1ec2a0aac3b17000e5db729adbf0fd3331e4a4ec |
Proposed branch: | ~pwlars/testflinger-cli:dont-let-poll-die |
Merge into: | testflinger-cli:master |
Diff against target: |
18 lines (+6/-1) 1 file modified
testflinger-cli (+6/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Larson | Approve | ||
Review via email: mp+326528@code.launchpad.net |
Description of the change
I noticed that in one of the test runs today, we saw a crash while testflinger-cli was polling [1]. The job continues to run in the background, but because jenkins loses it's monitor of the status, it tries to continue and fails. So even though the test might run, we don't get the email at the end with the summary and all that. This should make testflinger-cli retry if it hits spurious errors like this, rather than just dying.
To post a comment you must log in.
[1] jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 386, in _make_request raise_from( e, None) jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 382, in _make_request response = conn.getresponse() python3. 5/http/ client. py", line 1197, in getresponse begin() python3. 5/http/ client. py", line 297, in begin python3. 5/http/ client. py", line 258, in _read_status fp.readline( _MAXLINE + 1), "iso-8859-1") python3. 5/socket. py", line 575, in readinto recv_into( b)
Timeout while trying to communicate with the server.
Traceback (most recent call last):
File "/srv/mnt/
six.
File "<string>", line 2, in raise_from
File "/srv/mnt/
httplib_
File "/usr/lib/
response.
File "/usr/lib/
version, status, reason = self._read_status()
File "/usr/lib/
line = str(self.
File "/usr/lib/
return self._sock.
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ requests- 2.18.1- py3.5.egg/ requests/ adapters. py", line 440, in send jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 649, in urlopen =sys.exc_ info()[ 2]) jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ util/retry. py", line 357, in increment type(error) , error, _stacktrace) jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ packages/ six.py" , line 686, in reraise jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 600, in urlopen chunked) jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 388, in _make_request _raise_ timeout( err=e, url=url, timeout_ value=read_ timeout) jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ lib/python3. 5/site- packages/ urllib3- 1.21.1- py3.5.egg/ urllib3/ connectionpool. py", line 308, in _raise_timeout r(self, url, "Read timed out. (read timeout=%s)" % timeout_value) exceptions. ReadTimeoutErro r: HTTPConnectionP ool(host= 'testflinger. canonical. com', port=80): Read timed out. (read timeout=15)
File "/srv/mnt/
timeout=timeout
File "/srv/mnt/
_stacktrace
File "/srv/mnt/
raise six.reraise(
File "/srv/mnt/
raise value
File "/srv/mnt/
chunked=
File "/srv/mnt/
self.
File "/srv/mnt/
raise ReadTimeoutErro
urllib3.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): jenkins/ jobs/stlouis- stlouis- kernel- edge/workspace/ testflinger- cli/env/ bin/testflinger -cli", line 4, in <module> _('pkg_ resources' ).run_. ..
File "/srv/mnt/
__import_