Maximo

Maximo

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

 View Only
  • 1.  SLS cannot install

    Posted Wed November 13, 2024 01:17 PM
      |   view attached

    Dears,

    When installing MAS using ansible cli, SLS failed to install, it give the bellow error, mongodb installed with success, attached full SLS logs:


    TASK [ibm.mas_devops.sls : Wait until the LicenseService CRD is available] *****
    included: /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/common_tasks/wait_for_crd.yml for localhost

    TASK [ibm.mas_devops.sls : wait_for_crd : Wait until the licenseservices.sls.ibm.com CRD is available] ***
    ok: [localhost] => changed=false 
      attempts: 1
      censored: 'the output has been hidden due to the fact that ''no_log: true'' was specified for this result'

    TASK [ibm.mas_devops.sls : Read MongoDb config file] ***************************
    fatal: [localhost]: FAILED! => 
      msg: The 'file' lookup had an issue accessing the file '/workspace/configs/mongo-.yml'. file not found, use -vvvvv to see paths searched

    NO MORE HOSTS LEFT *************************************************************

    PLAY RECAP *********************************************************************
    localhost                  : ok=32   changed=0    unreachable=0    failed=1    skipped=19   rescued=0    ignored=0   



    ------------------------------
    mohamed radouane
    ------------------------------


  • 2.  RE: SLS cannot install

    Posted Mon November 18, 2024 03:30 AM

    Hi Mohamed,

    You need to either pass MongoDB config as parameters to the SLS playbook or provide a proper path to MongoCfg file generated by Mongo playbook. The path that You've provided is not valid.

    Regards,



    ------------------------------
    Witold Wierzchowski
    Solution Architect
    Cohesive Poland
    ------------------------------



  • 3.  RE: SLS cannot install

    Posted Mon November 18, 2024 10:04 AM

    I'm having the same issue. Did you find any solution?



    ------------------------------
    jerimiah huston
    ------------------------------



  • 4.  RE: SLS cannot install

    Posted Mon November 18, 2024 10:08 AM

    Dear Mohamed,

    Yes it seems the latest cli has a bug.

    I would recommend using the stable cli

    docker pull quay.io/ibmmas/cli:stable


    ------------------------------
    Mohamed Chihaoui
    ------------------------------



  • 5.  RE: SLS cannot install

    Posted Wed November 27, 2024 12:05 PM
    I encountered the same issue today while using the latest MAS CLI.
    Here's how I resolved it:
     
    1. I backed up the problematic PipelineRun (PLR) in notepad.
    2. Deleted the problematic PLR.
    3. Recreated it, ensuring the file name was corrected to mongo-mongoce.yml instead of mongo-.yml. Also don't forget to delete the status section from the yaml file before re-importing it.
    It appears that there is a bug in the MAS CLI container script used during installation. The script mistakenly attempts to invoke mongo-.yml, which doesn't exist, leading to the issue.
     
    I hope this helps others facing a similar problem!


    ------------------------------
    Mohamed Chihaoui
    ------------------------------