Page MenuHomePhabricator

decommission cloudvirt1015.eqiad.wmnet
Closed, ResolvedPublicRequest

Description

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

cloudvirt1015.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.
  • - 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.
  • - 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.
  • - reassign task from service owner to DC ops team member depending on site of servee.

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

  • - disable switch port / set to asset tag if host isn't being unracked / remove from switch if being unracked.
  • - system disks wiped (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: switch port configration removed from switch once system is unracked.
  • - IF DECOM: add system to decommission tracking google sheet
  • - IF DECOM: mgmt dns entries removed.
  • - IF RECLAIM: set netbox state to 'inventory' and hostname to asset tag

Related Objects

Event Timeline

I updated the description per the title, feel free to change if wrong.

cookbooks.sre.hosts.decommission executed by andrew@cumin1001 for hosts: cloudvirt1015.eqiad.wmnet

  • cloudvirt1015.eqiad.wmnet (PASS)
    • Downtimed host on Icinga
    • Found physical host
    • Downtimed management interface on Icinga
    • Wiped bootloaders
    • 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
  • COMMON_STEPS (WARN)
    • Not all affected DC(s) have been migrated to automatic DNS, a manual patch to the operations/dns repository is required

Change 628182 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] Remove refs to cloudvirt1015

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

Change 628183 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/dns@master] Removed references to cloudvirt1015

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

Change 628182 merged by Andrew Bogott:
[operations/puppet@production] Remove refs to cloudvirt1015

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

Change 628183 merged by Andrew Bogott:
[operations/dns@master] Removed references to cloudvirt1015

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

Andrew updated the task description. (Show Details)
Andrew edited projects, added ops-eqiad; removed Patch-For-Review.
Cmjohnson updated the task description. (Show Details)

Change 788375 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] site.pp: remove cloudvirt101[2,3,4,5].eqiad.wmnet

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

Change 788375 merged by Andrew Bogott:

[operations/puppet@production] site.pp: remove cloudvirt101[2,3,4,5].eqiad.wmnet

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