I encountered the same issue today while using the latest MAS CLI.
Here's how I resolved it:
- I backed up the problematic PipelineRun (PLR) in notepad.
- Deleted the problematic PLR.
- 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
------------------------------
Original Message:
Sent: Wed November 13, 2024 10:34 AM
From: mohamed radouane
Subject: SLS cannot install
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
------------------------------