Buy Percona ServicesBuy Now!

Update the password for the backupUser on Percona server on DCOS

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Update the password for the backupUser on Percona server on DCOS

    Hi all,

    Yesterday i reported the following bug:
    https://jira.percona.com/projects/PM...ssues/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...tration/#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?

  • #2
    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", "something_without_@")

    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.

    Comment


    • #3
      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.

      Comment

      Working...
      X