Skip to content

Enhance logging for container image unpacking in client #9370

@austinvazquez

Description

@austinvazquez

What is the problem you're trying to solve

Context

I have a use case which uses the containerd client to pull and unpack container images from container registry. Recently had an experience where a storage hardware failure resulted in long image unpack times.

Problem

While the root cause was a hardware failure, the ask here is to enhance logging in the client to provide some more insight when these issues may be occurring.

Describe the solution you'd like

It would be nice to:

  • Add a per layer unpack log with a duration (time to unpack) field
  • Add a duration (total time to unpack) field to the existing image unpacked log
  • Backport the change to v1.7
  • Backport the change to v1.6

Additional context

My use case builds/runs containerd 1.6.x (LTS). I see tracing support is available in 1.7.x; however, was looking for a solution which doesn't require an upgrade away from LTS and less heavy handed than tracing. (Happy to receive feedback on this)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions