Since this is the first release of VOMS for SL5, only the upgrade of the mysql backend has been tested. Following the basic steps of a sample upgrade:
- dump the old database on the old VOMS server and transfer the file to the new node: mysqldump -h <OLD_HOSTNAME> -u <USER> -p --databases <DB_NAME> > <DUMP_FILE>
- mysql -u root -p < dbsa3test; mysql -u root -p < dbvomstest;
- grant all on *.* to 'root'@'voms-rd02-21.cnaf.infn.it' identified by 'admin';
- grant all on db_sa3test.* to 'sa3test_user'@'voms-rd02-21.cnaf.infn.it' identified by 'admin';
- grant all on db_sa3test.* to 'sa3test_user'@'localhost' identified by 'admin';
- grant all on db_vomstest.* to 'vomstest_user'@'voms-rd02-21.cnaf.infn.it' identified by 'admin';
- grant all on db_vomstest.* to 'vomstest_user'@'localhost' identified by 'admin';
- synchronize yaim conf files from the old machine with the new one, i.e. make sure username and password for the VO databases are the same
- launch yaim configuration after setting yaim variable VOMS_DB_DEPLOY to 'false' in the siteinfo.def or the services/glite-voms file
- re-start tomcat
- launch upgrade VO, for each VO as in the following: /opt/glite/sbin/voms-admin-configure upgrade --vo=sa3test
- register the VOMS host identity as a default admin -->/opt/glite/sbin/voms-db-deploy.py add-admin --vo sa3test --cert /etc/grid-security/hostcert.pem