Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 02:46 AM

    Hi,

    We are getting below error while running the mas core installation using ansible scripts. Any pointers around this would be greatly appreciated.

    TASK [ibm.mas_devops.ibm_catalogs : detect-airgap : Look for the MAS ImageContentSourcePolicy] **************************************************************

    fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (kubernetes) on <AZURE VM Name> Python /bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}



    ------------------------------
    Suhas Joshi
    ------------------------------


  • 2.  RE: Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 03:13 AM

    Hi Suhas,

    There are multiple possible reasons why the import of Pythin Libraries are failing. First of all check the correct version of OpenShift (4.9 or later, preferably 4.11 to install MAS version 8.10.x). Check al;so which version of Python is installed currently and which version is required in the ansible playbook. There are several solutions available, one of them:

    https://stackoverflow.com/questions/60866755/ansible-k8s-module-failed-to-import-the-required-python-library-openshift-on



    ------------------------------
    Jan-Willem Steur
    Jan-Willem
    ------------------------------



  • 3.  RE: Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 04:46 AM

    Thanks for your quick response Jan-Willem. We are using OC server 4.12.25 and python is 3.9.16. Currently we are using RHEL 9 and planning to test this with 8 version now. Let me know if any other pointers you can provide.



    ------------------------------
    Suhas Joshi
    ------------------------------



  • 4.  RE: Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 08:20 AM
    Edited by Jan-Willem Steur Thu September 21, 2023 08:21 AM

    Suhas,

    One more question to understand the issue even better. You used ansible scripts. How did you runned them? Via the Tecton Pipeline approach (the MAS devops Docker (aka mascli) and then runned the mas install command, or runned them directly?

    I suggest to use the approach as instructed and preferred by IBM.

    https://ibm-mas.github.io/ansible-devops/

    or 

    https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=collection-maximo-application-suite-ansible-examples

    As far I have  used this tekton pipeline approach (using the mascli docker locally and running the ansible playbook based installation), I never faced any issue as you have described.



    ------------------------------
    Jan-Willem Steur
    Jan-Willem
    ------------------------------



  • 5.  RE: Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 10:59 AM

    Hi Jan-Willem, thanks for providing your inputs. Issue is now resolved when we started the installation on RHEL 8 version. May be some compatibility issue with RHEL 9.



    ------------------------------
    Suhas Joshi
    ------------------------------



  • 6.  RE: Error while running mas core installation using ansible scripts

    Posted Thu September 21, 2023 11:03 AM

    Hi Suhas,

    Great to hear that the issue is solved. Something to share with Red Had regarding RHEL9, since I didn't face these issues yet with RHEL9.



    ------------------------------
    Jan-Willem Steur
    Jan-Willem
    ------------------------------