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

Several plugins seem reloaded every time on running a container (io.containerd.{event.v1.publisher, internal.v1.shutdown}, ttrpc.v1.task, ttrpc.v1.pause}) #9637

Closed
AkihiroSuda opened this issue Jan 15, 2024 · 2 comments · Fixed by #9646

Comments

@AkihiroSuda
Copy link
Member

Description

Several plugins seem reloaded every time on running a container.

The daemon prints the following logs on every sudo ctr run --rm docker.io/library/hello-world:latest foo:

time="2024-01-15T12:00:31.087339750+09:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2024-01-15T12:00:31.087407173+09:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2024-01-15T12:00:31.087415505+09:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2024-01-15T12:00:31.087546750+09:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
INFO[2024-01-15T12:00:31.158206270+09:00] shim disconnected                             id=foo namespace=default
WARN[2024-01-15T12:00:31.158255326+09:00] cleaning up after shim disconnected           id=foo namespace=default
INFO[2024-01-15T12:00:31.158263169+09:00] cleaning up dead shim                         namespace=default

Steps to reproduce the issue

  1. sudo ctr run --rm docker.io/library/hello-world:latest foo

Describe the results you received and expected

Received: the plugins seem reloaded every time
Expected: should be loaded only once

What version of containerd are you using?

containerd github.com/containerd/containerd v1.7.12 71909c1

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

@AkihiroSuda AkihiroSuda changed the title Several plugins seem reloaded every time on running a container (`io.containerd.{event.v1.publisher, internal.v1.shutdown}, ttrpc.v1.task, ttrpc.v1.pause}) Several plugins seem reloaded every time on running a container (io.containerd.{event.v1.publisher, internal.v1.shutdown}, ttrpc.v1.task, ttrpc.v1.pause}) Jan 15, 2024
@fuweid
Copy link
Member

fuweid commented Jan 15, 2024

The plugin is loaded by shim process. Each runc shim will register them when they start.
It's not a bug.

log.G(ctx).WithField("type", p.Type).Infof("loading plugin %q...", id)

@AkihiroSuda
Copy link
Member Author

Can we reduce the amount of the logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants