Skip to content

[Bug] zos_script fails to copy script from local to remote server #2396

@darnowak

Description

@darnowak

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

Ansible configuration.

Contents of the inventory

Contents of group_vars or host_vars

Metadata

Metadata

Assignees

Labels

BugSomething isn't working as designed.Needs TriageIssue need assessment by a team member(s)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions