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

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

Comments

@brandond
Copy link
Member

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

@mdrahman-suse
Copy link

Validation on release-1.29 with commit 12864fb

Testing

Replication

$ k3s -v
k3s version v1.29.5+k3s1 (4e53a323)
go version go1.21.9
$ sudo journalctl -u k3s | grep nginx-image
Jun 12 22:55:42 k3s[26297]: time="2024-06-12T22:55:42Z" level=info msg="Importing images from /var/lib/rancher/k3s/agent/images/nginx-image.tar"
Jun 12 22:55:44 k3s[26297]: time="2024-06-12T22:55:44Z" 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-image
$

Validation

$ k3s -v
k3s version v1.29.5+k3s-12864fb6 (12864fb6)
go version go1.21.9
$ sudo journalctl -u k3s | grep nginx-image
Jun 12 22:59:18 ip-172-31-47-24 k3s[29188]: time="2024-06-12T22:59:18Z" level=info msg="Importing images from /var/lib/rancher/k3s/agent/images/nginx-image.tar"
Jun 12 22:59:20 ip-172-31-47-24 k3s[29188]: time="2024-06-12T22:59:20Z" level=info msg="Imported images from /var/lib/rancher/k3s/agent/images/nginx-image.tar in 1.796904312s"

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

@github-project-automation github-project-automation bot moved this from To Test to Done Issue in K3s Development Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants