Page MenuHomePhabricator

Repurpose relforge hosts back to Elastic
Closed, ResolvedPublic

Description

In T386357 , I repurposed 3 Elastic hosts 1104-1106 to add to the Relforge cluster as part of our Elastic -> Opensearch migration .

Unfortunately, my previous statement that we could do without the three hosts seems to have been incorrect, as we have seen p95 latency tick up at busy times of the day (ref T387176 ). As such, I'm going to remove the borrowed hosts from Relforge and put them back into the production eqiad cluster.

Creating this ticket to:

  • Remove hosts from relforge (relforge1005-1007)
  • Add back into production eqiad cluster as elastic1108-1110
  • Confirm operation
  • Update T384966 with the correct server names (we're taking elastic1108-1110 for repurpose, so we'll need to step up by 3)
  • Create ticket for DC Ops to relabel the hosts

Event Timeline

Change #1124176 had a related patch set uploaded (by Bking; author: Bking):

[operations/puppet@production] relforge/elastic: repurpose relforge hosts as elastic

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

Change #1124176 merged by Bking:

[operations/puppet@production] relforge/elastic: repurpose relforge hosts as elastic

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

bking updated the task description. (Show Details)

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1108.eqiad.wmnet with OS bullseye

Mentioned in SAL (#wikimedia-operations) [2025-03-03T22:00:13Z] <bking@cumin2002> DONE (PASS) - Cookbook sre.hosts.downtime (exit_code=0) for 16:00:00 on relforge[1003-1004,1006-1007].eqiad.wmnet with reason: T387782

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1109.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1110.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1108.eqiad.wmnet with OS bullseye executed with errors:

  • elastic1108 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console elastic1108.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1109.eqiad.wmnet with OS bullseye executed with errors:

  • elastic1109 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console elastic1109.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1108.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1109.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1110.eqiad.wmnet with OS bullseye executed with errors:

  • elastic1110 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console elastic1110.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage was started by bking@cumin2002 for host elastic1110.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1108.eqiad.wmnet with OS bullseye completed:

  • elastic1108 (PASS)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • Found Nagios_host resource for this host in PuppetDB
    • Downtimed the new host on Icinga/Alertmanager
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202503032336_bking_3322720_elastic1108.out
    • configmaster.wikimedia.org updated with the host new SSH public key for wmf-update-known-hosts-production
    • Rebooted
    • Automatic Puppet run was successful
    • Forced a re-check of all Icinga services for the host
    • Icinga status is optimal
    • Icinga downtime removed
    • Updated Netbox data from PuppetDB

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1109.eqiad.wmnet with OS bullseye completed:

  • elastic1109 (PASS)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • Found Nagios_host resource for this host in PuppetDB
    • Downtimed the new host on Icinga/Alertmanager
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202503032340_bking_3322680_elastic1109.out
    • configmaster.wikimedia.org updated with the host new SSH public key for wmf-update-known-hosts-production
    • Rebooted
    • Automatic Puppet run was successful
    • Forced a re-check of all Icinga services for the host
    • Icinga status is optimal
    • Icinga downtime removed
    • Updated Netbox data from PuppetDB

Cookbook cookbooks.sre.hosts.reimage started by bking@cumin2002 for host elastic1110.eqiad.wmnet with OS bullseye completed:

  • elastic1110 (PASS)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • Found Nagios_host resource for this host in PuppetDB
    • Downtimed the new host on Icinga/Alertmanager
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202503032344_bking_3326625_elastic1110.out
    • configmaster.wikimedia.org updated with the host new SSH public key for wmf-update-known-hosts-production
    • Rebooted
    • Automatic Puppet run was successful
    • Forced a re-check of all Icinga services for the host
    • Icinga status is optimal
    • Icinga downtime removed
    • Updated Netbox data from PuppetDB

Change #1124203 had a related patch set uploaded (by Bking; author: Bking):

[operations/puppet@production] elastic: bring repurposed hosts back into elastic clusters

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

Change #1124203 merged by Bking:

[operations/puppet@production] elastic: bring repurposed hosts back into elastic clusters

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

bking updated the task description. (Show Details)

We've satisfied the AC of this ticket (see above), so I'm closing it out.