Page MenuHomePhabricator

decommission pki2001.codfw.wmnet
Closed, ResolvedPublic

Description

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

<ENTER SINGLE HOSTNAME PER CHECKLIST HERE>

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

Related Objects

StatusSubtypeAssignedTask
Resolvedjbond
Resolvedjbond

Event Timeline

Aklapper renamed this task from pki2001: decomission server to pki2001: decommission server.Mar 14 2023, 2:50 PM
jbond renamed this task from pki2001: decommission server to decommission pki2001.codfw.wmnet.Mar 14 2023, 3:28 PM
jbond claimed this task.
jbond triaged this task as Medium priority.
jbond added a project: decommission-hardware.
jbond updated the task description. (Show Details)

Icinga downtime and Alertmanager silence (ID=4697f9e6-30a6-446d-b67d-d99317a73ab5) set by jbond@cumin1001 for 5 days, 0:00:00 on 1 host(s) and their services with reason: decommission

pki2001.codfw.wmnet

Change 898785 had a related patch set uploaded (by Jbond; author: jbond):

[operations/puppet@production] pki: move to spare::system

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

Change 898785 merged by Jbond:

[operations/puppet@production] pki: move to spare::system

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

Change 898792 had a related patch set uploaded (by Jbond; author: jbond):

[operations/deployment-charts@master] pki2001: decomission server

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

Change 898792 merged by jenkins-bot:

[operations/deployment-charts@master] pki2001: decomission server

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

cookbooks.sre.hosts.decommission executed by jbond@cumin1001 for hosts: pki2001.codfw.wmnet

  • pki2001.codfw.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 898800 had a related patch set uploaded (by Jbond; author: jbond):

[operations/puppet@production] P:mariadb: drop pki2001 from grants

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

Change 898801 had a related patch set uploaded (by Jbond; author: jbond):

[operations/puppet@production] pki2001: remove last refrences to pki2001

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

Change 898801 merged by Jbond:

[operations/puppet@production] pki2001: remove last refrences to pki2001

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

jbond updated the task description. (Show Details)
Papaul updated Other Assignee, added: Jhancock.wm.

Change 898800 merged by Marostegui:

[operations/puppet@production] P:mariadb: drop pki2001 from grants

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

Mentioned in SAL (#wikimedia-operations) [2023-03-15T06:20:24Z] <marostegui> Remove pki2001 from m1 grants T332018

I have removed the grants from m1 database after merging the above patch.

Jhancock.wm updated the task description. (Show Details)