access_Accessdevupgrade - ACCESS-NRI/accessdev-Trac-archive GitHub Wiki

Task list for upgrade of Accessdev on 6/5/2014

  1. Email notification of downtime Friday 2nd of May.
  2. System message on accessdev notifying users of shutdown.
  3. Prevent users from logging in
echo "System upgrade" >/etc/nologin
  1. Stop services that may lead to data modification (any others?)
service crond stop
service httpd stop
service rosa stop
# Stop UMUI
killall -u access
  1. Back up UMUI database, rosie database, trac (anything else?)
tar cvzf /g/data1/access.dev/backups/umui_DBSE_bkp_20140506.tar.gz -C /home umui_DBSE
svnadmin dump /home/access-svn/roses_au_svn /g/data1/access.dev/backups/rosa_dbse_bkp_20140506
tar cvzf /g/data1/access.dev/backups/trac_bkp_20140506.tar.gz -C /home trac
  1. Change file permissions to use new system ldap accounts
chown -R ju7_umui:ju7 /home/umui_DBSE
  1. Delete old UMUI cron entry
crontab -e -u access
  1. Shutdown VM
rm /etc/nologin
poweroff
  1. Delete floating ip from accessdev (leaving old accessdev intact)
nova remove-floating-ip accessdev.nci.org.au 130.56.244.72
nova rename accessdev.nci.org.au old-accessdev.nci.org.au
  1. Fast forward chris's changes into the master branch
git checkout master
git pull --ff-only origin cma900/dev
pushd modules
rm -fr augeas concat epel firewall inifile postgresql \
  stdlib vcsrepo
popd
git submodule sync
git submodule update --init
git push origin master
  1. Boot up the new instance of accessdev
./tools/nova-boot \
  --name accessdev.nci.org.au \
  --ip 130.56.244.72 \
  --install-updates \
  -- \
  --flavor m1.large.2.c5305d7812b797de8d3d2d0b40147b7b87036fc0 \
  --security-groups ssh,http,umui,ping
  1. Fix broken Postfix service state caused by RPM update (on VM):
kill $(pgrep -f /usr/libexec/postfix/master)
service postfix start
puppet apply /puppet/manifests/site.pp
  1. Testing of new accessdev system as per AccessDevQAChecklist
  2. Related tasks on other systems
  • Upgrade cylc to version 5.4.12 on raijin, twister and ngamai.
    • For Raijin: UpgradingRoseCylc
    • For Bureau machines: UpgradingRoseCylc