-
Notifications
You must be signed in to change notification settings - Fork 45
[Bug] [zos_copy] Return error message when concurrent copy fails #586
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
Comments
After talking to @rexemin - using Notes: In other words:
The problem is we don't know when a data set is opened as If
You will need to write a routine that performs a Examples: With a lock on the data set:
Without a lock:
I don't know of another way right now to check if a data set is opened as DISP=SHARE that are clean, we could try to open the data set as MODIFY and wait for an error not, but I think the GRS command is better. There is a very small time frame where we check if the data set is opened as DISP=SHR and the time we start to copy into the data set that remains open long enough to possibly have someone open it as DISP=SHR after we checked at it was not. This is a very small window and given this is a stop-gap (temporary) solution to block copies while we work on supporting DISP=SHR, its probably an acceptable window. |
Bug description
When
zos_copy
is trying to copy a source dataset into a destination dataset that is already in use by another program (withDISP=SHR
), the module will report a successful task but nothing will actually be copied into the destination. This bug is related to #357, and so while the implementation of supporting other disposition modes is being explored, the module should at least return an error message when this happens.This is also related to #559, more information about the issue is found there.
Playbook verbosity output
No response
Contents of
ansible.cfg
No response
Contents of the inventory
No response
Contents of
group_vars
orhost_vars
No response
Ansible version
IBM z/OS Ansible core Version
v1.4.0-beta.2
IBM ZOAU version
v1.1.1
z/OS version
No response
Ansible module
zos_copy
The text was updated successfully, but these errors were encountered: