Closed platanip closed 2 weeks ago
@schamola, please take care of this.
Hi @platanip,
It seems like your system is having python version - 2.7 Recently, we made some changes to our modules, requiring at least python version 3.6. So, please re-run after updating the python version and let us know if the problem persists.
Hi @schamola we have python3 installed on both the NIM master and the NIM client bash-5.1# python --version Python 3.7.12 I also added a variable to our job template to set the ansible python interpreter to python3 ansible_python_interpreter: /usr/bin/python3
In my playbook the NIM operation RESET now works fine however when I run the UPDATE operation the module fails with the below:-
TASK [reset AIX NIM client] **** task path: /runner/project/patch_os_aix.yml:45
Hi @platanip,
It looks like you are using an older version of this module. Can you please confirm once ? If that is the case, please use the latest version. Let us know if it still doesn't solve your issue !
Hi @schamola looks like I was using version 1.7.2 which looks like an older version, I then downloaded and synced the latest version 1.8.3 Now my playbook runs however in the step that performs the nim update I get the below msg:-
{ "changed": false, "msg": "NIM update operation successful. See status and meta for details.", "status": { "aud6501l": "" }, "stdout": "", "stderr": "", "meta": { "messages": [], "aud6501l": { "messages": [ "Cannot get oslevel from lpp source name: aix7200TL5SP7_lpp" ] }
I pass the lpp_source to use for the update as a variable , does the module require that the nim lpp source follows a particular naming standard ?
Hi @platanip The module tries to figure out oslevel from the provided lpp_source name. If it is not able to, then this message gets appended in the messages list. So, yes, for getting the oslevel from lpp_source name, your lpp_source needs to be named a certain way(XXXX-XX-XX-XXXX-lpp_source).
Since, the problem seems to be resolved, we are closing this issue. You can re-open the issue if it is still not resolved.
I am running a playbook via a job template on Ansible automation controller that calls the ibm.power_aix collection. Within the playbook I am calling the module nim to be able to perform various nim functions and specifically a nim upgrade of a AIX client and then a reboot. In this example I am running the nim module with the action: reboot to reboot the nim cleint. However the job keeps failing with below errors :-
If I call other modules in the ibm.power_aix collection it works fine e.g. I called bootlist and reboot modules and they work successfully. The collections version that is being downloaded onto my ansible tower host is ibm.power_aix:1.7.2
ASK [reboot AIX NIM client] *** task path: /runner/project/patch_os_aix.yml:76