Platform9 Edge Cloud
Latest
How to Compare the Admin Password in the Mongo Database to the one in the Backup?
Problem
How to Compare the Admin Password in the Mongo Database to the one in the backup?
Environment
Platform9 Edge Cloud - v5.3 (LTS1)
Procedure
Note the password from the get-cred command. This command fetched the username and password from MongoDB.
/opt/pf9/airctl/airctl get-creds --config /opt/pf9/airctl/conf/airctl-config.yaml
Untar backup file
tar -xf <back_up_file>
Ex: tar -xf airctl_state.tar.gz
Change directory to mongo
cd mongo
Get admin_pass from
du_data.json
vi du_data.json #search for "admin_pass" and make a note of admin_pass value
Ex:
"passwords": {
"admin_pass": "airctl-1-33xxx54-31-pf9-localnet-admin_pass",
Get the Password from
secrets.json
vi secrets.json #search for admin_pass value copied in previous step
Ex:
{
"_id": {
"$oid": "66bdfe9xxxxxxx1262d9f"
},
"tag": "airctl-1-33xxx54-31-pf9-localnet-admin_pass",
"context": "customer",
"driver": "null",
"record": {
"HYAT!": "c194ZxxxRaxxCk",
"binary": false
}
}
Compare passwords.
Last updated on
Was this page helpful?
Frequently Asked Questions
How To
Solution
Internal Only
Templates
Powered by
