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

containerd isn't restarted when config changed #3129

Closed
NicolasT opened this issue Feb 17, 2021 · 6 comments
Closed

containerd isn't restarted when config changed #3129

NicolasT opened this issue Feb 17, 2021 · 6 comments
Assignees
Labels
complexity:easy Something that requires less than a day to fix kind:bug Something isn't working topic:deployment Bugs in or enhancements to deployment stages

Comments

@NicolasT
Copy link
Contributor

I have a node on which containerd was already installed and running, but with no specific configuration file. When running bootstrap.sh, this fails at some point because our fake registry config isn't taken into account.

It appears when we drop a (new) config file for containerd, we don't properly restart the service.

@NicolasT NicolasT added kind:bug Something isn't working topic:deployment Bugs in or enhancements to deployment stages complexity:easy Something that requires less than a day to fix labels Feb 17, 2021
@TeddyAndrieux
Copy link
Collaborator

TeddyAndrieux commented Feb 22, 2021

@NicolasT Which version did you try ?
I think it's fixed in 2.7.0+ (side effect of some rewritting in this commit 5e1a1a2 PR #3020 )

@TeddyAndrieux TeddyAndrieux modified the milestone: MetalK8s 2.5.2 Feb 22, 2021
@NicolasT
Copy link
Contributor Author

2.7.1

@alexandre-allard alexandre-allard self-assigned this Mar 15, 2021
@alexandre-allard
Copy link
Contributor

alexandre-allard commented Mar 15, 2021

I can't reproduce this issue on 2.7.3.

I've installed containerd prior to launch bootstrap.sh and everything went well.
Looking at what's done in the formula, I can't see any issue, we're triggering a restart if the configuration is changed:

Configure registry IP in containerd conf:
  file.managed:
    - name: /etc/containerd/config.toml
    - makedirs: true
    - contents: |
        [plugins.cri.registry.mirrors."{{ repo.registry_endpoint }}"]
        endpoint = ["http://{{ registry_ip }}:{{ registry_port }}"]

        [debug]
        level = "{{ 'debug' if metalk8s.debug else 'info' }}"
    - watch_in:
        - service: Ensure containerd running
Ensure containerd running:
  service.running:
    - name: containerd
    - enable: True
    - init_delay: 2

@NicolasT
Copy link
Contributor Author

I assume you installed and started containerd before bootstrap? If so, I guess we can close this as not reproducible 🤷‍♂️

@alexandre-allard
Copy link
Contributor

Yes, that's what I did.

@alexandre-allard
Copy link
Contributor

Closing this issue as it does not seem to be reproducible on latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:easy Something that requires less than a day to fix kind:bug Something isn't working topic:deployment Bugs in or enhancements to deployment stages
Projects
None yet
Development

No branches or pull requests

3 participants