Page MenuHomePhabricator

Q1:rack/setup/install kubernetes2054
Closed, ResolvedPublic

Description

This task will track the racking, setup, and OS installation of kubernetes2054 since this server has arrived yet I am moving the OS installation from T342534 to here so we can resolve T342534

Hostname / Racking / Installation Details

Hostnames: kubernetes2025-kubernetes2054
Racking Proposal: B8/U1
Networking Setup: # of Connections: 1 , Speed: 1G . Vlan: Private. AAAA records: Y, Additional IP records: No
Partitioning/Raid: HW Raid: N, Partman recipe: echo partman/standard.cfg partman/raid1-2dev.cfg partman/custom/kubernetes-node-overlay.cfg ;;
OS Distro: Bullseye (default unless otherwise specified)
Sub-team Technical Contact: @akosiaris

kubernetes2054: (This is going to be the SuperMicro Server when it arrives)

Rack: B8
U: 44
Port: 44

  • - receive in system on procurement task 341265 & in coupa
  • - rack system with proposed racking plan (see above) & update netbox (include all system info plus location, state of planned)
  • - 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 from an active cumin host to commit
  • - bios/drac/serial setup/testing, see Lifecycle Steps & Automatic BIOS setup details
  • - firmware update (idrac, bios, network, raid controller)
  • - operations/puppet update - this should include updates to netboot.pp, and site.pp role(insetup) or cp systems use role(insetup::nofirm).
  • - OS installation & initital puppet run via sre.hosts.reimage cookbook.

Details

Related Changes in Gerrit:

Event Timeline

Papaul triaged this task as Medium priority.Sep 5 2023, 5:17 PM
Papaul moved this task from Backlog to Hardware Failure / Troubleshoot on the ops-codfw board.
Papaul moved this task from Hardware Failure / Troubleshoot to Racking Tasks on the ops-codfw board.
Jhancock.wm subscribed.

ran into an issue with og racking plan. power cables don't reach that far.

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

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

  • kubernetes2054 (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)
    • 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
    • The reimage failed, see the cookbook logs for the details

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

@Papaul the image took on this one, but I am not progressing past this point.

Attempt to run 'cookbooks.sre.hosts.reimage.ReimageRunner._populate_puppetdb.<locals>.poll_puppetdb' raised: Nagios_host resource with title kubernetes2054 not found yet

I know this can be a provisioning issue, but since this is a supermicro I can't run that cookbook. do you know of any additional settings in the bios that might need to be changed for this?
I checked the DNS records and they are correct.

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

  • kubernetes2054 (FAIL)
    • Downtimed on Icinga/Alertmanager
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • The reimage failed, see the cookbook logs for the details

[49/50, retrying in 147.00s] Attempt to run 'cookbooks.sre.hosts.reimage.ReimageRunner._populate_puppetdb.<locals>.poll_puppetdb' raised: Nagios_host resource with title kubernetes2054 not found yet
Exception raised while executing cookbook sre.hosts.reimage:
Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/spicerack/_menu.py", line 212, in run
  raw_ret = runner.run()
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 586, in run
  self._populate_puppetdb()
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 428, in _populate_puppetdb
  poll_puppetdb()
File "/usr/lib/python3/dist-packages/wmflib/decorators.py", line 210, in wrapper
  return func(*args, **kwargs)
File "/srv/deployment/spicerack/cookbooks/sre/hosts/reimage.py", line 423, in poll_puppetdb
  raise SpicerackError(f'Nagios_host resource with title {self.host} not found yet')

spicerack.exceptions.SpicerackError: Nagios_host resource with title kubernetes2054 not found yet
The reimage failed, see the cookbook logs for the details
Reimage executed with errors:

  • kubernetes2054 (FAIL)
    • Downtimed on Icinga/Alertmanager
    • Removed from Puppet and PuppetDB if present
    • Deleted any existing Puppet certificate
    • Removed from Debmonitor if present
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • The reimage failed, see the cookbook logs for the details

@Jhancock.wm when i was setting the other kubernetes node i had the line below for all the nodes, bit for some reason that line was replace with

1603 node /^kubernetes20(0[5-9]|[1-4][0-9]|5[012356])\.codfw\./ {
  1604     role(kubernetes::worker)
  1605 }

and this doesn't convert 2054 i will update site.pp with another patch. Thanks
https://gerrit.wikimedia.org/r/c/operations/puppet/+/951921/2/manifests/site.pp#1652

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

[operations/puppet@production] Add kubernetes2054 to site.pp

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

Change 964094 merged by Papaul:

[operations/puppet@production] Add kubernetes2054 to site.pp

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

Papaul claimed this task.
Papaul updated the task description. (Show Details)

@akosiaris this is ready for service.
Please note this is the first time we are putting a Supermicro server in production any feedback will be great .
Thanks.