Page MenuHomePhabricator

Decommission conf100[1-3]
Closed, ResolvedPublic

Description

conf1001:

  • - 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
  • - set role::spare::system in site.pp

START NON-INTERRUPPTABLE STEPS

  • - disable puppet on host
  • - power down host
  • - update status in netbox (inventory for decom, planned for spare)
  • - disable switch port
  • - switch port assignment noted on this task (for later removal) - conf1001:asw2-a-eqiad:ge-2/0/20
  • - 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-INTERRUPPTABLE 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.

conf1002:

  • - 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
  • - set role::spare::system in site.pp

START NON-INTERRUPPTABLE STEPS

  • - disable puppet on host
  • - power down host
  • - update status in netbox (inventory for decom, planned for spare)
  • - disable switch port
  • - switch port assignment noted on this task (for later removal) - conf1002:asw2-c-eqiad:ge-7/0/14
  • - 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-INTERRUPPTABLE 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.

conf1003:

  • - 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
  • - set role::spare::system in site.pp

START NON-INTERRUPPTABLE STEPS

  • - disable puppet on host
  • - power down host
  • - update status in netbox (inventory for decom, planned for spare)
  • - disable switch port conf1003:asw2-d-eqiad:UNKNOWN - THIS NEEDS TO BE DETERMINED BY ONSITE
  • - 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-INTERRUPPTABLE 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

• elukey triaged this task as Medium priority.

network ports disabled and noted here on task for later removal:

robh@asw2-a-eqiad> show interfaces descriptions | grep conf1001 
ge-2/0/20       up    down conf1001
robh@asw2-a-eqiad# show | compare 
[edit interfaces interface-range disabled]
     member ge-3/0/23 { ... }
+    member ge-2/0/20;
[edit interfaces interface-range vlan-private1-a-eqiad]
-    member ge-2/0/20;
robh@asw2-c-eqiad> show interfaces descriptions | grep conf1002 
ge-7/0/14       up    down conf1002
robh@asw2-c-eqiad# show | compare 
[edit interfaces interface-range vlan-private1-c-eqiad]
-    member ge-7/0/14;
[edit interfaces interface-range disabled]
     member ge-4/0/16 { ... }
+    member ge-7/0/14;

The conf1003 doesn't show up in the row d stack switching table, and isn't labeled on the switch. So I cannot tell what it is. @Cmjohnson will need to trace this network cable out directly and disable it.

Change 495010 had a related patch set uploaded (by RobH; owner: RobH):
[operations/dns@master] decom conf100[123] production dns

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

Change 495011 had a related patch set uploaded (by RobH; owner: RobH):
[operations/puppet@production] conf100[123] decom

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

Change 495010 merged by RobH:
[operations/dns@master] decom conf100[123] production dns

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

Change 495011 merged by RobH:
[operations/puppet@production] conf100[123] decom

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

RobH removed a project: Patch-For-Review.
RobH updated the task description. (Show Details)
RobH subscribed.

@RobH conf1001-conf1003 are still visible in debmonitor/puppetdb

@RobH conf1001-conf1003 are still visible in debmonitor/puppetdb

Indeed, I screwed up and didn't run the decom script, but checked off that I did (since it echos to here, its obvious I did not run it).

Since dns is removed, the script wont work, and I had to manually run the puppet and dbmonitor commands:

robh@puppetmaster1001:~$ sudo -i puppet node clean conf1001.eqiad.wmnet
Notice: Revoked certificate with serial 963
Notice: Removing file Puppet::SSL::Certificate conf1001.eqiad.wmnet at '/var/lib/puppet/server/ssl/ca/signed/conf1001.eqiad.wmnet.pem'
conf1001.eqiad.wmnet
robh@puppetmaster1001:~$ sudo -i puppet node clean conf1002.eqiad.wmnet
Notice: Revoked certificate with serial 214
Notice: Removing file Puppet::SSL::Certificate conf1002.eqiad.wmnet at '/var/lib/puppet/server/ssl/ca/signed/conf1002.eqiad.wmnet.pem'
conf1002.eqiad.wmnet
robh@puppetmaster1001:~$ sudo -i puppet node clean conf1003.eqiad.wmnet
Notice: Revoked certificate with serial 829
Notice: Removing file Puppet::SSL::Certificate conf1003.eqiad.wmnet at '/var/lib/puppet/server/ssl/ca/signed/conf1003.eqiad.wmnet.pem'
conf1003.eqiad.wmnet
robh@puppetmaster1001:~$ sudo -i puppet node deactivate conf1001.eqiad.wmnet
Submitted 'deactivate node' for conf1001.eqiad.wmnet with UUID 1e2e206f-f536-49b2-ad82-1f177104eb51
robh@puppetmaster1001:~$ sudo -i puppet node deactivate conf1002.eqiad.wmnet
Submitted 'deactivate node' for conf1002.eqiad.wmnet with UUID 2f5bcae8-a13b-43a6-bc0e-d1cd7ae926b7
robh@puppetmaster1001:~$ sudo -i puppet node deactivate conf1003.eqiad.wmnet
Submitted 'deactivate node' for conf1003.eqiad.wmnet with UUID 31d93837-ce43-44f9-9f7c-e22edcc4ab2d
robh@puppetmaster1001:~$
robh@neodymium:~$ sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/conf1001.eqiad.wmnet --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key
robh@neodymium:~$ sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/conf1002.eqiad.wmnet --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key
robh@neodymium:~$ sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/conf1003.eqiad.wmnet --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key
robh@neodymium:~$

This should remove it from all monitoring (via the puppet node commands). My apologies, not sure how that was overlooked, but the non echo of the script to here makes it pretty clear it was (plus it was still in monitoring as pointed out.)