AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Not able to apply the service pack through ansible playbook

    Posted Wed November 29, 2023 05:36 AM

    Hi Team,

    We are not able to apply the latest service pack through ansible playbook. We are getting following error message. Would you please help ?

     ansible-playbook nim_suma.yml

    PLAY [NIM check on AIX playbook] ************************************************************************************************************************************************************************************************************

    TASK [Check, download and create the NIM resource to install latest updates] ****************************************************************************************************************************************************************
    An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'group'
    fatal: [dsmjcanim01]: FAILED! => {"changed": false, "module_stderr": "Connection to dsmjcanim01 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 47, in invoke_module\r\n    runpy.run_module(mod_name='ansible_collections.ibm.power_aix.plugins.modules.nim_suma', init_globals=dict(_module_fqn='ansible_collections.ibm.power_aix.plugins.modules.nim_suma', _modlib_path=modlib_path),\r\n  File \"/opt/freeware/lib64/python3.9/runpy.py\", line 225, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/opt/freeware/lib64/python3.9/runpy.py\", line 97, in _run_module_code\r\n    _run_code(code, mod_globals, init_globals,\r\n  File \"/opt/freeware/lib64/python3.9/runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 1077, in <module>\r\n  File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 1066, in main\r\n  File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 873, in suma_download\r\n  File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 541, in compute_rq_name\r\nAttributeError: 'NoneType' object has no attribute 'group'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

    PLAY RECAP **********************************************************************************************************************************************************************************************************************************
    dsmjcanim01                : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

    Content of playbook:

    ---
    - name: "NIM check on AIX playbook"
      hosts: "{{host_name}}"
      user: root
      vars:
        host_name: dsmjcanim01
        download_dir_val: /export/nim
        oslevel_val: Latest
      gather_facts: false
      become: true

      collections:
      - ibm.power_aix
      tasks:
        - name: "Check, download and create the NIM resource to install latest updates"
          nim_suma:
            action: download
            targets: dsmjca001s
            oslevel: "{{ oslevel_val }}"
            download_dir: "{{ download_dir_val }}"
          register: result
        - debug: var=result



    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: Not able to apply the service pack through ansible playbook

    Posted Mon December 11, 2023 06:19 AM

    Hello Team,

    Do we have any suggestion on above query.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 3.  RE: Not able to apply the service pack through ansible playbook

    Posted Mon December 18, 2023 07:23 AM

    Hello Team,

    Do anyone having any suggestion please?



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Not able to apply the service pack through ansible playbook

    Posted Wed December 27, 2023 06:47 AM

    Hello Team,

    Do anyone have any suggestion please? Need urgent help



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 5.  RE: Not able to apply the service pack through ansible playbook

    Posted Wed December 27, 2023 06:41 PM

    Hello

    This forum typically addresses AIX Toolbox issues and questions.

    Did you report the issue on the Ansible Power site?

    https://github.com/IBM/ansible-power-aix#readme

    Question, Issue or Contribute
    **If you have any questions or issues you can create a new issue here.

    ---> https://github.com/IBM/ansible-power-aix/issues/new



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------