Retry failed retrievals of rings - including when connections are refused

This commit is contained in:
James Page 2014-08-11 10:14:47 +01:00
parent f1e156136e
commit 06a4a39750

View File

@ -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)