Page MenuHomePhabricator

Decomission oresrdb2002.codfw.wmnet
Closed, ResolvedPublic

Description

Split off from T245161 and T254226. Once T254226 is closed (a couple of days) we should be able to decomission the old oresrdb host in codfw. I 'll create a separate task and handle personally the VM oresrdb2001

oresrdb2002:

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 server

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.

Event Timeline

akosiaris renamed this task from Decomission oresrdb2002.codfw.wmnet,oresrdb to Decomission oresrdb2002.codfw.wmnet.Jun 2 2020, 1:00 PM
akosiaris removed wiki_willy as the assignee of this task.
Dzahn triaged this task as Medium priority.Jun 4 2020, 9:14 AM

Change 604629 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] oresrdb: decommision

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

Change 604629 merged by Alexandros Kosiaris:
[operations/puppet@production] oresrdb: decommision

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

cookbooks.sre.hosts.decommission executed by akosiaris@cumin1001 for hosts: oresrdb[2001-2002].codfw.wmnet

  • oresrdb2001.codfw.wmnet (PASS)
    • Downtimed host on Icinga
    • Found Ganeti VM
    • VM shutdown
    • Started forced sync of VMs in Ganeti cluster ganeti01.svc.codfw.wmnet to Netbox
    • Removed from DebMonitor
    • Removed from Puppet master and PuppetDB
    • VM removed
  • oresrdb2002.codfw.wmnet (PASS)
    • Downtimed host on Icinga
    • Found physical host
    • Downtimed management interface on Icinga
    • Wiped bootloaders
    • Powered off
    • Set Netbox status to Decommissioning
    • Removed from DebMonitor
    • Removed from Puppet master and PuppetDB

Change 604730 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] oresrdb: Remove the last references from puppet

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

Change 604731 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/dns@master] oresrdb: Remove all DNS entries except mgmt

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

Change 604730 merged by Alexandros Kosiaris:
[operations/puppet@production] oresrdb: Remove the last references from puppet

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

Change 604731 merged by Alexandros Kosiaris:
[operations/dns@master] oresrdb: Remove all DNS entries except mgmt

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

[edit interfaces interface-range vlan-private1-c-codfw]
-    member ge-5/0/23;
[edit interfaces interface-range disabled]
     member ge-3/0/39 { ... }
+    member ge-5/0/23;
[edit interfaces ge-5/0/23]
-   description oresrdb2002;

Change 606262 had a related patch set uploaded (by Papaul; owner: Papaul):
[operations/dns@master] DNS: Remove mgmt entries for oresrdb2002

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

Change 606262 merged by Papaul:
[operations/dns@master] DNS: Remove mgmt entries for oresrdb2002

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

Papaul updated the task description. (Show Details)

Complete