Page MenuHomePhabricator

decommission mc1024
Closed, ResolvedPublicRequest

Description

mc1024 went down unexpectedly and won't be coming back. This task is to properly decom it and follow:

https://wikitech.wikimedia.org/wiki/Server_Lifecycle#Active_-%3E_Decommissioned

But it is stalled until it is removed from all configs (T272078) and there will be a separate task to ask for a replacement for it. (T272085)


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

mc1024.eqiad.wmnet

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

[xz] - 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.
  • - run homer on cumin host to update switch stack
  • - 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 via netbox, run sre dns cookbook.
  • - reassign task from service owner to DC ops team member depending on site of servee.

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

Dzahn changed the task status from Open to Stalled.Jan 14 2021, 7:51 PM
Dzahn created this task.
Dzahn mentioned this in Unknown Object (Task).Jan 14 2021, 8:43 PM
Dzahn updated the task description. (Show Details)

Change 670438 had a related patch set uploaded (by Effie Mouzeli; owner: Effie Mouzeli):
[operations/puppet@production] manifests: decomm remove mc1024 from puppet

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

cookbooks.sre.hosts.decommission executed by jiji@cumin1001 for hosts: mc1024.eqiad.wmnet

  • mc1024.eqiad.wmnet (FAIL)
    • Failed downtime host on Icinga (likely already removed)
    • Found physical host
    • Skipped downtime management interface on Icinga (likely already removed)
    • Unable to connect to the host, wipe of bootloaders will not be performed: Cumin execution failed (exit_code=2)
    • Powered off
    • Set Netbox status to Decommissioning and deleted all non-mgmt interfaces and related IPs
    • Removed from DebMonitor
    • Removed from Puppet master and PuppetDB

ERROR: some step on some host failed, check the bolded items above

jijiki changed the task status from Stalled to Open.Mar 10 2021, 12:10 PM
jijiki updated the task description. (Show Details)
jijiki added a project: DC-Ops.

Change 670438 merged by Effie Mouzeli:
[operations/puppet@production] manifests: decomm remove mc1024 from puppet

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

wiki_willy added a project: ops-eqiad.
wiki_willy subscribed.

Hi @Dzahn - just a quick reminder to add the "ops-eqiad" project tag when the servers are ready for dc-ops to unrack. Much appreciated. Thanks, Willy

Cmjohnson updated the task description. (Show Details)