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

rsync via kubectl hangs #1617

Open
chrkspr opened this issue Jul 2, 2024 · 2 comments
Open

rsync via kubectl hangs #1617

chrkspr opened this issue Jul 2, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@chrkspr
Copy link

chrkspr commented Jul 2, 2024

What happened:

rsync with kubectl as remote shell gets stuck. After transfering a couple of files nothing happens. The sync was canceled after 20 minutes.
When repeating the command it might get stuck after a different file. The files are mostly smaller than 500kb, some have 1 - 100MB.
The command was run on one of the kubernetes master nodes. The vm of the master node and the vm where the pod is running are on the same vmware esx host. So it shouldn't be a problem caused by a network component.
Encreasing the debug level in the kube-apiserver and the kubelet to 9 didn't reveal any problems.
When the rsync command is cancel via ctrl+c, the rsync server command in the pod is not terminated.
Sometimes the rsync finishes without any problems.

rsync command:

rsync -aOv --progress --blocking-io --rsh="kubectl exec my-pod-name -c my-container-name -n my-namespace -i -- " rsync:/mnt/content/ /mnt

What you expected to happen:

About 45.000 (8.4GB) should be transfered without problems.

How to reproduce it (as minimally and precisely as possible):

I didn't try, but it should be reproducable by creating lot's of random files (ca. 45.000) with a size of 500kb.

Anything else we need to know?:

The virus scanner was disabled.

Environment:

kubernetes version:

$ kubectl version
Client Version: v1.30.1+rke2r1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1+rke2r1

os:
Red Hat Enterprise Linux 8.10 (Ootpa) on VMware vSphere 8

@chrkspr chrkspr added the kind/bug Categorizes issue or PR as related to a bug. label Jul 2, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jul 2, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ardaguclu
Copy link
Member

SPDY pings cause such problems, if the connection remains open longer (for reference #1606 (comment)). I'd recommend testing the same command execution after websockets are in beta in next releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants