-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoreOS: Ensure docker configuration is loaded #3134
CoreOS: Ensure docker configuration is loaded #3134
Conversation
Previously the configuration has been written after docker has been started and was actually only applied after a reboot. Manually reload system and restart docker to ensure the configuration has been applied.
Hi @johanneswuerbach. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@justinsb not really fan of manually restarting docker here, but couldn't find a better way without introducing further changes. |
/assign @chrislovecnm |
/assign @justinsb |
There's some overly-elaborate logic for automatically restarting systemd services when it is needed, but we're not hitting that in this case because we're not managing the systemd service itself: https://github.com/kubernetes/kops/blob/master/upup/pkg/fi/nodeup/nodetasks/service.go#L223 I don't think there is anything wrong with what you've done. We have the logic for automatically restarting the service so we can restart it only once (and so that it is automatic), but I'll ponder if we can do something nicer. We may be able to hook in to the service-restart phase, for example. But I'm not sure it'll be noticeably better than the obvious and obviously-correct approach you've taken (obvious is good!). |
Thanks, if there is something I can change, I'll happily do so :-) |
/ok-to-test So maybe we could tweak the service task to (optionally) not control the service definition. We have something comparable at the moment, with Given that, I say we get it in - if there are issues or we can do better in future, we can deal with that. Thanks @johanneswuerbach ! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johanneswuerbach, justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Previously the configuration has been written after docker has been started and
was actually only applied after a reboot.
Manually reload system and restart docker to ensure the configuration has been
applied.