Page MenuHomePhabricator

decommission db2141.codfw.wmnet
Closed, ResolvedPublicRequest

Description

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

db2141

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
  • - 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.
  • - IF RECLAIM: set netbox state to 'inventory' and hostname to asset tag

Event Timeline

• jcrespo renamed this task from decommission db2142.codfw.wmnet to decommission db2141.codfw.wmnet.
• jcrespo updated the task description. (Show Details)
• jcrespo updated the task description. (Show Details)

Change #1276407 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mariadb: Set db2141 as a spare for decommissioning

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

FYI @Marostegui This is almost ready to proceed, but waiting on backups check until Tuesday to merge https://gerrit.wikimedia.org/r/c/operations/puppet/+/1276407 and proceed.

Change #1276407 merged by Jcrespo:

[operations/puppet@production] mariadb: Set db2141 as a spare for decommissioning

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

Icinga downtime and Alertmanager silence (ID=1cabead0-b35c-48fc-b017-d9f7d10475a8) set by jynus@cumin1003 for 4:00:00 on 1 host(s) and their services with reason: decom

db2141.codfw.wmnet

Change #1278457 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mariadb: Remove the last references to db2141 from puppet

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

cookbooks.sre.hosts.decommission executed by jynus@cumin1003 for hosts: db2141.codfw.wmnet

  • db2141.codfw.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 server and PuppetDB

Change #1278457 merged by Jcrespo:

[operations/puppet@production] mariadb: Remove the last references to db2141 from puppet

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

• jcrespo updated the task description. (Show Details)
• jcrespo added a project: ops-codfw.
Jhancock.wm claimed this task.
Jhancock.wm updated the task description. (Show Details)