Page MenuHomePhabricator

Decommission the alert1001 and alert2001 hosts
Closed, ResolvedPublic

Description

Overview

This task will track the decommission-hardware of server alert1001, and alert2001.

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.


Decommission of alert1001

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.

Decommission of alert2001

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

Event Timeline

Change #1063231 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Ensure the alert[12]001 hosts use the spare::system role

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

Change #1063233 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Remove the alert[12]001 hosts from site.pp

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

Change #1063234 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Remove the alert[12]002 hosts as alertmanagers

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

Change #1064103 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Remove the alert[12]001 hosts from Prometheus blackbox exporter

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

Change #1063231 abandoned by Andrea Denisse:

[operations/puppet@production] alert: Ensure the alert[12]001 hosts use the spare::system role

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

Change #1064112 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Remove the alert[12]001 hosts from Acme Chief

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

Change #1064112 abandoned by Andrea Denisse:

[operations/puppet@production] alert: Remove the alert[12]001 hosts from Acme Chief

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

Change #1064103 abandoned by Andrea Denisse:

[operations/puppet@production] alert: Remove the alert[12]001 hosts from Prometheus blackbox exporter

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

Change #1063233 abandoned by Andrea Denisse:

[operations/puppet@production] alert: Remove the alert[12]001 hosts from site.pp

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

Change #1075598 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] alert: Remove the alert[12]001 hosts from site.pp

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

Change #1063234 merged by Andrea Denisse:

[operations/puppet@production] alert: Remove the alert[12]001 hosts as alertmanagers

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

Mentioned in SAL (#wikimedia-operations) [2024-10-02T16:27:29Z] <denisse> Running the sre.hosts.decommission cookbook on the alert1001, and alert2001 hosts - T372607

cookbooks.sre.hosts.decommission executed by denisse@cumin2002 for hosts: alert[1001,2001].wikimedia.org

  • alert1001.wikimedia.org (WARN)
    • Host not found on Icinga, unable to downtime it
    • 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
  • alert2001.wikimedia.org (WARN)
    • Host not found on Icinga, unable to downtime it
    • 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

Change #1075598 merged by Andrea Denisse:

[operations/puppet@production] alert: Remove the alert[12]001 hosts from site.pp

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

andrea.denisse updated the task description. (Show Details)
Jhancock.wm renamed this task from Decommission the alert1001 and alert1002 hosts to Decommission the alert1001 and alert2001 hosts.Oct 7 2024, 1:55 PM

@andrea.denisse hello fyi; if you have this type of case where you have to decom a server in eqiad and the same in codfw best practice will be open 2 tasks, one for each site. Thanks

VRiley-WMF updated the task description. (Show Details)