Page MenuHomePhabricator

Create cookbook for gitlab switchover
Closed, ResolvedPublic

Description

Using the checklist/process from the last two gitlab switchovers, we should build a cookbook to automate as much of this process as we can.

Event Timeline

Change 894634 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] [WIP] Cookbook for switchover of Gitlab to a new host

https://gerrit.wikimedia.org/r/894634

LSobanski triaged this task as Medium priority.Mar 29 2023, 11:40 AM

Change 894634 merged by EoghanGaffney:

[operations/cookbooks@master] Cookbook for switchover of Gitlab to a new host

https://gerrit.wikimedia.org/r/894634

Change 909253 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] Fixes incorrect arg name

https://gerrit.wikimedia.org/r/909253

Change 909253 merged by jenkins-bot:

[operations/cookbooks@master] Fixes incorrect arg name

https://gerrit.wikimedia.org/r/909253

Change 909257 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] Fix dry-run mode for gitlab failover cookbook

https://gerrit.wikimedia.org/r/909257

Change 909257 merged by jenkins-bot:

[operations/cookbooks@master] Fix dry-run mode for gitlab failover cookbook

https://gerrit.wikimedia.org/r/909257

Change 909263 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] Change file timestamp to an int, from a string

https://gerrit.wikimedia.org/r/909263

Change 909263 merged by jenkins-bot:

[operations/cookbooks@master] Change file timestamp to an int, from a string

https://gerrit.wikimedia.org/r/909263

Change 909289 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] Split path to extract filename from ls output

https://gerrit.wikimedia.org/r/909289

Change 909289 merged by jenkins-bot:

[operations/cookbooks@master] Split path to extract filename from ls output

https://gerrit.wikimedia.org/r/909289

Change 909765 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] [gitlab/failover] Add check for DNS records update

https://gerrit.wikimedia.org/r/909765

Change 909765 merged by jenkins-bot:

[operations/cookbooks@master] [gitlab/failover] Add check for DNS records update

https://gerrit.wikimedia.org/r/909765

We ran a test of switching over gitlab-replica-old and gitlab-replica using the cookbook in T334838, and it was successful.

Change 911759 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/puppet@production] gitlab: add backup type failover

https://gerrit.wikimedia.org/r/911759

Change 911759 merged by Jelto:

[operations/puppet@production] gitlab: add backup type failover

https://gerrit.wikimedia.org/r/911759

Change 912239 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/puppet@production] gitlab: add backup type failover to script output

https://gerrit.wikimedia.org/r/912239

Change 912239 merged by Jelto:

[operations/puppet@production] gitlab: add backup type failover to script output

https://gerrit.wikimedia.org/r/912239

Change 911951 had a related patch set uploaded (by EoghanGaffney; author: EoghanGaffney):

[operations/cookbooks@master] [gitlab/failover] Rename host flags

https://gerrit.wikimedia.org/r/911951

Change 911951 merged by jenkins-bot:

[operations/cookbooks@master] [gitlab/failover] Rename host flags

https://gerrit.wikimedia.org/r/911951