Page MenuHomePhabricator

decommission db1183
Closed, ResolvedPublicRequest

Description

This task will track the decommission-hardware of server db1183.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.

db1183

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. (likely done by script)
  • - remove system from all lvs/pybal active configuration
  • - 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.
  • - 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, and run homer.
  • - remove all remaining puppet references and all host entries in the puppet repo
  • - reassign task from service owner to no owner and ensure the site project (ops-sitename depending on site of server) is assigned.

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

  • - system disks removed (by onsite)
  • - determine system age, under 5 years are reclaimed to spare, over 5 years are decommissioned.
  • - IF DECOM: system unracked and decommissioned (by onsite), update netbox with result and set state to offline
  • - IF DECOM: mgmt dns entries removed.

Event Timeline

I need to provision a new candidate master for s5 first.

Mentioned in SAL (#wikimedia-operations) [2025-05-19T06:09:46Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depool db1183 T394507', diff saved to https://phabricator.wikimedia.org/P76285 and previous config saved to /var/cache/conftool/dbconfig/20250519-060946-marostegui.json

Change #1147170 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] db1183: Disable notifications

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

Change #1147170 merged by Marostegui:

[operations/puppet@production] db1183: Disable notifications

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

Marostegui changed the task status from Open to Stalled.May 19 2025, 12:26 PM

Let's put this on hold as we need to temporarily need to pool this in x1 to test something (T393513)

Marostegui changed the task status from Stalled to Open.May 22 2025, 11:22 AM
Marostegui moved this task from Ready to In progress on the DBA board.

Mentioned in SAL (#wikimedia-operations) [2025-05-22T11:22:46Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depool db1183 T394507', diff saved to https://phabricator.wikimedia.org/P76393 and previous config saved to /var/cache/conftool/dbconfig/20250522-112245-marostegui.json

Change #1149358 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] db1183: Disable notifications

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

Change #1149358 merged by Marostegui:

[operations/puppet@production] db1183: Disable notifications

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

Change #1149536 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] instances.yaml: Remove db1183 from dbctl

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

Change #1149536 merged by Marostegui:

[operations/puppet@production] instances.yaml: Remove db1183 from dbctl

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

Mentioned in SAL (#wikimedia-operations) [2025-05-23T05:13:39Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Remove db1183 from dbctl T394507', diff saved to https://phabricator.wikimedia.org/P76410 and previous config saved to /var/cache/conftool/dbconfig/20250523-051339-marostegui.json

Change #1149538 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] mariadb: Decommission db1183

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

Change #1149538 merged by Marostegui:

[operations/puppet@production] mariadb: Decommission db1183

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

cookbooks.sre.hosts.decommission executed by marostegui@cumin1002 for hosts: db1183.eqiad.wmnet

  • db1183.eqiad.wmnet (PASS)
    • Downtimed host on Icinga/Alertmanager
    • Found physical host
    • Downtimed management interface on Alertmanager
    • Wiped all swraid, partition-table and filesystem signatures
    • Powered off
    • [Netbox] Set status to Decommissioning, deleted all non-mgmt IPs, updated switch interfaces (disabled, removed vlans, etc)
    • Configured the linked switch interface(s)
    • Removed from DebMonitor
    • Removed from Puppet master and PuppetDB
Marostegui updated the task description. (Show Details)
Marostegui edited projects, added ops-eqiad; removed Patch-For-Review.
VRiley-WMF claimed this task.
VRiley-WMF updated the task description. (Show Details)
VRiley-WMF subscribed.

This has been decomissioned