Closed
Bug 1469837
Opened 6 years ago
Closed 6 years ago
Reset treeherder-stage and treeherder-dev RDS to latest production snapshot
Categories
(Tree Management :: Treeherder: Infrastructure, enhancement, P1)
Tree Management
Treeherder: Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: dividehex)
Details
Hi Kendall/Jake :-) Please can the `treeherder-stage` and `treeherder-dev` RDS instances be reset to the latest production snapshot, to roll back a schema change made to them. Going from bug 1442369 comment 2, I believe the process on your side will be something like: $ terraform taint aws_db_instance.treeherder-dev-rds $ terraform taint aws_db_instance.treeherder-stage-rds $ terraform plan $ terraform apply ...then after the ~4 mins for destroy and ~15 mins for creation from snapshot, the new instance should be ready (we may also need to check whether it needs that extra reset for the parameter group to take effect). After that, we'll log in using the admin account password from prod, and change it to match the respective environments DATABASE_URL password, then initiate a new stage/prototype Heroku deploy from `master` (where the schema change will have been reverted). (And also clear the Redis cache for both)
Flags: needinfo?(klibby)
Flags: needinfo?(jwatkins)
Reporter | ||
Comment 1•6 years ago
|
||
s/extra reset/extra restart/
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → jwatkins
Flags: needinfo?(jwatkins)
Assignee | ||
Comment 2•6 years ago
|
||
The destruction and recreation of the `treeherder-stage` and `treeherder-dev` has completed. The parameter groups were pending-reboot so I rebooted them. Parameter groups are now in-sync. :-)
Flags: needinfo?(klibby)
Reporter | ||
Comment 3•6 years ago
|
||
Many thanks for the quick response! I've: * updated the password on both by connecting using the prod master password and then updating using `SET PASSWORD = '<prior dev/stage password>';` * initiated a new `master` deploy via Heroku's UI for stage/prototype & re-enabled auto-deploy * cleared the Redis cache using https://devcenter.heroku.com/articles/heroku-redis#redis-cli and then the Redis command `flushall` on both Redis instances All seems to be working fine :-)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•