Closed rene-oromtz closed 6 months ago
Perfect Thank you.
Can you please validate sls setup with DocumentDB V5 as I get module error and works fine with V4 version of DocumentDB
@whoiscnu SLS should work against DocumentDB v5. We have verified it works (using a different deployment method, but the product still works). What is the module error? Was it the connection error?
@whoiscnu Did you ensure the retryWrites is set to false on the licenseservice config as docDB doesn't support retryWrites
Yes , I did. The only way it got working is when I reverted to v4 docdb. I shall test out the latest release as it has fixed Cert’s issue too and shall provide the details.
Regards Srinivasa
On Wed, 1 May 2024 at 6:01 PM, Andrew Whitfield @.***> wrote:
@whoiscnu https://github.com/whoiscnu Did you ensure the retryWrites is set to false on the licenseservice config as docDB doesn't support retryWrites
— Reply to this email directly, view it on GitHub https://github.com/ibm-mas/ansible-devops/pull/1256#issuecomment-2088117446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5UE5T7V6TARRHADVGUCELZACOL3AVCNFSM6AAAAABFSM2LVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGEYTONBUGY . You are receiving this because you were mentioned.Message ID: @.***>
Fix description
Currently, the generated mongocfg file by gencfg_mongo file is not valid for sls role.
With current mongocfg file, validation will fail at task sls Task Override MongoDb facts bases on mongocfg. The reason is that on sls template
templates/mongo-certificates.yml.j2
it will look for the certificates in mongocfg[1].spec.certificates. Currently, gencfg_mongo sets the certificates as follows: mongocfg[1].spec.config.certificates.This small tweak on gencfg_mongo
templates/suite_mongocfg.yml.j2
will take care of setting mongocfg yaml the way sls role expects it to.Validated MongoCfg after modification: