canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.29k stars 760 forks source link

Sideloading image gives ('Connection aborted.', OSError("(104, 'ECONNRESET')")) error #4304

Open senyahnoj opened 8 months ago

senyahnoj commented 8 months ago

Summary

When sideloading a container image in microk8s 1.27.7 it fails with the following error

Failed to reach 10.0.2.15:25000: ('Connection aborted.', OSError("(104, 'ECONNRESET')"))

I have installed microk8s 1.27.7 on RHEL 8.8 linux via the snap store

I have the same version of microk8s on an ubuntu linux server (20.04) and I do not experience the same issue

What Should Happen Instead?

The image should be sideloaded into containerd

Reproduction Steps

  1. Install microk8s via the snap store
  2. Ran
sudo microk8s images import /tmp/mycontainerimage.tar

Screenshot from 2023-11-15 14-55-06

Introspection Report

inspection-report-20231115_144720.tar.gz

neoaggelos commented 8 months ago

Hi @senyahnoj, thank you for reporting the issue. This should be resolved in the latest version with https://github.com/canonical/microk8s-cluster-agent/pull/52, but we have not backported the fix.

I think we should backport that fix to 1.28, 1.27 and previous branches as well.

In the meantime, if you have a test environment could you test microk8s from the latest/edge channel (sudo snap install microk8s --channel latest/edge --classic) and see whether the issue is resolved? Thanks!

senyahnoj commented 8 months ago

Thanks for your reply @neoaggelos. I confirm that when using latest/edge --classic (1.28.3), the issue is resolved.

A backport to both 1.28 and 1.27 would be very much appreciated if possible

senyahnoj commented 6 months ago

Is there any timescale for releasing 1.28.4 into the stable channel with this fix?

neoaggelos commented 5 months ago

Hi @senyahnoj, sorry for taking long to reply. We have recently had some bumps in our release pipelines, but things should be resolved now. New patchlevel releases are pushed to stable a week after they're out, so next week should do it:

$ snap info microk8s | grep '1.28/'
  1.28/stable:           v1.28.3  2023-11-12 (6089) 185MB classic
  1.28/candidate:        v1.28.6  2024-01-28 (6429) 185MB classic
  1.28/beta:             v1.28.6  2024-01-28 (6429) 185MB classic
  1.28/edge:             v1.28.6  2024-01-17 (6429) 185MB classic
senyahnoj commented 5 months ago

Thank you so much @neoaggelos for your reply

senyahnoj commented 5 months ago

@neoaggelos still no release. Are we still expecting one?

DileepAP commented 5 months ago

@neoaggelos Any updates on the release date for this issue.

neoaggelos commented 5 months ago

Hi @senyahnoj @DileepAP, apologies. We unfortunately had some bumps in our release pipeline, but things should now be resolved and fixes are out in all stable tracks.