Page MenuHomePhabricator

Decommission labsdb1006.eqiad.wmnet and labsdb1007.eqiad.wmnet
Open, NormalPublic

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, and assign to @RobH for followup on below 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)
  • - 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.
  • - IF RECLAIM: system added back to spares tracking (by onsite)

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, and assign to @RobH for followup on below 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)
  • - 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.
  • - IF RECLAIM: system added back to spares tracking (by onsite)

Event Timeline

Bstorm triaged this task as Normal 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

Bstorm updated the task description. (Show Details)Apr 5 2019, 12:10 AM

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

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

Bstorm updated the task description. (Show Details)Apr 5 2019, 12:21 AM
Bstorm updated the task description. (Show Details)Apr 5 2019, 12:40 AM
Bstorm updated the task description. (Show Details)Apr 24 2019, 5:47 PM
Andrew claimed this task.Apr 25 2019, 3:45 PM

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 reassigned this task from Andrew to RobH.Apr 25 2019, 4:37 PM
Andrew updated the task description. (Show Details)
Andrew added a subscriber: Andrew.
bd808 moved this task from Backlog to ToolsDB on the Data-Services board.May 30 2019, 7:02 PM