Page MenuHomeSoftware Heritage

Migrate kelvingrove (keycloak) to bullseye
Closed, MigratedEdits Locked

Description

This is the plain migration of the node from buster to bullseye
and not the upgrade of keycloak (see dedicated task [1]).

[1] T3171

Event Timeline

ardumont triaged this task as Normal priority.Dec 15 2021, 10:02 AM
ardumont created this task.
vsellier changed the task status from Open to Work in Progress.Dec 21 2021, 2:13 PM
vsellier claimed this task.

The tests with vagrant are not showing any issue with puppet / keycloak after the upgrade so let's proceed to the upgrade.

  • before:
root@kelvingrove:~# uname -a
Linux kelvingrove 5.9.0-0.bpo.2-cloud-amd64 #1 SMP Debian 5.9.6-1~bpo10+1 (2020-11-19) x86_64 GNU/Linux
root@kelvingrove:~# uptime
 14:36:49 up 10 days, 23:18,  1 user,  load average: 0.02, 0.19, 0.11
root@kelvingrove:~# task=T3807
root@kelvingrove:/etc# puppet agent --disable "$task: dist-upgrade to bullseye"
root@kelvingrove:/etc# sed -i -e 's/buster/bullseye/;s,bullseye/updates,bullseye-security,' /etc/apt/sources.list.d/*

root@kelvingrove:/etc# puppet agent --disable "$task: dist-upgrade to bullseye"
root@kelvingrove:/etc# sed -i -e 's/buster/bullseye/;s,bullseye/updates,bullseye-security,' /etc/apt/sources.list.d/*
root@kelvingrove:/etc# git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   apt/sources.list.d/backports.list
	modified:   apt/sources.list.d/debian-security.list
	modified:   apt/sources.list.d/debian-updates.list
	modified:   apt/sources.list.d/debian.list
	modified:   apt/sources.list.d/hwraid_levert.list
	modified:   apt/sources.list.d/icinga-stable-release.list
	modified:   apt/sources.list.d/softwareheritage.list

no changes added to commit (use "git add" and/or "git commit -a")
root@kelvingrove:/etc# git add .
root@kelvingrove:/etc# git commit -m "$task: Migrate sources.list to bullseye"
root@kelvingrove:/etc# apt update
root@kelvingrove:/etc# CMD="apt -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold"
root@kelvingrove:/etc# export DEBIAN_FRONTEND=noninteractive
root@kelvingrove:/etc# $CMD upgrade
root@kelvingrove:/etc# $CMD dist-upgrade

After the reboot

root@kelvingrove:~# apt autoremove
root@kelvingrove:~# puppet agent --enable; puppet agent --test

root@kelvingrove:~# uptime
15:02:32 up 9 min, 2 users, load average: 1.09, 0.87, 0.41
root@kelvingrove:~# uname -a
Linux kelvingrove 5.10.0-10-cloud-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux