Skip to content

"ctr images pull" debugging should show the underlying hosts where layers are being pulled from  #9846

@vielmetti

Description

@vielmetti

What is the problem you're trying to solve

We are seeing slow image pulls from "ctr images pull" from certain global locations to ghcr.io (Github Container Registry) hosted images. But IPv4 and IPv6 ping times to ghcr.io look fine from all locations.

It turns out that some ghcr.io assets, specifically layers, are served through a CDN at pkg-containers.githubusercontent.com . Inspection of IPv4 routes to that host look fine globally, but a number of locations have "scenic routes" to IPv6 addresses for that content. The resulting bad routing leads to very slow or stopped downloads.

None of the debug options I could figure out for "ctr images pull" exposed the "pkg-containers.githubusercontent.com" destination for image pulls, which made debugging much harder.

The feature request is to add a flag that would print out this detail to assist in debugging.

Describe the solution you'd like

Add a debug flag that prints out the domain name and IPv4 or IPv6 address of the host from which image layers are being retrieved.

Additional context

Discussion here:

https://hachyderm.io/@w8emv/111942173630607597
https://mastodon.online/@karppinen/111958791252380328

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions