Provide additional threads, retry until not failed #1395
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Provisioner can intermittently fail during image pulls with "Failed to pull image" message. Additionally, when adding Projects to controller, "Project update failed" message can occur. Occasionally, the underlying error is "Error: Error writing blob to file "/var/tmp/storage/storage304273906/1": error happened during read: unexpected EOF
Research on this issue: lead to similar issue being reported in buildah project for container engine pulls: http://github.com/containers/buildah/issues/2224
Ultimately, containers.conf was "wired up" to allow raising the number of threads for simultaneous image layer copies (pulled/pushed).
Raising container engine parallel threads from 6 to 10 and adding retries until not failed for associated image pull tasks to resolve the issue.
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
To reproduce, deploy a 50 student workshop multiple times over the period of the day, you will experience intermittent failures on a small percentage of controllers.