Page MenuHomePhabricator

Decommission an-test-coord1002
Closed, ResolvedPublic

Description

an-test-coord1002

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 DC ops team member and site project (ops-sitename) depending on site of server

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.

Original description below

The server an-test-coord1002 was intended to be used for T280905: Analytics coordinator failover improvements.

It was requisitioned from spares in T289784 and the ticket T287864: Deploy an-test-coord1002 to facilitate failover testing of analytics coordinator role was intended to be used to track the work.

However, in almost two years we have not found the time to take the project forward and now an-test-coord1002 is due to be decommissioned.

I think it is therfore best to proceed with decommissioning this server. We can still look at other means of improving availability as part of the T302728: Analytics Platform Future State Planing

This task will track the decommission-hardware of server <enter FQDN of server here>.

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.

Event Timeline

Gehel triaged this task as Low priority.Jun 27 2023, 3:46 PM
BTullis updated the task description. (Show Details)
BTullis moved this task from Ready for Work to In Progress on the Data-Platform-SRE board.
BTullis updated the task description. (Show Details)

Change 933982 had a related patch set uploaded (by Btullis; author: Btullis):

[operations/puppet@production] Configure an-test-coord1002 to be a spare system

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

Change 933982 merged by Btullis:

[operations/puppet@production] Configure an-test-coord1002 to be a spare system

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

cookbooks.sre.hosts.decommission executed by btullis@cumin1001 for hosts: an-test-coord1002.eqiad.wmnet

  • an-test-coord1002.eqiad.wmnet (WARN)
    • Downtimed host on Icinga/Alertmanager
    • Found physical host
    • Management interface not found on Icinga, unable to downtime it
    • 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 933985 had a related patch set uploaded (by Btullis; author: Btullis):

[operations/puppet@production] Remove the remaining reference to an-test-coord1002

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

Change 933985 merged by Btullis:

[operations/puppet@production] Remove the remaining reference to an-test-coord1002

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

BTullis added a project: ops-eqiad.
BTullis updated the task description. (Show Details)
BTullis moved this task from In Progress to Needs Reporting on the Data-Platform-SRE board.
Jclark-ctr updated the task description. (Show Details)