Not the answer you need?
Register and ask your own question!
Many Forum changes were implemented on Tue 22 Sep. Read about new Ranks, Scoring, and Reactions.
Email [email protected] for any comments or concerns.

Update the password for the backupUser on Percona server on DCOS

RogierDRogierD EntrantCurrent User Role Novice
Hi all,

Yesterday i reported the following bug:
https://jira.percona.com/projects/PMDCOS/issues/PMDCOS-7

We found that the Percona Mongo server version on DCOS could not restore backups because @ is not escaped properly.
Now i would like to work around this to fix this, but in the documentation i read this:

https://docs.mesosphere.com/services/percona-server-mongodb/0.4.2-3.6.10/mongodb-administration/#users

IMPORTANT: These users cannot be modified or removed. Tasks that modify the users below will receive an error.

Now i would like to work around this by logging in mongo, updating the backupUser system password and after this updating the service.json for the DCOS task. Did anyone have experience with this?

Comments

  • RogierDRogierD Entrant Current User Role Novice
    The impatient adventurer in me decided to give it a try.

    Solved our issue by removing the @ character by going to the mongo cluster with the cli.

    sudo docker run -it mongo:latest mongo mongodb://mongo-rs-0-mongod.autoip.dcos.thisdcos.directory:27017,mongo-rs-1-mongod.autoip.dcos.thisdcos.directory:27017,mongo-rs-2-mongod.autoip.dcos.thisdcos.directory:27017/admin?replicaSet=rs -u userAdmin -p 'my_password'

    After this
    show users

    db.changeUserPassword("backupUser", "[email protected]")

    After this i went to the DCOS interface, updated the backupUser password. This triggered a rolling update, to be sure i checked the exhibitor configuration for the mongo framework.

    Ran the restore:
    dcos percona-server-mongodb restore run s3 s3://bucketname/mongo/mongodb/date_goes_here/rs/dump

    and done.
  • lorraine.pocklingtonlorraine.pocklington Percona Community Manager Legacy User Role Patron
    Thank you so much for updating!
    I had been asking the team if they could advise. Now I've been able to tell them they can check in on your solution instead. :)
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.