Open mad5bo opened 2 years ago
The Playbook
---
- hosts: ibmi
gather_facts: no
collections:
- ibm.power_ibmi
tasks:
- name: Install a list of PTFs of LPP 5733SC1 from image catalog
ibmi_fix_imgclg:
product_id:
- '5733SC1'
src: '/PTF'
apply_type: '*IMMONLY'
virtual_image_name_list:
- 'S5178V01.BIN'
become_user: "QSECOFR"
become_user_password: "PASSW0RD"
Hi,
From joblog, seems it's C7135460_01 was added, not S5178V01: Volume C7135460_01 was added into optical device ANSIBOPT1
Could you please check if the C7135460_01 is the older binary file. Or clear your image catalog env, and try again.
Thankyou.
Hi, sometimes I get the same error and I don't have 200% of such image on the system. "FROM_INSTRUCTION": "1810", 2021-11-18T11:34:05.5261007Z "FROM_LIBRARY": "QSYS", 2021-11-18T11:34:05.5261289Z "FROM_MODULE": null, 2021-11-18T11:34:05.5261590Z "FROM_PROCEDURE": null, 2021-11-18T11:34:05.5261900Z "FROM_PROGRAM": "QMOLVMGR", 2021-11-18T11:34:05.5262189Z "FROM_USER": "ANSIBLE", 2021-11-18T11:34:05.5262494Z "MESSAGE_FILE": "QCPFMSG", 2021-11-18T11:34:05.5262803Z "MESSAGE_ID": "OPT1410", 2021-11-18T11:34:05.5263095Z "MESSAGE_LIBRARY": "QSYS", 2021-11-18T11:34:05.5263548Z "MESSAGE_SECOND_LEVEL_TEXT": "&N Cause . . . . . : Volume C7209977_01 was added into optical device ANSIBOPT1.", 2021-11-18T11:34:05.5263989Z "MESSAGE_SUBTYPE": null, 2021-11-18T11:34:05.5264332Z "MESSAGE_TEXT": "Volume C7209977_01 added to optical device.", 2021-11-18T11:34:05.5264933Z "MESSAGE_TIMESTAMP": "2021-11-18T12:32:36.421140", 2021-11-18T11:34:05.5265304Z "MESSAGE_TYPE": "INFORMATIONAL", 2021-11-18T11:34:05.5265606Z "ORDINAL_POSITION": 8, 2021-11-18T11:34:05.5265903Z "SEVERITY": 0, 2021-11-18T11:34:05.5266200Z "TO_INSTRUCTION": "0EB5", 2021-11-18T11:34:05.5266483Z "TO_LIBRARY": "QSYS", 2021-11-18T11:34:05.5266773Z "TO_MODULE": null, 2021-11-18T11:34:05.5267068Z "TO_PROCEDURE": null, 2021-11-18T11:34:05.5267348Z "TO_PROGRAM": "QMOFMTR"
and this: 2021-11-18T11:34:05.5319768Z "msg": "Install from image catalog failed.", 2021-11-18T11:34:05.5320205Z "rc": 255, 2021-11-18T11:34:05.5322141Z "stderr": "{'error': ' error QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HIPER(NO)', 'error1': '202', 'version': 'XML Toolkit 2.0.2-dev', 'xmlhint': 'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI', 'xmlhint2': 'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI', 'jobipc': 'na', 'jobipcskey': 'FFFFFFFF', 'jobname': 'QSQSRVR', 'jobuser': 'QUSER', 'jobnbr': '622097', 'curuser': 'ANSIBLE', 'ccsid': '870', 'dftccsid': '870', 'paseccsid': '0', 'syslibl': 'QSYS QSYS2 QHLPSYS QUSRSYS', 'usrlibl': 'QGPL QTEMP'}", 2021-11-18T11:34:05.5323340Z "stderr_lines": [ 2021-11-18T11:34:05.5325012Z "{'error': ' error QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HIPER(NO)', 'error1': '202', 'version': 'XML Toolkit 2.0.2-dev', 'xmlhint': 'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI', 'xmlhint2': 'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI', 'jobipc': 'na', 'jobipcskey': 'FFFFFFFF', 'jobname': 'QSQSRVR', 'jobuser': 'QUSER', 'jobnbr': '622097', 'curuser': 'ANSIBLE', 'ccsid': '870', 'dftccsid': '870', 'paseccsid': '0', 'syslibl': 'QSYS QSYS2 QHLPSYS QUSRSYS', 'usrlibl': 'QGPL QTEMP'}" 2021-11-18T11:34:05.5326137Z ], 2021-11-18T11:34:05.5330460Z "stdout": "Command log of fix install by image catalog.\nQSYS/CRTDEVOPT DEVD(ANSIBOPT1) RSRCNAME(VRT) ONLINE(YES) TEXT('Created by Ansible for IBM i')\n{'success': \"+++ success QSYS/CRTDEVOPT DEVD(ANSIBOPT1) RSRCNAME(VRT) ONLINE(YES) TEXT('Created by Ansible for IBM i')\"}\nQSYS/CRTIMGCLG IMGCLG(ANSIBCLG1) DIR('/tmp/ansible_for_i_temp2oqi_7dv') CRTDIR(YES) ADDVRTVOL(DIR) TEXT('Created by Ansible for IBM i')\n{'success': \"+++ success QSYS/CRTIMGCLG IMGCLG(ANSIBCLG1) DIR('/tmp/ansible_for_i_temp2oqi_7dv') CRTDIR(YES) ADDVRTVOL(DIR) TEXT('Created by Ansible for IBM i')\"}\nQSYS/VRYCFG CFGOBJ(ANSIBOPT1) CFGTYPE(DEV) STATUS(ON)\n{'success': '+++ success QSYS/VRYCFG CFGOBJ(ANSIBOPT1) CFGTYPE(DEV) STATUS(ON)'}\nQSYS/LODIMGCLG IMGCLG(ANSIBCLG1) DEV(ANSIBOPT1) OPTION(LOAD)\n{'success': '+++ success QSYS/LODIMGCLG IMGCLG(ANSIBCLG1) DEV(ANSIBOPT1) OPTION(LOAD)'}\nQSYS/VFYIMGCLG IMGCLG(ANSIBCLG1) TYPE(PTF) SORT(YES)\n{'success': '+++ success QSYS/VFYIMGCLG IMGCLG(ANSIBCLG1) TYPE(PTF) SORT(YES)'}\nQSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HIPER(NO) \n", 2021-11-18T11:34:05.5332376Z "stdout_lines": [ 2021-11-18T11:34:05.5332667Z "Command log of fix install by image catalog.", 2021-11-18T11:34:05.5333345Z "QSYS/CRTDEVOPT DEVD(ANSIBOPT1) RSRCNAME(VRT) ONLINE(YES) TEXT('Created by Ansible for IBM i')", 2021-11-18T11:34:05.5334084Z "{'success': \"+++ success QSYS/CRTDEVOPT DEVD(ANSIBOPT1) RSRCNAME(VRT) ONLINE(YES) TEXT('Created by Ansible for IBM i')\"}", 2021-11-18T11:34:05.5334882Z "QSYS/CRTIMGCLG IMGCLG(ANSIBCLG1) DIR('/tmp/ansible_for_i_temp2oqi_7dv') CRTDIR(YES) ADDVRTVOL(DIR) TEXT('Created by Ansible for IBM i')", 2021-11-18T11:34:05.5335758Z "{'success': \"+++ success QSYS/CRTIMGCLG IMGCLG(ANSIBCLG1) DIR('/tmp/ansible_for_i_temp2oqi_7dv') CRTDIR(YES) ADDVRTVOL(DIR) TEXT('Created by Ansible for IBM i')\"}", 2021-11-18T11:34:05.5336458Z "QSYS/VRYCFG CFGOBJ(ANSIBOPT1) CFGTYPE(DEV) STATUS(ON)", 2021-11-18T11:34:05.5337086Z "{'success': '+++ success QSYS/VRYCFG CFGOBJ(ANSIBOPT1) CFGTYPE(DEV) STATUS(ON)'}", 2021-11-18T11:34:05.5337664Z "QSYS/LODIMGCLG IMGCLG(ANSIBCLG1) DEV(ANSIBOPT1) OPTION(LOAD)", 2021-11-18T11:34:05.5338330Z "{'success': '+++ success QSYS/LODIMGCLG IMGCLG(ANSIBCLG1) DEV(ANSIBOPT1) OPTION(LOAD)'}", 2021-11-18T11:34:05.5338733Z "QSYS/VFYIMGCLG IMGCLG(ANSIBCLG1) TYPE(PTF) SORT(YES)", 2021-11-18T11:34:05.5339322Z "{'success': '+++ success QSYS/VFYIMGCLG IMGCLG(ANSIBCLG1) TYPE(PTF) SORT(YES)'}", 2021-11-18T11:34:05.5339864Z "QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HIPER(NO) "
Hi,
Sorry for the late update.
You can try to delete ANSIBOPT1 firstly. You can use command "WRKDEVD" on IBM i, and find ANSIBOPT1, then delete it. Then try your command again.
And I suggest you can add "rollback: true" into your code. Since I think the root cause is there should be failed attempt in the past, and ANSIBOPT1 remains in the wrong status.
- name: Install a list of PTFs of LPP 5733SC1 from image catalog
ibmi_fix_imgclg:
product_id:
- '5733SC1'
src: '/PTF'
apply_type: '*IMMONLY'
rollback: true
virtual_image_name_list:
- 'S5178V01.BIN'
become_user: "QSECOFR"
become_user_password: "PASSW0RD"
Thank you.
Hi @pengzengyufish ,
With the same ibmi_fix_imgclg i am getting error when i install cumulative package .
MESSAGE_TEXT": "IPL required to complete PTF install processing.", "MESSAGE_SECOND_LEVEL_TEXT": "&N Cause . . . . . : At least one PTF requires an initial program load (IPL) to complete the PTF install processing. This includes one or both of the following: &P -- A technology refresh PTF or its requisite PTFs requires an IPL. A technology refresh PTF must be permanently applied before the remaining PTFs can be loaded and applied. &P -- One or more special handling PTFs or its requisite PTF requires an IPL. There are special handling PTFs defined in a PTF group being installed that must be applied before the remaining PTFs in the PTF group can be applied. &N Recovery . . . : Perform a normal mode IPL from the B IPL source to complete the PTF install. During the next unattended IPL, the remaining PTFs will be installed. If an IPL is required for a technology refresh PTF, device ANSIBOPT1 and image catalog ANSIBCLG1 will be used to load the additional PTFs during the next IPL. See the previously listed messages for PTFs that require an IPL."}
This looks one of the technology refresh PTF
How do i make sure auto IPL *YES option using this module.
{\'error\': \'** error QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HIPER(NO)\', \'error1\': \'202\', \'version\': \'XML Toolkit 2.0.2-dev\', \'xmlhint\': \'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI\', \'xmlhint2\': \'QSYS/INSPTF LICPGM((ALL)) DEV(ANSIBOPT1) INSTYP(DLYALL) HI\', \'jobipc\': \'*na\', \'jobipcskey\': \'FFFFFFFF\', \'jobname\': \'QSQSRVR\', \'jobuser\
Hi @PraveenGovindarajan ibmi_fix_imgclg doesn't run IPL *YES. It only installs the image files. You can add module ibmi_reboot after ibmi_fix_imgclg into your playbook. Thank you.
Hi
Trying to use the ibmi_fix_imgclg module, there exist an error as follows: