Project

General

Profile

Actions

Bug #18588

closed

make chacractl retry before giving up

Added by Alfredo Deza about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

To avoid whole builds die in a similar way to this:

[requests.packages.urllib3.connectionpool][DEBUG ] https://3.chacra.ceph.com:443 "POST /binaries/ceph/wip-bluestore-extents-kraken/178bc3297f7db7fee551d44443c97e176a1f3e70/ubuntu/xenial/x86_64/flavors/notcmalloc/ HTTP/1.1" 201 2
[requests.packages.urllib3.connectionpool][DEBUG ] Starting new HTTPS connection (1): 3.chacra.ceph.com
Traceback (most recent call last):
  File "/tmp/venv.mHEqSKZyrD/bin/chacractl", line 6, in <module>
    main.ChacraCtl()
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/main.py", line 38, in __init__
    self.main(argv)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/decorators.py", line 68, in newfunc
    return f(*a, **kw)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/main.py", line 82, in main
    parser.dispatch()
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/tambo/dispatcher.py", line 21, in dispatch
    return instance.main()
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/api/binaries.py", line 168, in main
    self.post(url, filename)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/api/binaries.py", line 107, in post
    if not self.upload_is_verified(url, filename, digest):
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/chacractl/api/binaries.py", line 69, in upload_is_verified
    r = requests.get(arch_url, verify=chacractl.config['ssl_verify'])
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/tmp/venv.mHEqSKZyrD/local/lib/python2.7/site-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='3.chacra.ceph.com', port=443): Max retries exceeded with url: /binaries/ceph/wip-bluestore-extents-kraken/178bc3297f7db7fee551d44443c97e176a1f3e70/ubuntu/xenial/x86_64/flavors/notcmalloc/ (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fcd3e56f450>: Failed to establish a new connection: [Errno -2] Name or service not known',))
+ rm -fr /tmp/install-deps.18228
Build step 'Execute shell' marked build as failure
Actions #1

Updated by Alfredo Deza about 7 years ago

  • Status changed from New to Resolved

Released as part of 0.0.14

Actions

Also available in: Atom PDF