Page MenuHomePhabricator

Cookbook to create a sanitarium host from scratch
Open, MediumPublic

Description

We currently don't have automation to cover that particular area.
This, on paper, would mostly be a variation of the clone/copy cookbook, handling a pre-replication set of tasks.

Related Objects

Event Timeline

ABran-WMF changed the task status from Open to In Progress.Jul 4 2024, 2:17 PM
ABran-WMF triaged this task as Medium priority.
ABran-WMF moved this task from Triage to Blocked on the DBA board.
ABran-WMF changed the subtype of this task from "Task" to "Feature Request".
ABran-WMF changed the subtype of this task from "Feature Request" to "Task".

A sanitarium master doesn't require anything special, it is just a normal production slave

ABran-WMF renamed this task from Cookbook to create a sanitarium master from scratch to Cookbook to create a sanitarium host from scratch.Jul 4 2024, 2:44 PM

So a quick high level of how this would be:

  • Select a host and assign all the needed puppet roles
  • Clone it from production (recommended: from its future sanitarium master)
    • Including setting replication up
    • Move it to replicate under its desired sanitarium master (ideally the host it was recloned from)
    • Let it catch up with its master
  • Run redact_sanitarium script across all the instances
  • Run check_private_data.py to make sure all the PII is filtered (I usually run it once, let a few hours past, and then run it again to make sure triggers, and replication filters are working as expected)
ABran-WMF changed the task status from In Progress to Open.Sep 11 2024, 8:58 AM