Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Add retries for the file transfer #52

Merged
merged 1 commit into from
Jan 15, 2015
Merged

Add retries for the file transfer #52

merged 1 commit into from
Jan 15, 2015

Conversation

bogdando
Copy link
Contributor

W/o this patch Staging::file cannot handle non transient (connectivity)
errors.
For example, curl or wget command could be used with their --retry keys,
but that would work only for transient (4xx/5xx) errors and would fail
when the connection was refused.

The solution is to add retries for the file transfer when non
transient connection errors exist

Closes-bug: #MODULES-1651

Signed-off-by: Bogdan Dobrelya bdobrelia@mirantis.com

W/o this patch Staging::file cannot handle non transient (connectivity)
errors.
For example, curl or wget command could be used with their --retry keys,
but that would work only for transient (4xx/5xx) errors and would fail
when the connection was refused.

The solution is to add retries for the file transfer when non
transient connection errors exist

Closes-bug: #MODULES-1651

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
nanliu added a commit that referenced this pull request Jan 15, 2015
Add retries for the file transfer
@nanliu nanliu merged commit 0095ec4 into voxpupuli:master Jan 15, 2015
ironpinguin referenced this pull request in mayflower/puppetlabs-rabbitmq Feb 11, 2015
W/o this patch, Rabbitmq::Install::Rabbitmqadmin/Staging::File[rabbitmqadmin]
/Exec[/var/lib/rabbitmq/rabbitmqadmin]
sometimes could fail the curl command due to transient or connectivity errors.

The solution is:
- For transient errors:
* use timeout param for staging::file
* use --retries , --retry-delay flag for curl command passed to staging::file
- For connectivity errors:
* improve staging module to retry its commands as well, see
  https://github.com/nanliu/puppet-staging/pull/52

Closes-bug: #MODULES-1650

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
cegeka-jenkins pushed a commit to cegeka/puppet-staging that referenced this pull request Oct 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants