Page MenuHomeSoftware Heritage

Decommission boatbucket server
Closed, MigratedEdits Locked

Description

This server is not used anymore and can be removeed.

The home dir of alphare and boatbucket must be backuped

Event Timeline

vsellier changed the task status from Open to Work in Progress.Dec 14 2021, 4:17 PM
vsellier triaged this task as Low priority.
vsellier created this task.

home directories backuped:

root@boatbucket:/home# ls -d alphare/* alphare/.bash_history boatbucket/* boatbucket/.bash_history | xargs tar cvjf boatbucket-backup-2021-12-14.tar.bz2
...

and saved on saam

root@boatbucket:/home# sudo -u boatbucket cp -v boatbucket-backup-2021-12-14.tar.bz /srv/boatbucket/
'boatbucket-backup-2021-12-14.tar.bz' -> '/srv/boatbucket/boatbucket-backup-2021-12-14.tar.bz'
root@boatbucket:/home# ls -al /srv/boatbucket/boatbucket-backup-2021-12-14.tar.bz 
-rw-r--r-- 1 boatbucket boatbucket 124170240 Dec 14 15:36 /srv/boatbucket/boatbucket-backup-2021-12-14.tar.bz
root@boatbucket:/home# mount | grep boatbucket
systemd-1 on /srv/boatbucket type autofs (rw,relatime,fd=54,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13290)
saam:/srv/storage/space/mirrors/boatbucket on /srv/boatbucket type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.100.107,local_lock=none,addr=192.168.100.109)
  • node decommissioned from puppet:
root@pergamon:~# /usr/local/sbin/swh-puppet-master-decommission boatbucket.internal.softwareheritage.org
+ puppet node deactivate boatbucket.internal.softwareheritage.org
Submitted 'deactivate node' for boatbucket.internal.softwareheritage.org with UUID bf7bd0ea-f1ae-442f-b840-5bb1adb261f3
+ puppet node clean boatbucket.internal.softwareheritage.org
Notice: Revoked certificate with serial 224
Notice: Removing file Puppet::SSL::Certificate boatbucket.internal.softwareheritage.org at '/var/lib/puppet/ssl/ca/signed/boatbucket.internal.softwareheritage.org.pem'
boatbucket.internal.softwareheritage.org
+ puppet cert clean boatbucket.internal.softwareheritage.org
Warning: `puppet cert` is deprecated and will be removed in a future release.
   (location: /usr/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')
Notice: Revoked certificate with serial 224
+ systemctl restart apache2
root@pergamon:~# puppet agent --test
  • server manually removed from proxmox / uffizi