You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: 'Copy a file or a dir from a pod to local file or dir'kubernetes.core.k8s_cp:
kubeconfig: '{{ copy_from_pod_kubeconfig }}'namespace: '{{ copy_from_pod_namespace }}'pod: '{{ copy_from_pod_pod }}'container: '{{ copy_from_pod_container }}'remote_path: '{{ copy_from_pod_remote_path }}'local_path: '{{ copy_from_pod_local_path }}'state: 'from_pod'
EXPECTED RESULTS
It works the same as kubectl cp does. Trying to do the same thing via kubectl cp takes 2-5s but I am waited for the end of kubernetes.core.k8s_cp task for 15min and then interupted it just because it seems to me that it will work infinitely.
ACTUAL RESULTS
It stucks on this task.
I am using HIDDEN for possibly sensetive info.
TASK [../common/roles/copy_from_pod : Copy a file or a dir from a pod to local file or dir] ********************************************************************************************************************
task path: <HIDDEN>
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: <HIDDEN>
<127.0.0.1> EXEC /bin/sh -c 'echo ~<HIDDEN> && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/<HIDDEN>/.ansible/tmp `"&& mkdir "` echo /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300 `" && echo ansible-tmp-1684430824.069988-93466-254343338669300="` echo /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300 `" ) && sleep 0'
Loading collection cloud.common from /opt/homebrew/Cellar/ansible/7.2.0/libexec/lib/python3.11/site-packages/ansible_collections/cloud/common
Using module file /Users/<HIDDEN>/.ansible/collections/ansible_collections/kubernetes/core/plugins/modules/k8s_cp.py
<127.0.0.1> PUT /Users/<HIDDEN>/.ansible/tmp/ansible-local-93356iq776s3r/tmpfiy3fyfr TO /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300/AnsiballZ_k8s_cp.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300/ /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300/AnsiballZ_k8s_cp.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/opt/homebrew/Cellar/ansible/7.2.0/libexec/bin/python3.11 /Users/<HIDDEN>/.ansible/tmp/ansible-tmp-1684430824.069988-93466-254343338669300/AnsiballZ_k8s_cp.py && sleep 0'
The text was updated successfully, but these errors were encountered:
SUMMARY
I am trying to run kubernetes.core.k8s_cp task in my role for copy dir(25Mb) from pod but it stucks on execution of this task.
ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s_cp
ANSIBLE VERSION
I am using HIDDEN for possibly sensetive info.
COLLECTION VERSION
Attaching
pip list
also maybe it could help.CONFIGURATION
OS / ENVIRONMENT
MacOs Ventura 13.1 (Apple M1 Pro)
STEPS TO REPRODUCE
EXPECTED RESULTS
It works the same as
kubectl cp
does. Trying to do the same thing via kubectl cp takes 2-5s but I am waited for the end of kubernetes.core.k8s_cp task for 15min and then interupted it just because it seems to me that it will work infinitely.ACTUAL RESULTS
It stucks on this task.
I am using HIDDEN for possibly sensetive info.
The text was updated successfully, but these errors were encountered: