Page MenuHomePhabricator

decommission db1067.eqiad.wmnet
Open, MediumPublicRequest

Description

This task will track the decommission of server db1067.eqiad.wmnet

With the launch of updates to the decom cookbook, the majority of these steps can be handled by the service owners directly. The DC Ops team only gets involved once the system has been fully removed from service and powered down by the decommission cookbook.

db1067
Steps for service owner:

  • - all system services confirmed offline from production use
  • - set all icinga checks to maint mode/disabled while reclaim/decommmission takes place.
  • - remove system from all lvs/pybal active configuration https://gerrit.wikimedia.org/r/#/c/operations/mediawiki-config/+/551799/
  • - any service group puppet/hiera/dsh config removed
  • - remove site.pp, replace with role(spare::system) recommended to ensure services offline but not 100% required as long as the decom script is IMMEDIATELY run below. https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/552213/
  • - login to cumin host and run the decom cookbook: cookbook sre.hosts.decommission <host fqdn> -t <phab task>. This does: bootloader wipe, host power down, netbox update to decommissioning status, puppet node clean, puppet node deactivate, debmonitor removal.
  • - remove all remaining puppet references (include role::spare) and all host entries in the puppet repo
  • - remove ALL dns entries except the asset tag mgmt entries.
  • - reassign task from service owner to DC ops team member depending on site of server: codfw = @Papaul, eqiad = @Jclark-ctr, all other sites = @RobH.

End service owner steps / Begin DC-Ops team steps:

  • - disable switch port / set to asset tag if host isn't being unracked / remove from switch if being unracked.
  • - system disks wiped (by onsite)
  • - determine system age, under 5 years are reclaimed to spare, over 5 years are decommissioned. If uncertain, ask @wiki_willy.
  • - IF DECOM: system unracked and decommissioned (by onsite), update netbox with result and set state to offline
  • - IF DECOM: switch port configration removed from switch once system is unracked.
  • - IF DECOM: add system to decommission tracking google sheet
  • - IF DECOM: mgmt dns entries removed.
  • - IF RECLAIM: set netbox state to 'inventory' and hostname to asset tag

Details

Related Gerrit Patches:
operations/dns : masterwmnet: Remove production DNS for db1067
operations/puppet : productionmariadb: Remove db1067
operations/puppet : productionmariadb: Prepare to decommission db1067
operations/mediawiki-config : masterdb-eqiad,db-codfw.php: Remove db1067 from config
operations/puppet : productiondb1067: Disable notifications

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptThu, Nov 14, 6:42 AM
Marostegui moved this task from Triage to In progress on the DBA board.Thu, Nov 14, 6:43 AM

db1067 is no longer a master, but let's wait a few days before actually start its decommissioning process.

Change 551032 had a related patch set uploaded (by Marostegui; owner: Marostegui):
[operations/puppet@production] db1067: Disable notifications

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

Change 551032 merged by Marostegui:
[operations/puppet@production] db1067: Disable notifications

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

Marostegui updated the task description. (Show Details)Fri, Nov 15, 6:27 AM

Change 551799 had a related patch set uploaded (by Marostegui; owner: Marostegui):
[operations/mediawiki-config@master] db-eqiad,db-codfw.php: Remove db1067 from config

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

Marostegui updated the task description. (Show Details)Tue, Nov 19, 12:09 PM

Change 551799 merged by jenkins-bot:
[operations/mediawiki-config@master] db-eqiad,db-codfw.php: Remove db1067 from config

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

Mentioned in SAL (#wikimedia-operations) [2019-11-19T12:11:25Z] <marostegui@deploy1001> Synchronized wmf-config/db-eqiad.php: Remove db1067 from config T238297 (duration: 00m 52s)

Mentioned in SAL (#wikimedia-operations) [2019-11-19T12:12:23Z] <marostegui@deploy1001> Synchronized wmf-config/db-codfw.php: Remove db1067 from config T238297 (duration: 00m 52s)

Change 552213 had a related patch set uploaded (by Marostegui; owner: Marostegui):
[operations/puppet@production] mariadb: Prepare to decommission db1067

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

Change 552213 merged by Marostegui:
[operations/puppet@production] mariadb: Prepare to decommission db1067

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

Marostegui updated the task description. (Show Details)Thu, Nov 21, 9:15 AM

Mentioned in SAL (#wikimedia-operations) [2019-11-21T09:38:36Z] <marostegui> Stop MySQL on db1067 - T238297

Change 552708 had a related patch set uploaded (by Marostegui; owner: Marostegui):
[operations/puppet@production] mariadb: Remove db1067

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

Change 552709 had a related patch set uploaded (by Marostegui; owner: Marostegui):
[operations/dns@master] wmnet: Remove production DNS for db1067

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

cookbooks.sre.hosts.decommission executed by marostegui@cumin1001 for hosts: db1067.eqiad.wmnet

  • db1067.eqiad.wmnet (PASS)
    • Downtimed host on Icinga
    • Downtimed management interface on Icinga
    • Wiped bootloaders
    • Powered off
    • Set Netbox status to Decommissioning
    • Removed from DebMonitor
    • Removed from Puppet master and PuppetDB

Change 552708 merged by Marostegui:
[operations/puppet@production] mariadb: Remove db1067

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

Change 552709 merged by Marostegui:
[operations/dns@master] wmnet: Remove production DNS for db1067

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

Marostegui updated the task description. (Show Details)
Marostegui edited projects, added ops-eqiad, decommission, DC-Ops; removed Patch-For-Review, DBA.
Restricted Application added a project: Operations. · View Herald TranscriptMon, Nov 25, 8:12 AM

Host ready for DC-Ops steps

Cmjohnson moved this task from Backlog to Decommission on the ops-eqiad board.Tue, Nov 26, 6:09 PM