Skip to content
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

[Bug] zos_operator throws TypeError when wait_time_s is specified using ZOAU 1.2.1h #389

Closed
fernandofloresg opened this issue Aug 30, 2022 · 1 comment · Fixed by #391
Closed
Assignees
Labels
Bug Something isn't working as designed.

Comments

@fernandofloresg
Copy link
Collaborator

fernandofloresg commented Aug 30, 2022

SUMMARY

When specifying wait_time_s in zos_operator using ZOAU 1.2.1h early version it throws TypeError.

COMPONENT NAME

zos_operator

ANSIBLE VERSION
Ansible version output:
ansible [core 2.11.12] 
  config file = None
  configured module search path = ['/Users/fernandoflores/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/fernandoflores/Library/Python/3.8/lib/python/site-packages/ansible
  ansible collection location = /Users/fernandoflores/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/fernandoflores/Library/Python/3.8/bin/ansible
  python version = 3.8.9 (default, Apr 13 2022, 08:48:07) [Clang 13.1.6 (clang-1316.0.21.2.5)]
  jinja version = 3.1.2
  libyaml = True

SPECIFY ANSIBLE COLLECTION VERSION

1.4.0-beta.1

SPECIFY THE Z OPEN AUTOMATION UTILITIES VERSION

2022/08/25 21:44:21 CUT V1.2.1 31163ab 1856

ENVIRONMENT
STEPS TO REPRODUCE
Reproduction playbook/yaml
- hosts: zvm
  collections:
    - ibm.ibm_zos_core
  gather_facts: no
  vars:
    ZOAU: "/zoau/v1.2.1h"
    PYZ: "/python2/usr/lpp/IBM/cyp/v3r9/pyz"
  tasks:
    - name: Call opercmd with 5 seconds delay
      zos_operator:
        cmd: "d u,all"
        verbose: True
        wait_time_s: 5
        wait: True
      register: result

    - name: show  response
      debug: 
        msg: "{{ result }}"
EXPECTED RESULTS

Executes and returns the result with a wait of maximum 5 seconds for the job.

ACTUAL RESULTS
Playbook output:

fatal: [zvm]: FAILED! => {"changed": false, "msg": "An unexpected error occurred: ZOAUException(\"'timeout' must be an integer.\")"}
CONFIGURATION

Ansible.cfg

'ansible-config dump --only-changed' output:

Inventory

Inventory content:

Vars

'group_vars' or 'host_vars' content:
SCREENSHOTS
@fernandofloresg fernandofloresg added the Bug Something isn't working as designed. label Aug 30, 2022
@fernandofloresg fernandofloresg moved this from 🔖 Ready to ⚙ Backlog in IBM Ansible z/OS Core Collection Aug 30, 2022
@fernandofloresg fernandofloresg self-assigned this Aug 30, 2022
@fernandofloresg fernandofloresg moved this from ⚙ Backlog to 🏗 In progress in IBM Ansible z/OS Core Collection Aug 30, 2022
@fernandofloresg fernandofloresg moved this from 🏗 In progress to 👀 In review in IBM Ansible z/OS Core Collection Aug 31, 2022
@fernandofloresg fernandofloresg moved this from 👀 In review to ✅ Done in IBM Ansible z/OS Core Collection Sep 2, 2022
@ddimatos
Copy link
Collaborator

Thankyou @fernandofloresg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as designed.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants