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] - K3s fails to import tarball produced by ctr image export #10149

Closed
brandond opened this issue May 23, 2024 · 1 comment
Closed
Assignees
Milestone

Comments

@brandond
Copy link
Contributor

Backport fix for K3s fails to import tarball produced by ctr image export

@mdrahman-suse
Copy link

Validation on release-1.28 with commit 9d5becb

Testing

Replication

$ k3s -v
k3s version v1.28.10+k3s1 (a4c5612e)
go version go1.21.9
$ sudo journalctl -u k3s | grep nginx-image
Jun 12 23:22:18 k3s[32740]: time="2024-06-12T23:22:18Z" level=info msg="Importing images from /var/lib/rancher/k3s/agent/images/nginx-image.tar"
Jun 12 23:22:21 k3s[32740]: time="2024-06-12T23:22:21Z" level=error msg="Error encountered while importing /var/lib/rancher/k3s/agent/images/nginx-image.tar: failed to import images from /var/lib/rancher/k3s/agent/images/nginx-image.tar: content digest sha256:c36751d7f6324d496c55c7fae626cda3efcc62b11a3b6cfb28d5ae53d8d6fc7a: not found"

$ sudo ctr images ls | grep nginx
$

Validation

$ k3s -v
k3s version v1.28.10+k3s-9d5becb2 (9d5becb2)
go version go1.21.9
$ sudo journalctl -u k3s | grep nginx-image
Jun 12 23:28:09 k3s[35724]: time="2024-06-12T23:28:09Z" level=info msg="Importing images from /var/lib/rancher/k3s/agent/images/nginx-image.tar"
Jun 12 23:28:11 k3s[35724]: time="2024-06-12T23:28:11Z" level=info msg="Imported images from /var/lib/rancher/k3s/agent/images/nginx-image.tar in 1.972364726s"

$ sudo ctr images ls | grep nginx
docker.io/library/nginx:latest
...

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