Skip to content
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

Conversation

johanneswuerbach
Copy link
Contributor

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.

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.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 4, 2017
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

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.

@johanneswuerbach
Copy link
Contributor Author

@justinsb not really fan of manually restarting docker here, but couldn't find a better way without introducing further changes.

@johanneswuerbach
Copy link
Contributor Author

/assign @chrislovecnm

@johanneswuerbach
Copy link
Contributor Author

/assign @justinsb

@justinsb
Copy link
Member

justinsb commented Aug 4, 2017

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!).

@johanneswuerbach
Copy link
Contributor Author

Thanks, if there is something I can change, I'll happily do so :-)

@justinsb
Copy link
Member

justinsb commented Aug 6, 2017

/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 ManageState - though that determines whether we start/restart the service, rather than whether we manage the definition.

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

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 6, 2017
@k8s-github-robot
Copy link

[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 /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 6, 2017
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 75c6de3 into kubernetes:master Aug 6, 2017
@johanneswuerbach johanneswuerbach deleted the configure-docker-on-coreos branch August 6, 2017 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants