Page MenuHomePhabricator

Q2:(Need By: TBD) rack/setup/install prometheus200[56]
Closed, ResolvedPublic

Description

This task will track the racking, setup, and OS installation of <enter the FQDN/hostname of the hosts being setup here>

Hostname / Racking / Installation Details

Hostnames: prometheus200[56]
Racking Proposal: Different rows than one another
Networking/Subnet/VLAN/IP: 1g connection to private1 vlan
Partitioning/Raid: partman/standard.cfg partman/raid10-6dev.cfg partman/custom/prometheus.cfg (note this is experimental, I (Filippo) can take of tweaking the recipe)
OS Distro: Bullseye

Per host setup checklist

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

prometheus2005:

  • - receive in system on procurement task T291979 & in coupa
  • - rack system with proposed racking plan (see above) & update netbox (include all system info plus location, state of planned)
  • - bios/drac/serial setup/testing
  • - add mgmt dns (asset tag and hostname) and production dns entries in netbox, run cookbook sre.dns.netbox.
  • - network port setup via netbox, run homer to commit
  • - firmware update (idrac, bios, network, raid controller)
  • - operations/puppet update - this should include updates to install_server dhcp and netboot, and site.pp role(insetup) or cp systems use role(insetup::nofirm).
  • - OS installation & initital puppet run via wmf-auto-reimage or wmf-auto-reimage-host
  • - host state in netbox set to staged

prometheus2006:

  • - receive in system on procurement task T291979 & in coupa
  • - rack system with proposed racking plan (see above) & update netbox (include all system info plus location, state of planned)
  • - bios/drac/serial setup/testing
  • - add mgmt dns (asset tag and hostname) and production dns entries in netbox, run cookbook sre.dns.netbox.
  • - network port setup via netbox, run homer to commit
  • - firmware update (idrac, bios, network, raid controller)
  • - operations/puppet update - this should include updates to install_server dhcp and netboot, and site.pp role(insetup) or cp systems use role(insetup::nofirm).
  • - OS installation & initital puppet run via wmf-auto-reimage or wmf-auto-reimage-host
  • - host state in netbox set to staged

Once the system(s) above have had all checkbox steps completed, this task can be resolved.

Event Timeline

RobH moved this task from Backlog to Racking Tasks on the ops-codfw board.
RobH added subscribers: Papaul, fgiunchedi.

@fgiunchedi,

I had to make some assumptions in the racking details section of this task. Can you please review it all, correct as needed, and when done assign this task to @Papaul? Thanks!

RobH added a parent task: Unknown Object (Task).Oct 25 2021, 8:29 PM
RobH unsubscribed.

Change 734564 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] install_server: simplify custom prometheus.cfg

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

Change 734564 merged by Filippo Giunchedi:

[operations/puppet@production] install_server: simplify custom prometheus.cfg

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

Change 740276 had a related patch set uploaded (by Papaul; author: Papaul):

[operations/puppet@production] Add prometheus200[56] to site.pp and netboot.cfg

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

Change 740276 merged by Papaul:

[operations/puppet@production] Add prometheus200[56] to site.pp and netboot.cfg

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

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

Change 740277 had a related patch set uploaded (by Papaul; author: Papaul):

[operations/puppet@production] Fix partman for prometheus200[56]

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

Change 740277 merged by Papaul:

[operations/puppet@production] Fix partman for prometheus200[56]

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

Cookbook cookbooks.sre.hosts.reimage started by pt1979@cumin2002 for host prometheus2005.codfw.wmnet with OS bullseye executed with errors:

  • prometheus2005 (FAIL)
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • The reimage failed, see the cookbook logs for the details

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

Cookbook cookbooks.sre.hosts.reimage started by pt1979@cumin2002 for host prometheus2005.codfw.wmnet with OS bullseye executed with errors:

  • prometheus2005 (FAIL)
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • The reimage failed, see the cookbook logs for the details

prometheus2005 in row B

`

    ┌───────────┤ [!!] Download debconf preconfiguration file ├────────────┐
    │                                                                      │
    │ The netmask is used to determine which machines are local to your    │
    │ network.  Consult your network administrator if you do not know the  │
    │ value.  The netmask should be entered as four numbers separated by   │
    │ periods.                                                             │
    │                                                                      │
    │ Netmask:                                                             │
    │                                                                      │
    │ 255.255.255.0_______________________________________________________ │
    │                                                                      │
    │     <Go Back>                                         <Continue>     │
    │

Change 740531 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] install_server: fix partman config for new prometheus hosts

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

Thanks @Papaul for taking care of this! I've noticed a typo in netboot.cfg for prometheus which I think might explain the error you are seeing, please check the related patch above

Change 740531 merged by Filippo Giunchedi:

[operations/puppet@production] install_server: fix partman config for new prometheus hosts

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

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

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

  • prometheus2005 (PASS)
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • 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
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202111221325_pt1979_1461051_prometheus2005.out
    • Checked BIOS boot parameters are back to normal
    • 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 -> staged

Change 740596 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] install_server: tweak reserved space for prometheus

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

Change 740596 merged by Filippo Giunchedi:

[operations/puppet@production] install_server: tweak reserved space for prometheus

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

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

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

  • prometheus2006 (PASS)
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • 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
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202111221454_pt1979_1472331_prometheus2006.out
    • Checked BIOS boot parameters are back to normal
    • 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 -> staged

This is complete on on end.

Change 740633 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] install_server: tweak reserved space for prometheus

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

Change 740633 merged by Filippo Giunchedi:

[operations/puppet@production] install_server: tweak reserved space for prometheus

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