Closed Michael-Baylis closed 1 year ago
@Michael-Baylis thank for opening the issue, @rexemin will look into this and determine next steps and share that information. For now I assigned it to next sprint and we can go from there.
Thank you again for opening this issue @Michael-Baylis, I was able to replicate it and track down the source of this bug. The module uses ZOAU to get the data set type of the destination when it exists, but in this case, there was a bug in ZOAU that made it fail to get the information and the module then tried to run the LISTCAT
command used for VSAMs, which ultimately failed too.
The bug in ZOAU has already been fixed by the team, and it's going to be available on its next release (1.2.2), but we won't officially support it in version 1.4.0 of ibm_zos_core, we'll start supporting ZOAU 1.2.1 on 1.5.0-beta.1, and continue from there. In the meantime, I'll implement a fix on our end for this issue.
Bug description
fails at 1.4.0-beta.2 but works at 1.4.0-beta.1
Appears to be doing a LISTCAT ENT('SYS1.SAMPLIB') DATA ALL for a PDS, the DATA is throwing it out.
fatal: [mike]: FAILED! => {"changed": false, "msg": "Failure during execution of mvscmd; Return code: 4; stdout: 1IDCAMS SYSTEM SERVICES TIME: 13:55:55 10/21/22 PAGE 1\n0 \n LISTCAT ENT('SYS1.SAMPLIB') DATA ALL\n0IDC1565I SYS1.SAMPLIB NOT A REQUESTED TYPE\n1IDCAMS SYSTEM SERVICES TIME: 13:55:55 10/21/22 PAGE 2\n0 THE NUMBER OF ENTRIES PROCESSED WAS:\n0 AIX -------------------0\n ALIAS -----------------0\n CLUSTER ---------------0\n DATA ------------------0\n GDG -------------------0\n INDEX -----------------0\n NONVSAM ---------------0\n PAGESPACE -------------0\n PATH ------------------0\n SPACE -----------------0\n USERCATALOG -----------0\n TAPELIBRARY -----------0\n TAPEVOLUME ------------0\n TOTAL -----------------0\n0 THE NUMBER OF PROTECTED ENTRIES SUPPRESSED WAS 0\n0IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 4\n0 \n0IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 4\n; stderr: ", "rc": null, "stderr": null, "stderr_lines": null, "stdout": null, "stdout_lines": null}
Playbook verbosity output
ansible-playbook -i hosts test.yml -vvvv ansible-playbook 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /git/cicsh3n-playbook/hosts as it did not pass its verify_file() method script declined parsing /git/cicsh3n-playbook/hosts as it did not pass its verify_file() method auto declined parsing /git/cicsh3n-playbook/hosts as it did not pass its verify_file() method Parsed /git/cicsh3n-playbook/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3/dist-packages/ansible/plugins/callback/default.py
PLAYBOOK: test.yml ** Positional arguments: test.yml verbosity: 4 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/git/cicsh3n-playbook/hosts',) forks: 5 1 plays in test.yml
PLAY [Network Getting Started First Playbook Extended] ** META: ran handlers
TASK [Copy a sequential data set to a PDS member] *** task path: /git/cicsh3n-playbook/test.yml:20