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

[Release-1.28] - Duplicate mirror endpoint causes containerd to fail to load mirror config from hosts.toml #9694

Closed
brandond opened this issue Mar 7, 2024 · 1 comment
Assignees

Comments

@brandond
Copy link
Contributor

brandond commented Mar 7, 2024

Backport fix for Duplicate mirror endpoint causes containerd to fail to load mirror config from hosts.toml

@mdrahman-suse
Copy link

Validated on RC v1.28.8-rc1+k3s1

Followed Steps as mentioned here: #9693 (comment)

Replication

$ k3s -v
k3s version v1.28.7+k3s1 (051b14b2)
go version go1.21.7

$ sudo cat /var/lib/rancher/k3s/agent/etc/containerd/certs.d/docker.io/hosts.toml
# File generated by k3s. DO NOT EDIT.
server = "https://registry-1.docker.io/v2"

[host."https://registry.example.com/v2"]
  capabilities = ["pull", "resolve"]
[host."https://registry.example.com/v2"]
  capabilities = ["pull", "resolve"]

$ sudo less /var/lib/rancher/k3s/agent/containerd/containerd.log | grep 'duplicated'
time="2024-03-21T21:39:30.010320906Z" level=error msg="failed to decode hosts.toml" error="failed to parse TOML: (6, 2): duplicated tables"

Validation

$ k3s -v
k3s version v1.28.8-rc1+k3s1 (653dd61a)
go version go1.21.8

$ sudo cat /var/lib/rancher/k3s/agent/etc/containerd/certs.d/docker.io/hosts.toml
# File generated by k3s. DO NOT EDIT.

server = "https://registry-1.docker.io/v2"
capabilities = ["pull", "resolve", "push"]



[host."https://registry.example.com/v2"]
  capabilities = ["pull", "resolve"]
$ sudo less /var/lib/rancher/k3s/agent/containerd/containerd.log | grep 'duplicated'
$

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

No branches or pull requests

2 participants