Page MenuHomeDevCentral

Install WindRiver replacement server
Open, HighPublic

Description

As Scaleway offers -20% for 36 months commitment, and as there are price drops on servers, we decided to switch to a PRO-4-L offer.

Other contenders was to keep a PRO-6-S or use a PRO-6-M, but S in't available and -M is only -8% for 12 months.

Plan is to install this new server and transfer data from relevant partitions with ZFS send/receive, then switch public IP address to this new machine.

  • Purchase order
  • Server delivery
  • NetBox description of server, IPs, interfaces
  • OS setup
  • ZFS pools configuration
  • Salt bootstrap
  • GRE tunnel (thanks @DorianWinty)
  • Salt roles
  • Transfer ZFS snapshots
  • Migrate DNS
  • Fix small issues encountered during Salt deployment
  • Rewire to .35 on Drake
  • Grafana
  • Prometheus

Event Timeline

dereckson triaged this task as High priority.Sep 12 2024, 20:55
dereckson created this task.

Ordered at Scaleway, on the same account than legacy WindRiver.

NetBox: https://netbox.nasqueron.org/dcim/devices/7/

OS installed, need tunnel GRE next.

ZFS configuration

  • Main pool: two disks, mirror, to be used for base system, /usr/local, /home, etc.
  • Secondary pool: one disk, to be used for /datacube
WindRiver (new)
$ zpool status
  pool: arcology
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        arcology    ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada0p3  ONLINE       0     0     0
            ada1p3  ONLINE       0     0     0

errors: No known data errors

  pool: greenway
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        greenway    ONLINE       0     0     0
          ada2      ONLINE       0     0     0

errors: No known data errors

Temporary GRE tunnel is 172.27.27.250 <> 172.27.27.36

dhclient6 Vault issue

$ salt windriver state.apply roles/core
windriver:
    Data failed to compile:
----------
    Rendering SLS 'base:roles/core.network.dhclient6' failed: Problem running salt function in Jinja template: Failed to read secret! KeyError: 'vault'; line 14

---
[...]

#   -------------------------------------------------------------
#   DHCPv6 client
#   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{% set duid_credentials = salt["credentials.get_duid_credentials"]() %}    <======================

{% if duid_credentials %}

      {% if grains["os"] == "FreeBSD" %}

[...]
---
ERROR: Minions returned with non-zero exit code

ZFS migration

ZFS documentation at https://agora.nasqueron.org/Operations_grimoire/ZFS

Active users are responsible to migrate their own directories.

Timeline

Legacy server order has been revoked and will be destroyed 2024-10-01.