Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Fix pod keeps retrying pull image #1227

Merged
merged 2 commits into from
Aug 31, 2018
Merged

Fix pod keeps retrying pull image #1227

merged 2 commits into from
Aug 31, 2018

Conversation

hao1939
Copy link
Contributor

@hao1939 hao1939 commented Aug 30, 2018

fixes #1226

@hao1939 hao1939 requested a review from ydye August 30, 2018 14:40
@coveralls
Copy link

Coverage Status

Coverage remained the same at 51.892% when pulling 49e06b1 on hao/fix_1226 into 36e2d34 on master.

@coveralls
Copy link

coveralls commented Aug 30, 2018

Coverage Status

Coverage increased (+32.2%) to 84.133% when pulling fd3d8fc on hao/fix_1226 into 36e2d34 on master.

@@ -48,4 +48,5 @@ docker run \
--logtostderr=true \
--pod-infra-container-image {{ clusterconfig['dockerregistry'] }}/pause-amd64:3.0 \
--eviction-hard="memory.available<5%,nodefs.available<5%,imagefs.available<5%,nodefs.inodesFree<5%,imagefs.inodesFree<5%" \
--image-pull-progress-deadline=6m \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6m is enough? Maybe, this time should be longer?

Copy link
Contributor Author

@hao1939 hao1939 Aug 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's enough for now.
We may add a configuration entry later, maybe in another PR.

Hi @ydye , can we merge this PR first?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's set it 10 min?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I will update.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no pulling progress is made before this deadline, the image pulling will be cancelled. What will happen if the pulling canceled?

Copy link
Contributor Author

@hao1939 hao1939 Aug 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YitongFeng , it will retry.
If lucky, next retry may succeed, or it won't succeed forever.

@hao1939 hao1939 merged commit 21ca648 into master Aug 31, 2018
@hao1939 hao1939 deleted the hao/fix_1226 branch August 31, 2018 03:07
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.

Install drivers-one-shot keeps retrying pull image, > x10 slower than manually docker pull
4 participants