Retry failed retrievals of rings - including when connections are refused
This commit is contained in:
parent
f1e156136e
commit
06a4a39750
@ -198,7 +198,8 @@ def fetch_swift_rings(rings_url):
|
|||||||
for server in ['account', 'object', 'container']:
|
for server in ['account', 'object', 'container']:
|
||||||
url = '%s/%s.ring.gz' % (rings_url, server)
|
url = '%s/%s.ring.gz' % (rings_url, server)
|
||||||
log('Fetching %s.' % url)
|
log('Fetching %s.' % url)
|
||||||
cmd = ['wget', url, '-O', '/etc/swift/%s.ring.gz' % server]
|
cmd = ['wget', url, '--retry-connrefused',
|
||||||
|
'-t', '10', '-O', '/etc/swift/%s.ring.gz' % server]
|
||||||
check_call(cmd)
|
check_call(cmd)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user