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.27] - Errors logged when pulling images from text file #9795

Closed
brandond opened this issue Mar 26, 2024 · 1 comment
Closed

[Release-1.27] - Errors logged when pulling images from text file #9795

brandond opened this issue Mar 26, 2024 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

Backport fix for Errors logged when pulling images from text file

@fmoral2
Copy link
Contributor

fmoral2 commented Apr 15, 2024

Validated on Version:

-$  k3s version v1.27.12+k3s-2d48b196 (2d48b196)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
SUSE Linux Enterprise Server 15 SP4

Cluster Configuration:

  • 1 server

Steps to validate the fix

  1. add images on /var/lib/rancher/k3s/agent/images/{}
  2. start k3s
  3. validate no error related to already pulled images
  4. stop and restart k3s
  5. Validate again no errors

Reproduction Issue:


 - $ sudo journalctl -u k3s --since "60 minutes ago" | grep -i "Error encountered while importing"

Apr 15 18:57:17 ip-172-31-7-142 k3s[48196]: time="2024-04-15T18:57:17Z" level=error msg="Error encountered while importing /var/lib/rancher/k3s/agent/images/pre-images.txt: failed to pull images from /var/lib/rancher/k3s/agent/images/pre-images.txt: image \"docker.io/rancher/klipper-helm:v0.8.3-build20240228\": not found, image \"docker.io/rancher/klipper-lb:v0.4.7\": not found, image \"docker.io/rancher/local-path-provisioner:v0.0.26\": not found, image \"docker.io/rancher/mirrored-coredns-coredns:1.10.1\": not found, image \"docker.io/rancher/mirrored-library-busybox:1.36.1\": not found, image \"docker.io/rancher/mirrored-library-traefik:2.10.5\": not found, image \"docker.io/rancher/mirrored-metrics-server:v0.7.0\": not found, image \"docker.io/rancher/mirrored-pause:3.6\": not found"

 

Validation Results:

images used at sudo vim /var/lib/rancher/k3s/agent/images/pre-images.txt 

docker.io/rancher/klipper-helm:v0.8.3-build20240228
docker.io/rancher/local-path-provisioner:v0.0.26
docker.io/rancher/mirrored-coredns-coredns:1.10.1
docker.io/rancher/mirrored-metrics-server:v0.7.0
docker.io/rancher/mirrored-pause:3.6


$ sudo journalctl -u k3s --since "60 minutes ago" | grep -i "Pulling images from"
Apr 15 18:54:33 ip-172-31-7-142 k3s[45566]: time="2024-04-15T18:54:33Z" level=info msg="Pulling images from /var/lib/rancher/k3s/agent/images/pre-images.txt"


 
 sudo journalctl -u k3s --since "60 minutes ago" | grep -i "Error encountered while importing"
 <empty>


$ sudo k3s crictl images
IMAGE                                        TAG                    IMAGE ID            SIZE
docker.io/rancher/klipper-helm               v0.8.3-build20240228   0929b4140ada6       91.2MB
docker.io/rancher/local-path-provisioner     v0.0.26                c54dcef6214cb       17.2MB
docker.io/rancher/mirrored-coredns-coredns   1.10.1                 ead0a4a53df89       16.2MB
docker.io/rancher/mirrored-metrics-server    v0.7.0                 b9a5a1927366a       19.4MB
docker.io/rancher/mirrored-pause             3.6                    6270bb605e12e       301kB


@fmoral2 fmoral2 closed this as completed Apr 15, 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

3 participants