ansible-collections / ibm_zos_ims Goto Github PK
View Code? Open in Web Editor NEWIBM z/OS IMS Collection
IBM z/OS IMS Collection
In the documentation page for the ims_acb_gen
module, under the compression
attribute, the choices show: precomp, postcomp, precomp,postcomp, PRECOMP, POSTCOMP, PRECOMP,POSTCOMP
We think this is to show that the options are not mutually exclusive. This can be changed to just PRECOMP, POSTCOMP with a note that it is not mutually exclusive.
modules/ims_acb_gen.py
ansible [core 2.11.1]
config file = None
configured module search path = ['/Users/stephanie/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
ansible collection location = /Users/stephanie/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.9.17 (main, Jun 15 2023, 07:46:17) [Clang 14.0.3 (clang-1403.0.22.14.1)]
jinja version = 3.1.2
libyaml = True
The examples section shows the usage of ims_data_definition
instead of ims_ddl
as the module name.
ims_ddl module documentation
The ims_command should not require any of the three parameters but when running the command it complains "Missing required arguments: plex".
I'm not sure if it is related but I do get a warning for zos_core:
[WARNING]: Collection ibm.ibm_zos_core does not support Ansible version 2.14.3
ibm.ibm_zos_ims.ims_command
ansible [core 2.14.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.13 (main, Nov 9 2022, 13:16:24) [GCC 8.5.0 20210514 (Red Hat 8.5.0-15)] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True
# /usr/share/ansible/collections/ansible_collections
Collection Version
--------------- -------
ibm.ibm_zos_ims 1.2.0
The file is attached.
CONFIG_FILE() = /etc/ansible/ansible.cfg
Ansible Details:
Using Ansible Automation Platform
Running with an execution environment on Ansible Automation Controller
Output of gather facts is attached.
z/OS Details from gather facts:
"ansible_distribution": "OS/390",
"ansible_distribution_release": "27.00",
"ansible_distribution_version": "04",
"ansible_os_family": "OS/390",
Try to run any IMS command with the ims_command module without specifying a plex argument.
---
- hosts: all
gather_facts: no
tasks:
- name: IMS Health Check
ibm.ibm_zos_ims.ims_command:
command: DIS Q TRAN
route: TST6
I expect to be returned the output from the IMS command, in this case any queued transactions.
An error saying that I must specify the plex argument.
{
"changed": false,
"ims_output": [
{
"msg": "Missing required arguments: plex"
}
],
"msg": "",
"invocation": {
"module_args": {
"command": "DIS Q TRAN",
"route": [
"TST6"
],
"plex": null,
"batch": null
}
},
"_ansible_no_log": null
}
duration: 2.970198
2│end: '2022-04-27T00:32:53.085485'
3│event_loop: null
4│host: tivlp02
5│ignore_errors: null
6│play: tivlp02
7│play_pattern: tivlp02
8│playbook: /Users/adn/workspaces/nazare/cp4z/ee/ee-for-ims/demo/project/issue-ims-command.yml
9│remote_addr: tivlp02
10│res:
11│ _ansible_no_log: false
12│ changed: false
13│ ims_output:
14│ - err: 'The following REXX error code was returned: +++ RC(-3) +++'
15│ msg: Unable to decode string into JSON.
16│ invocation:
17│ module_args:
18│ batch: null
19│ command: QRY PGM SHOW(ALL)
20│ plex: PLEX1
21│ route:
22│ - IMSO
23│ msg: ''
24│start: '2022-04-27T00:32:50.115287'
25│task: Display IMS active
26│task_action: ims_command
27│task_args: ''
28│task_path: /Users/adn/workspaces/nazare/cp4z/ee/ee-for-ims/demo/project/issue-ims-command.yml:19``
fatal: [andy-zdt1]: FAILED! => { "changed": false, "content": "1 DFSUACB0 MESSAGES AND CONTROL STATEMENTS IMS V15.1 19:54 9/10/23 PAGE 1\n- BUILD PSB=(DFSCP L00,DFSCP000,DFSCP001) \n0 BUILD DBD=(DFSCD000,DFSCX000) \n-DFS0586I DBD 'DFSCD000' REQUESTED IN BUILD OPERATION NOT FOUND IN ACBLIB - REQUEST IGNORED \ n-DFS0586I DBD 'DFSCX000' REQUESTED IN BUILD OPERATION NOT FOUND IN ACBLIB - REQUEST IGNORED \n DFS5007I DBD DFSCD000 EXTENDED OPERAND TABLE S IZE = 00139864BYTES \n DFS0940I DBD DFSCD000 HAS BEEN ADDED IN LIBRARY. DMB SIZE = 00015104 BYTES \n DFS5007I DBD DFSCX000 EXTENDED OPERAND TABLE SIZE = 00000488BYTES \n DFS0940I DBD DFSCX0 00 HAS BEEN ADDED IN LIBRARY. DMB SIZE = 00000512 BYTES \n DFS0943I PSB DFSCPL00 REQUIRES MIN OF 00000000 AND MAX OF 00000028 BYTES OF STORAGE IN EPCB POOL IF USING FAST PATH. \n DFS0940I PSB DFSCPL00 HAS BEEN ADDED IN LIBRARY. PSB SIZE = 00011712 BYTES \n DFS0941I PSB DFSCPL00 IF USING DL/I SEPARATE ADDRESS SPACE, CSA SIZE = 00000512, SAS SIZE = 00011136. \n-DFS0589I PROCESS COMPLETE FOR PSB-DFSCPL 00. PCB = 0000360, PSB = 00011712, WORKAREA = 00010880, TOTAL SIZE = 00022592 \n DFS0593I PSB--DFSCPL00 WORKAREA BREAKOUT. NDX = 0000288, XIO = 0000272, IOA = 0004000, S EG = 004056,SSA = 002240 \n- \n DFS0943I PSB DFSCP000 REQUIRES MIN OF 00000000 AND MAX OF 00000028 BYTES OF STORAGE IN EPCB POOL IF USING FAST PATH. \n DFS0940I PSB DFSCP000 HAS BEEN ADDED IN LIBRARY. PSB S IZE = 00018880 BYTES \n DFS0941I PSB DFSCP000 IF USING DL/I SEPARATE ADDRESS SPACE, CSA SIZE = 00000960, SAS SIZE = 00017856. \n-DFS0589I PROCESS COMPLETE FOR PSB-DFSCP000. PCB = 0000720, PSB = 00018880, WORKAREA = 00015680, TOTAL SIZE = 00034560 \n DFS0593I PSB--DFSCP000 WORKAREA BR EAKOUT. NDX = 0000472, XIO = 0000272, IOA = 0008600, SEG = 004056,SSA = 002240 \n- \n DFS0943I PSB DFSCP001 REQUIRES MIN OF 00000000 AND MAX OF 00000028 BYTES OF STORAGE IN EPCB POOL IF USING FAST PATH. \n DFS0940 I PSB DFSCP001 HAS BEEN ADDED IN LIBRARY. PSB SIZE = 00019008 BYTES \n DFS0941I PSB DFSCP001 IF USING DL/I SEPARATE ADDRESS SP ACE, CSA SIZE = 00000960, SAS SIZE = 00017984. \n-DFS0589I PROCESS COMPLETE FOR PSB-DFSCP001. PCB = 0000720, PSB = 00019008, WORKAREA = 00015680, TOTAL SIZE = 00034688 \n DFS0593I PSB--DFSCP001 WORKAREA BREAKOUT. NDX = 0000472, XIO = 0000272, IOA = 0008600, SEG = 004056,SSA = 002240 \n- \n-DFS0591I MAX PCB SIZE = 0000720, MAX PSB SIZE = 00019008, MAX WORKAREA SIZE = 00015680, MAX TOTAL SIZE = 00034688 \n DFS0942I IF USING DL/I SAS, MAX CSA = 00000960 MAX SAS = 00017984 AVERAGE CSA = 00000810 AVERAGE SAS = 00015658. \n-D FS0590I END OF ACBLIB MAINTENANCE. HIGHEST CONDITION CODE WAS 00000008 \n", "debug": "BGYSC0345I STEPLIB set to IMSTEST.IMWZ.SDFSRESL\nBGYSC0346I Nested invocation <mvscmdhelper -v --pgm=DFSRRC00 --args=UPB, --SYSPRINT=* --DFSRESLB=IMSTE ST.IMWZ.SDFSRESL --IMS=IMSTEST.IMWZ.PSBLIB:IMSTEST.IMWZ.DBDLIB --IMSACB=IMSTEST.IMWZ.ACBLIB,old --SYSIN=IBMUSER.P7174546.T0884562.C0000000>\nBGYSC0307I Program: <DFSRRC00> Arguments: <UPB,>\nBGYSC0308I DDNames:\nBGYSC0312I SYSIN=IBMUSER.P7174546.T0884562.C0000000\nBGYSC0312I IMSACB=IMSTEST.IMWZ.ACBLIB,excl\nBGYSC0312I IMS=IMSTEST.IMWZ .PSBLIB:IMSTEST.IMWZ.DBDLIB\nBGYSC0312I DFSRESLB=IMSTEST.IMWZ.SDFSRESL\nBGYSC0310I SYSPRINT=*\nBGYSC0303I Dataset allocation succeeded for SYSIN=IBMUSER.P7174546.T0884 562.C0000000\nBGYSC0303I Dataset allocation succeeded for IMSACB=IMSTEST.IMWZ.ACBLIB\nBGYSC0303I Dataset allocation succeeded for IMS=IMSTEST.IMWZ.PSBLIB\nBGYSC0305I DDNam e IMS allocated to Concatenated Dataset IMSTEST.IMWZ.PSBLIB (0)\nBGYSC0303I Dataset allocation succeeded for SYS00002=IMSTEST.IMWZ.DBDLIB\nBGYSC0305I DDName SYS00002 alloc ated to Concatenated Dataset IMSTEST.IMWZ.DBDLIB (1)\nBGYSC0303I Dataset allocation succeeded for DFSRESLB=IMSTEST.IMWZ.SDFSRESL\nBGYSC0304I Dynamic allocation succeeded f or SYSPRINT (temporary dataset for console)\nBGYSC0328I OS Load program DFSRRC00\nBGYSC0320I Addressing mode: AMODE24\nBGYSC0327I Attach Exit code: 8 from DFSRRC00\nBGYSC0 338I Dataset free succeeded for SYSIN=IBMUSER.P7174546.T0884562.C0000000\nBGYSC0338I Dataset free succeeded for IMSACB=IMSTEST.IMWZ.ACBLIB\nBGYSC0359I Concatenation free s ucceeded for IMS\nBGYSC0338I Dataset free succeeded for DFSRESLB=IMSTEST.IMWZ.SDFSRESL\nBGYSC0356I Console free succeeded for SYSPRINT\n",
We are happy to announce that the registration for the Ansible Contributor Summit is open!
This is a great opportunity for interested people to meet, discuss related topics, share their stories and opinions, get the latest important updates and just to hang out together.
There will be different announcements & presentations by Community, Core, Cloud, Network, and other teams.
Current contributors will be happy to share their stories and experience with newcomers.
There will be links to interactive self-passed instruqt scenarios shared during the event that help newcomers learn different aspects of development.
Online on Matrix and Youtube. Tuesday, April 12, 2022, 12:00 - 20:00 UTC.
Add the event to your calendar. Use the ical URL (for example, in Google Calendar "Add other calendars" > "Import from URL") instead of importing the .ics file so that any updates to the event will be reflected in your calendar.
Check out the Summit page:
We are looking forward to seeing you!:)
Dear maintainers,
This is important for your collections!
In accordance with the Community decision, we have created the news-for-maintainers repository for announcements of changes impacting collection maintainers (see the examples) instead of Issue 45 that will be closed soon.
Watch
button in the upper right corner on the repository's home page.Issues
.Also we would like to remind you about the Bullhorn contributor newsletter which has recently started to be released weekly. To learn what it looks like, see the past releases. Please subscribe and talk to the Community via Bullhorn!
Join us in #ansible-social (for news reporting & chat), #ansible-community (for discussing collection & maintainer topics), and other channels on Matrix/IRC.
Help the Community and the Steering Committee to make right decisions by taking part in discussing and voting on the Community Topics that impact the whole project and the collections in particular. Your opinion there will be much appreciated!
Thank you!
Is there a reason that STEPLIB is not a parameter for the ims_command module?
Moreover, if it's normal, the module's doc should mention that the STEPLIB must be specfied in the target inventory's environment variables.. because this parameter is mandatory
For the other ims modules requiring STEPLIB, there is an optional STEPLIB parameter. The STEPLIB parameter can also be specified in the target inventory's environment variables.
And in the Notes paragraph, we can read :
"The steplib parameter can also be specified in the target inventory's environment variables.
The module's steplib input parameter will take precedence over the value specified in Environment_vars."
IMS_COMMAND
config file = /home/vcorfmat/ansible.cfg
configured module search path = ['/home/vcorfmat/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/vcorfmat/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/vcorfmat/.ansible/collections:/usr/share/ansible/collections
executable location = /home/vcorfmat/.local/bin/ansible
python version = 3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0]
jinja version = 3.1.2
libyaml = True
community.general 7.0.1
ibm.ibm_zos_core 1.6.0
ibm.ibm_zos_ims 1.2.0
I am unable to execute acbgen module. I followed provided example in documentations, but when I submit request I got following response:
FAILED! => {"changed": true, "content": "", "debug": "", "msg": "AttributeError("type object 'acbgen' has no attribute 'acbgen'")", "rc": ""}
I tried also psbgen and dbdgen which is working correctly. It looks that modules referring to modules_utils are not working. Maybe I am missing some kind of configuration. Can anybody help?
ims_acb_gen
ansible [core 2.11.2]
config file = None
configured module search path = ['/home/redby/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redby/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/redby/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redby/.local/bin/ansible
python version = 3.9.1 (default, May 21 2021, 11:40:24) [GCC 8.3.0]
jinja version = 3.0.1
libyaml = True
Collection Version
--------------- -------
ibm.ibm_zos_ims 1.0.1
5.4.72-microsoft-standard-WSL2 - Controll node
Z/OS 2.4 - Managed node
- name: Playbook for ACBGEN
hosts: ca11
gather_facts: no
environment:
"{{default_environment}}"
collections:
- ibm.ibm_zos_core
- ibm.ibm_zos_ims
tasks:
- name: Example of creating ACBs for specific PSBs.
ims_acb_gen:
command_input: BUILD
psb_name:
- PACCTDBA
dbd_name:
- ACCTDBDA
psb_lib:
- IMS.PSBLIB
dbd_lib:
- IMS.DBDLIB
acb_lib: IMS.ACBLIB
reslib:
- IMSSYS15.SDFSRESL
steplib:
- IMSSYS15.SDFSRESL
build_psb: false
ansible-playbook [core 2.11.2]
config file = None
configured module search path = ['/home/redby/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redby/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/redby/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redby/.local/bin/ansible-playbook
python version = 3.9.1 (default, May 21 2021, 11:40:24) [GCC 8.3.0]
jinja version = 3.0.1
libyaml = True
No config file found; using defaults
host_list declined parsing /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts as it did not pass its verify_file() method
auto declined parsing /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts as it did not pass its verify_file() method
Parsed /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts inventory source with ini plugin
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: acbgen.yml ***************************************************************************************************
1 plays in acbgen.yml
PLAY [Playbook for ACBGEN] *********************************************************************************************
META: ran handlers
TASK [Example of creating ACBs for specific PSBs.] *********************************************************************
task path: /mnt/c/users/rm648641/source/IMS_Tools_DevOps/acbgen.yml:14
Using module file /home/redby/.ansible/collections/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py
Pipelining is enabled.
<usilca11.lvn.broadcom.net> ESTABLISH SSH CONNECTION FOR USER: mrvra01
<usilca11.lvn.broadcom.net> SSH: EXEC sshpass -d10 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="mrvra01"' -o ConnectTimeout=10 -o ControlPath=/home/redby/.ansible/cp/9da73c7060 usilca11.lvn.broadcom.net '/bin/sh -c '"'"'_BPXK_AUTOCVT=ON _ENCODE_FILE_NEW='"'"'"'"'"'"'"'"'“IBM-1047”'"'"'"'"'"'"'"'"' _ENCODE_FILE_EXISTING='"'"'"'"'"'"'"'"'“IBM-1047”'"'"'"'"'"'"'"'"' /usr/lpp/IBM/cyp/v3r9/pyz/bin/python3 && sleep 0'"'"''
<usilca11.lvn.broadcom.net> (1, b'\n{"changed": true, "content": "", "rc": "", "debug": "", "failed": true, "msg": "AttributeError(\\"type object \'acbgen\' has no attribute \'acbgen\'\\")", "exception": " File \\"/tmp/ansible_ims_acb_gen_payload_oa27fo_e/ansible_ims_acb_gen_payload.zip/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py\\", line 293, in run_module\\n", "invocation": {"module_args": {"command_input": "BUILD", "psb_name": ["PACCTDBA"], "dbd_name": ["ACCTDBDA"], "psb_lib": ["IDI.MRVRA01.GSE.PSBLIB"], "dbd_lib": ["IDI.MRVRA01.GSE.DBDLIB"], "acb_lib": "SOME.IMS.ACBLIB", "reslib": ["IMSSYS15.SDFSRESL"], "steplib": ["IMSSYS15.SDFSRESL"], "build_psb": false, "compression": null}}}\n', b'')
<usilca11.lvn.broadcom.net> Failed to connect to the host via ssh:
The full traceback is:
File "/tmp/ansible_ims_acb_gen_payload_oa27fo_e/ansible_ims_acb_gen_payload.zip/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py", line 293, in run_module
fatal: [usilca11.lvn.broadcom.net]: FAILED! => {
"changed": true,
"content": "",
"debug": "",
"invocation": {
"module_args": {
"acb_lib": "IMS.ACBLIB",
"build_psb": false,
"command_input": "BUILD",
"compression": null,
"dbd_lib": [
"IMS.DBDLIB"
],
"dbd_name": [
"ACCTDBDA"
],
"psb_lib": [
"IMS.PSBLIB"
],
"psb_name": [
"PACCTDBA"
],
"reslib": [
"IMSSYS15.SDFSRESL"
],
"steplib": [
"IMSSYS15.SDFSRESL"
]
}
},
"msg": "AttributeError(\"type object 'acbgen' has no attribute 'acbgen'\")",
"rc": ""
Hi, can we please rename the repo to be consistent with others under gh/anisble-collections?
The link to the documentation site in README directs users to the deprecated IMS Collection site. It needs to be updated to reflect the unified doc site.
README.md
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.