jessie upgrade checklist
authorPeter Palfrader <peter@palfrader.org>
Sun, 26 Apr 2015 09:36:33 +0000 (11:36 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 26 Apr 2015 09:36:33 +0000 (11:36 +0200)
input/howto/upgrade-to-jessie.mdwn [new file with mode: 0644]
input/index.mdwn

diff --git a/input/howto/upgrade-to-jessie.mdwn b/input/howto/upgrade-to-jessie.mdwn
new file mode 100644 (file)
index 0000000..9463dd4
--- /dev/null
@@ -0,0 +1,66 @@
+# Upgrade from squeeze to wheezy
+
+Make sure to coordinate with whoever uses the host, be it the buildd
+operator, the QA team, the ftp team or just announce it if it's a
+general developer box.
+
+on buildds:
+
+       cd ~buildd
+       sudo su - buildd
+       touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit
+
+       now wait for the buildd to quit
+
+upgrade stuff:
+
+* answer question to libc6 "Restart services automaticaly" with "yes"
+* say no to other other questions.
+
+commands:
+
+       sed -i "s#wheezy#jessie#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
+       dpkg --clear-avail &&
+       if [ -e /etc/apt/sources.list.d/buildd.debian.org.list ]; then
+               sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list
+       fi &&
+       apt-get update &&
+       apt-get install dpkg apt samhain &&
+       service samhain stop &&
+       apt-get dist-upgrade &&
+       rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
+       samhain --foreground -t init -p none -s none -l none -m none &&
+       (puppet agent -t || true) &&
+       apt-get dist-upgrade &&
+       apt-get --purge autoremove &&
+       while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
+       dpkg --clear-avail &&
+       apt-get clean
+
+
+purge removed packages
+
+       dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
+       echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
+       echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
+
+more clean ups:
+
+       /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
+       (apt-get purge them)
+       apt-get --purge autoremove
+
+re-init samhain
+
+       (puppet agent -t || true) &&
+       (puppet agent -t || true) &&
+       samhain --foreground -t init -p none -s none -l none -m none
+
+Add the new ed25519 ssh host key:
+       run
+         echo; echo "cat << EOF | ldapmodify -ZZ -x -D uid="\$USER",ou=users,dc=debian,dc=org -W -h db.debian.org"; echo "dn: host=`hostname`,ou=hosts,dc=debian,dc=org"; echo "changetype: modify"; echo "add: sshRSAHostKey"; echo "sshRSAHostKey: `cat /etc/ssh/ssh_host_ed25519_key.pub `"; echo; echo "EOF"; echo
+       and paste it on draghi.
+       
+update dsa-nagios.git (add host to jessie hostgroup)
+
+reboot.
index f29f378..00238c3 100644 (file)
@@ -42,6 +42,7 @@ ticket.
 * [[howto/upgrade-to-lenny]]
 * [[howto/upgrade-to-squeeze]]
 * [[howto/upgrade-to-wheezy]]
+* [[howto/upgrade-to-jessie]]
 * [[howto/install-ganeti]]: ganeti related documentation
 * [[howto/ilo-https]]
 * [[howto/backup]]