<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=MigrateBEgridToEMI3_part1</id>
	<title>MigrateBEgridToEMI3 part1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=MigrateBEgridToEMI3_part1"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=MigrateBEgridToEMI3_part1&amp;action=history"/>
	<updated>2026-05-16T10:36:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=MigrateBEgridToEMI3_part1&amp;diff=175&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == VOMS servers upgrade from EMI2 to EMI3 == === Prepare the upgrade === ==== Always start from a clean situation ==== Before I started the upgrade, I&#039;ve made sure that th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=MigrateBEgridToEMI3_part1&amp;diff=175&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == VOMS servers upgrade from EMI2 to EMI3 == === Prepare the upgrade === ==== Always start from a clean situation ==== Before I started the upgrade, I&amp;#039;ve made sure that th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== VOMS servers upgrade from EMI2 to EMI3 ==&lt;br /&gt;
=== Prepare the upgrade ===&lt;br /&gt;
==== Always start from a clean situation ====&lt;br /&gt;
Before I started the upgrade, I&amp;#039;ve made sure that the voms servers were working, by doing a &amp;quot;voms-proxy-init --voms beapps&amp;quot; on a UI.&lt;br /&gt;
==== Backup ====&lt;br /&gt;
We make a backup of the configuration and of the voms database using the recipe given in the Italiangrid documentation :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@voms01 ~]# scp -r /root/* mon.iihe.ac.be:/userbackup/backup_voms_begrid_april2014/voms01/root/&lt;br /&gt;
[root@voms01 ~]# scp -r /etc/voms-admin mon.iihe.ac.be:/userbackup/backup_voms_begrid_april2014/voms01/etc/&lt;br /&gt;
[root@voms01 ~]# scp -r /etc/voms mon.iihe.ac.be:/userbackup/backup_voms_begrid_april2014/voms01/etc/&lt;br /&gt;
[root@voms01 ~]# mysqldump -uroot -p&amp;lt;MYSQL_ROOT_PASSWORD&amp;gt; --all-databases --flush-privileges &amp;gt; voms_database_dump.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We can now shut off the main voms server (voms01). Once the VM is off, we make a backup of the disk image. We will keep voms02 (fail-over voms server), running during the upgrade process, so that users are not disturbed. Restart voms01.&lt;br /&gt;
&lt;br /&gt;
=== Upgrade ===&lt;br /&gt;
==== EMI3 repositories configuration ====&lt;br /&gt;
You will find the detailed instructions [https://twiki.cern.ch/twiki/bin/view/EMI/GenericInstallationConfigurationEMI3#The_middleware_EMI_repositories here].&lt;br /&gt;
&lt;br /&gt;
Here is what I&amp;#039;ve done :&lt;br /&gt;
*Check that priorities are ok in the following file :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/yum/pluginconf.d/priorities.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Update of emi-release package :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/&lt;br /&gt;
wget http://emisoft.web.cern.ch/emisoft/dist/EMI/3/sl6/x86_64/base/emi-release-3.0.0-2.el6.noarch.rpm&lt;br /&gt;
yum localupdate emi-release-3.0.0-2.el6.noarch.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 Note: this will update the repo files in /etc/yum.repos.d&lt;br /&gt;
==== Upgrade ====&lt;br /&gt;
*Stop the voms services and tomcat :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service voms stop&lt;br /&gt;
service voms-admin stop&lt;br /&gt;
service tomcat6 stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Yum-update the voms packages :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum clean all&lt;br /&gt;
yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Tomcat is not needed anymore (Jetty is used instead) :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum remove tomcat6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Env variables no longer used :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unset VOMS_LOCATION_CONF VOMS_ADMIN_LOCATION_VAR VOMS_LOCATION VOMS_LOCATION_VAR VOMS_ADMIN_LOCATION&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 and remove any reference to these variables in /etc/profile.d/grid-env.sh :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a /etc/profile.d/grid-env.sh /etc/profile.d/grid-env.sh.bak&lt;br /&gt;
sed -i &amp;#039;/VOMS_LOCATION/d&amp;#039; /etc/profile.d/grid-env.sh&lt;br /&gt;
sed -i &amp;#039;/VOMS_ADMIB_LOCATION/d&amp;#039; /etc/profile.d/grid-env.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Configuring the voms-admin container ====&lt;br /&gt;
*The host, port and ssl information should already be set in the file :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/voms-admin/voms-admin-server.properties&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 As a reference, here is the actual content of the file :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
## The hostname where service is accepting requests&lt;br /&gt;
host=voms01.begrid.be&lt;br /&gt;
&lt;br /&gt;
## The port where the service will be listening for requests&lt;br /&gt;
port=8443&lt;br /&gt;
&lt;br /&gt;
# VOMS X.509 certificate and trust-anchors settings&lt;br /&gt;
## The service PEM encoded X.509 certificate&lt;br /&gt;
cert=/etc/grid-security/vomscert.pem&lt;br /&gt;
&lt;br /&gt;
## The service private key&lt;br /&gt;
key=/etc/grid-security/vomskey.pem&lt;br /&gt;
&lt;br /&gt;
## The trust anchors directory&lt;br /&gt;
trust_anchors.dir = /etc/grid-security/certificates&lt;br /&gt;
&lt;br /&gt;
# How ofter trust anchors are refreshed from the trust anchors dir &lt;br /&gt;
# (in seconds)&lt;br /&gt;
trust_anchors.refresh_period = 3600&lt;br /&gt;
&lt;br /&gt;
# Max number of concurrent connections&lt;br /&gt;
max_connections = 50&lt;br /&gt;
&lt;br /&gt;
# Max length of the request queue&lt;br /&gt;
max_request_queue_size = 200&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 Note : if you put &amp;quot;localhost&amp;quot; instead of &amp;quot;voms01.begrid.be&amp;quot; for the value of host, the service (port 8443) will start on the IPV6 127.0.0.1 address. As a result, you wont be able to access the service ! (A stupid mistake that costed me 2 hours of debugging !)&lt;br /&gt;
&lt;br /&gt;
*Put some limits on the user &amp;quot;voms&amp;quot; under which the process voms-admin is run, by adding to the file /etc/security/limits.conf :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
voms          soft    nofile  63536&lt;br /&gt;
voms          hard    nofile  63536&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Configuring memory for the VOMS Admin container :&lt;br /&gt;
 As we are supporting less than 10 VOs, it is not necessary to increase the memory for the Jetty container by modifying the VOMS_JAVA_OPTS in file /etc/sysconfig/voms-admin ;-)&lt;br /&gt;
==== Reconfiguring the VOs ====&lt;br /&gt;
*As YAIM is no more supported, we need to use voms-admin command to reconfigure the VOs (using information found in site-info.def) :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
voms-configure install --vo betest --hostname voms01.begrid.be --dbname betest --dbusername betest_admin --dbpassword darealpassword --core-port 18003 --mail-from grid_admin@listserv.vub.ac.be --smtp-host localhost&lt;br /&gt;
voms-configure install --vo beapps --hostname voms01.begrid.be --dbname beapps --dbusername beapps_admin --dbpassword darealpassword --core-port 18004 --mail-from grid_admin@listserv.vub.ac.be --smtp-host localhost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*We can now restart the voms services :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service voms start&lt;br /&gt;
service voms-admin start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Database upgrading :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
voms-configure upgrade --vo beapps&lt;br /&gt;
voms-configure upgrade --vo betest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Reconfiguring the information system ====&lt;br /&gt;
*Configuring the info provider :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
voms-config-info-providers -s BEgrid-BELNET -e&lt;br /&gt;
service bdii restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Checking that bdii service returns the good info for each vo :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ldapsearch -x -h localhost -p 2170 -b &amp;#039;GLUE2GroupID=resource,o=glue&amp;#039; objectCLass=GLUE2Service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== About the voms replication ===&lt;br /&gt;
We have one replicate called voms02, but since we haven&amp;#039;t found any procedure explaining how to upgrade a replicate voms server, I suggest that we re-create the replicate from scratch...&lt;br /&gt;
=== Useful documents ===&lt;br /&gt;
*https://github.com/italiangrid/voms/wiki/System-Administrator-guide&lt;br /&gt;
*https://wiki.egi.eu/wiki/MAN07_VOMS_Replication&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/EMI/GenericInstallationConfigurationEMI3&lt;br /&gt;
&lt;br /&gt;
== Site BDII upgrade from EMI2 to EMI3 ==&lt;br /&gt;
No special care (like backup) were taken since this service doesn&amp;#039;t have a database. Here are the steps we followed :&lt;br /&gt;
*copy the package emi-release-3.0.0-2.el6.noarch.rpm in the /root directory (this package was copied from voms01)&lt;br /&gt;
*update of emi yum.repos.d config files and update :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root&lt;br /&gt;
yum localinstall emi-release-3.0.0-2.el6.noarch.rpm&lt;br /&gt;
yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>