Page MenuHomePhabricator

Decommission labsdb1006.eqiad.wmnet and labsdb1007.eqiad.wmnet
Closed, ResolvedPublic

Description

The first 5 steps should be completed by the service owner that is returning the server to DC-ops (for reclaim to spare or decommissioning, dependent on server configuration and age.)

labsdb1006:

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/heira/dsh config removed
  • - remove site.pp (replace with role(spare::system) if system isn't shut down immediately during this process.)
  • - unassign service owner from this task, check off completed steps,

Steps for DC-Ops:

The following steps cannot be interrupted, as it will leave the system in an unfinished state.

Start non-interrupt steps:

  • - disable puppet on host
  • - power down host
  • - update netbox status to Inventory (if decom) or Planned (if spare)
  • - disable switch port
  • - switch port assignment noted on this task (for later removal) asw2-c-eqiad:ge-4/0/26
  • - remove all remaining puppet references (include role::spare)
  • - remove production dns entries
  • - puppet node clean, puppet node deactivate (handled by wmf-decommission-host)
  • - remove dbmonitor entries on neodymium/sarin: sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/${HOST_FQDN} --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key (handled by wmf-decommission-host)

End non-interrupt steps.

  • - system disks wiped (by onsite)
  • - IF DECOM: system unracked and decommissioned (by onsite), update racktables with result
  • - 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.

labsdb1007:

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/heira/dsh config removed
  • - remove site.pp (replace with role(spare::system) if system isn't shut down immediately during this process.)
  • - unassign service owner from this task, check off completed steps

Steps for DC-Ops:

The following steps cannot be interrupted, as it will leave the system in an unfinished state.

Start non-interrupt steps:

  • - disable puppet on host
  • - power down host
  • - update netbox status to Inventory (if decom) or Planned (if spare)
  • - disable switch port
  • - switch port assignment noted on this task (for later removal) asw2-c-eqiad:ge-4/0/27
  • - remove all remaining puppet references (include role::spare)
  • - remove production dns entries
  • - puppet node clean, puppet node deactivate (handled by wmf-decommission-host)
  • - remove dbmonitor entries on neodymium/sarin: sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/${HOST_FQDN} --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key (handled by wmf-decommission-host)

End non-interrupt steps.

  • - system disks wiped (by onsite)
  • - IF DECOM: system unracked and decommissioned (by onsite), update racktables with result
  • - 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

Bstorm triaged this task as Medium priority.Apr 4 2019, 6:54 PM
Bstorm created this task.
Bstorm updated the task description. (Show Details)

Change 501457 had a related patch set uploaded (by Bstorm; owner: Bstorm):
[operations/puppet@production] osmdb: set old osmdb servers to spare for decom

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

Change 501457 merged by Bstorm:
[operations/puppet@production] osmdb: set old osmdb servers to spare for decom

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

Change 506485 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] cleanup puppet refs to labsdb1006/1007

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

Change 506485 merged by Andrew Bogott:
[operations/puppet@production] cleanup puppet refs to labsdb1006/1007

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

Andrew updated the task description. (Show Details)
Andrew added a subscriber: Andrew.
RobH updated the task description. (Show Details)

cookbooks.sre.hosts.decommission executed by robh@cumin1001 for hosts: labsdb1006.eqiad.wmnet

  • labsdb1006.eqiad.wmnet
    • Removed from Puppet master and PuppetDB
    • Downtimed host on Icinga
    • Downtimed management interface on Icinga
    • Removed from DebMonitor

cookbooks.sre.hosts.decommission executed by robh@cumin1001 for hosts: labsdb1007.eqiad.wmnet

  • labsdb1007.eqiad.wmnet
    • Removed from Puppet master and PuppetDB
    • Downtimed host on Icinga
    • Downtimed management interface on Icinga
    • Removed from DebMonitor

Change 525619 had a related patch set uploaded (by RobH; owner: RobH):
[operations/dns@master] labsdb100[67] production dns decom

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

Change 525619 merged by RobH:
[operations/dns@master] labsdb100[67] production dns decom

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

Change 525620 had a related patch set uploaded (by RobH; owner: RobH):
[operations/puppet@production] decom labsdb100[67]

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

Change 525620 merged by RobH:
[operations/puppet@production] decom labsdb100[67]

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

RobH removed RobH as the assignee of this task.Jul 25 2019, 6:30 PM
RobH removed a project: Patch-For-Review.
RobH updated the task description. (Show Details)
RobH removed a subscriber: RobH.

Change 597882 had a related patch set uploaded (by Cmjohnson; owner: Cmjohnson):
[operations/dns@master] Removing mgmt dns entries of asset tags associated w/labsdb1006/7

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

Change 597882 merged by Cmjohnson:
[operations/dns@master] Removing mgmt dns entries of asset tags associated w/labsdb1006/7

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

Cmjohnson updated the task description. (Show Details)
Cmjohnson added a subscriber: Cmjohnson.

Removed from rack, netbox updated