-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Is there an existing issue for this?
- There are no existing issues.
Bug description
zos_script fails with sftp and scp errors when script is on the local system and needs to be transferred to remote server.
It seems that zos_script is trying to copy script to nonexistent temp directory on server (like ansible-tmp-1762170331.8738296-3156-142305324775046)
IBM z/OS Ansible core Version
v1.15.0
IBM Z Open Automation Utilities
v1.3.6
IBM Enterprise Python
v3.13.x
ansible-version
v2.17.x
z/OS version
v2.5
Ansible module
zos_script
Playbook verbosity output.
[WARNING]: sftp transfer mechanism failed on [172.26.1.2]. Use ANSIBLE_DEBUG=1 to see detailed information
3152 1762170361.59127: sftp> put /home/ibmsys1/.ansible/tmp/ansible-local-31520ftj8ny4/tmpml5tochf /u/ibmuser/.ansible/tmp/ansible-tmp-1762170331.8738296-3156-142305324775046/AnsiballZ_zos_script.py
3152 1762170361.59143: dest open "/u/ibmuser/.ansible/tmp/ansible-tmp-1762170331.8738296-3156-142305324775046/AnsiballZ_zos_script.py": No such file or directory
3152 1762170362.22036: stderr chunk (state=2):
scp: FOTS1744 /u/ibmuser/.ansible/tmp/ansible-tmp-1762170331.8738296-3156-142305324775046/AnsiballZ_zos_script.py: EDC5129I No such file or directory. (errno2=0x0594003D)
<<<
3152 1762170362.22074: stdout chunk (state=3):
<<<
3152 1762170362.24186: stderr chunk (state=3):
<<<
[WARNING]: scp transfer mechanism failed on [172.26.1.2]. Use ANSIBLE_DEBUG=1 to see detailed information
3152 1762170362.24234:
3152 1762170362.24243: scp: FOTS1744 /u/ibmuser/.ansible/tmp/ansible-tmp-1762170331.8738296-3156-142305324775046/AnsiballZ_zos_script.py: EDC5129I No such file or directory. (errno2=0x0594003D)
3152 1762170362.24400: Sending initial data
3152 1762170362.33145: Sent initial data (132037 bytes)
3152 1762170362.60375: stderr chunk (state=3):
dd: FSUM6219 output file "/u/ibmuser/.ansible/tmp/ansible-tmp-1762170331.8738296-3156-142305324775046/AnsiballZ_zos_script.py"<<<
3152 1762170362.60971: stderr chunk (state=3):
: EDC5129I No such file or directory.
<<<
3152 1762170362.62581: stderr chunk (state=3):
<<<
3152 1762170362.62592: stdout chunk (state=3):
<<<
[WARNING]: piped transfer mechanism failed on [172.26.1.2]. Use ANSIBLE_DEBUG=1 to see detailed information