Migrate banco static objstorage to a dynamic objstorage instance
-
Free up some space for zfs pool -
swh/infra/puppet/puppet-swh-site!687 (merged): Add banco rancher deps -
Register banco in production cluster [1] -
Add expected affinity 'swh/objstorage-pathslicing=true' to banco [2] -
swh/infra/ci-cd/swh-charts!325 (merged): Deploy banco objstorage instance in dynamic infra -
swh/infra/ci-cd/swh-charts!326 (merged): Adapt multiplexer objstorage configuration to use the new instance -
Deploy -
Checks -
(manual) Decommission gunicorn-swh-objstorage -
swh/infra/puppet/puppet-swh-site!689 (merged): Decommission through puppet -
Deploy (puppet agent run on banco, then on pergamon to drop the icinga alerts) -
metallb: Avoid having banco be a cluster ip owner of the metallb pool (machine is connected to the cluster with a 1gb connection cable)
[2] Add affinity to node
environment=production; kubectl --context archive-$environment-rke2 label --overwrite node banco swh/objstorage-pathslicing=true
node/banco labeled
$ environment=production; kubectl --context archive-$environment-rke2 get node --show-labels | grep objstorage-pathslicing
banco Ready worker 8m16s v1.26.7+rke2r1 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/instance-type=rke2,beta.kubernetes.io/os=linux,cattle.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=banco,kubernetes.io/os=linux,node-role.kubernetes.io/worker=true,node.kubernetes.io/instance-type=rke2,plan.upgrade.cattle.io/system-agent-upgrader=28cf25be6a0e6cfbeca41bb84ea6e9569e82c812e77d4a9d6ad1600f,rke.cattle.io/machine=ddffc87e-f29e-4992-9b6f-fc10cc48bad2,swh/objstorage-pathslicing=true
saam Ready worker 7d18h v1.26.7+rke2r1 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/instance-type=rke2,beta.kubernetes.io/os=linux,cattle.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=saam,kubernetes.io/os=linux,node-role.kubernetes.io/worker=true,node.kubernetes.io/instance-type=rke2,plan.upgrade.cattle.io/system-agent-upgrader=28cf25be6a0e6cfbeca41bb84ea6e9569e82c812e77d4a9d6ad1600f,rke.cattle.io/machine=6fa27cbd-1f10-4464-90b5-e4bba59b0066,swh/objstorage-pathslicing=true,swh/storage-pathslicing=true
[1] Register node to cluster
$ curl -fL https://rancher.euwest.azure.internal.softwareheritage.org/system-agent-install.sh | sudo sh -s - --server https://rancher.euwest.azure.internal.softwareheritage.org --label 'cattle.io/os=linux' --token <redacted> --worker
[INFO] Label: cattle.io/os=linux
[INFO] Role requested: worker
[INFO] Using default agent configuration directory /etc/rancher/agent
[INFO] Using default agent var directory /var/lib/rancher/agent
[INFO] Successfully tested Rancher connection
[INFO] Downloading rancher-system-agent binary from https://rancher.euwest.azure.internal.softwareheritage.org/assets/rancher-system-agent-amd64
[INFO] Successfully downloaded the rancher-system-agent binary.
[INFO] Downloading rancher-system-agent-uninstall.sh script from https://rancher.euwest.azure.internal.softwareheritage.org/assets/system-agent-uninstall.sh
[INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
[INFO] Generating Cattle ID
[INFO] Successfully downloaded Rancher connection information
[INFO] systemd: Creating service file
[INFO] Creating environment file /etc/systemd/system/rancher-system-agent.env
[INFO] Enabling rancher-system-agent.service
Created symlink /etc/systemd/system/multi-user.target.wants/rancher-system-agent.service → /etc/systemd/system/rancher-system-agent.service.
[INFO] Starting/restarting rancher-system-agent.service
Refs. #5110 (closed)
Refs. #5214 (closed) (same plan as this issue)
Edited by Antoine R. Dumont