Page MenuHomePhabricator

Q2:rack/setup/install restbase203[6-8]
Closed, ResolvedPublic

Description

This task will track the racking, setup, and OS installation of restbase203[6-8]

Hostname / Racking / Installation Details

Hostnames: restbase203[6-8]
Racking Proposal: restbase2036 anywhere in row B / restbase2037 anywhere in row C / restbase2038 anywhere in row D
Networking Setup: # of Connections: 1 - Speed: 1G - VLAN: Private
OS Distro: Bullseye
Sub-team Technical Contact: @Eevans

Per host setup checklist

Each host should have its own setup checklist copied and pasted into the list below.

restbase2036
  • Receive in system on procurement task T376158 & in Coupa
  • Rack system with proposed racking plan (see above) & update Netbox (include all system info plus location, state of planned)
  • Run the Provision a server's network attributes Netbox script - Note that you must run the DNS and Provision cookbook after completing this step
  • Immediately run the sre.dns.netbox cookbook
  • Immediately run the sre.hosts.provision cookbook
  • Run the sre.hardware.upgrade-firmware cookbook
  • Update the operations/puppet repo - this should include updates to preseed.yaml, and site.pp with roles defined by service group: https://wikitech.wikimedia.org/wiki/SRE/Dc-operations
  • Run the sre.hosts.reimage cookbook
restbase2037
  • Receive in system on procurement task T376158 & in Coupa
  • Rack system with proposed racking plan (see above) & update Netbox (include all system info plus location, state of planned)
  • Run the Provision a server's network attributes Netbox script - Note that you must run the DNS and Provision cookbook after completing this step
  • Immediately run the sre.dns.netbox cookbook
  • Immediately run the sre.hosts.provision cookbook
  • Run the sre.hardware.upgrade-firmware cookbook
  • Update the operations/puppet repo - this should include updates to preseed.yaml, and site.pp with roles defined by service group: https://wikitech.wikimedia.org/wiki/SRE/Dc-operations
  • Run the sre.hosts.reimage cookbook
restbase2038
  • Receive in system on procurement task T376158 & in Coupa
  • Rack system with proposed racking plan (see above) & update Netbox (include all system info plus location, state of planned)
  • Run the Provision a server's network attributes Netbox script - Note that you must run the DNS and Provision cookbook after completing this step
  • Immediately run the sre.dns.netbox cookbook
  • Immediately run the sre.hosts.provision cookbook
  • Run the sre.hardware.upgrade-firmware cookbook
  • Update the operations/puppet repo - this should include updates to preseed.yaml, and site.pp with roles defined by service group: https://wikitech.wikimedia.org/wiki/SRE/Dc-operations
  • Run the sre.hosts.reimage cookbook

Event Timeline

RobH moved this task from Backlog to Racking Tasks on the ops-codfw board.
RobH unsubscribed.

@Eevans,

Please note the workflow for racking tasks has changed this fiscal year, and we now require the puppet updates from the sub-team receiving the new servers. This is due to the majority of DC Ops not having root/merge puppet rights.

Please update the site.pp file with the insetup role for your team (detailed on https://wikitech.wikimedia.org/wiki/SRE/Dc-operations) and add the new servers to preseed.yml for partition info.

If possible, please reference this task number in your patch set, so it is clear when complete. Once complete, just un-assign yourself (leaving no assignee) for this task and once the hardware arrives on-sites will claim this task for racking and setup.

Thank you!

RobH mentioned this in Unknown Object (Task).Oct 22 2024, 10:58 PM
RobH added a parent task: Unknown Object (Task).

Change #1082301 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] restbase203[6-8]: initial setup

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

Change #1082301 merged by Eevans:

[operations/puppet@production] restbase203[6-8]: initial setup

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

Change #1082302 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] Configure restbase10[34-42] for partition reuse

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

Change #1082302 merged by Eevans:

[operations/puppet@production] Configure restbase10[34-42] for partition reuse

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

Cookbook cookbooks.sre.hosts.reimage was started by jhancock@cumin2002 for host restbase2036.codfw.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage was started by jhancock@cumin2002 for host restbase2038.codfw.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by jhancock@cumin2002 for host restbase2036.codfw.wmnet with OS bullseye completed:

  • restbase2036 (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 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/202411152110_jhancock_1362097_restbase2036.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
    • Updated Netbox status planned -> active
    • The sre.puppet.sync-netbox-hiera cookbook was run successfully

Cookbook cookbooks.sre.hosts.reimage started by jhancock@cumin2002 for host restbase2038.codfw.wmnet with OS bullseye completed:

  • restbase2038 (WARN)
    • 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 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/202411152113_jhancock_1362048_restbase2038.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
    • Updated Netbox status planned -> active
    • Failed to run the sre.puppet.sync-netbox-hiera cookbook, run it manually

Cookbook cookbooks.sre.hosts.reimage was started by jhancock@cumin2002 for host restbase2037.codfw.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by jhancock@cumin2002 for host restbase2037.codfw.wmnet with OS bullseye completed:

  • restbase2037 (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 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/202411182000_jhancock_2039450_restbase2037.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
    • Updated Netbox status planned -> active
    • The sre.puppet.sync-netbox-hiera cookbook was run successfully
Jhancock.wm updated the task description. (Show Details)

@Eevans this is complete!

Change #1101237 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/services/restbase/deploy@master] Add RESTBase servers missing from scap targets

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

Change #1101237 merged by Tim Starling:

[mediawiki/services/restbase/deploy@master] Add RESTBase servers missing from scap targets

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

Mentioned in SAL (#wikimedia-operations) [2024-12-09T05:23:42Z] <tstarling@deploy2002> Started deploy [restbase/deploy@8184836]: also deploy to restbase2036-9 T380726 T377896

Mentioned in SAL (#wikimedia-operations) [2024-12-09T05:39:49Z] <tstarling@deploy2002> Finished deploy [restbase/deploy@8184836]: also deploy to restbase2036-9 T380726 T377896 (duration: 16m 06s)