<?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=CMSSWDeploymentInDetail</id>
	<title>CMSSWDeploymentInDetail - 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=CMSSWDeploymentInDetail"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=CMSSWDeploymentInDetail&amp;action=history"/>
	<updated>2026-04-20T15:28:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=CMSSWDeploymentInDetail&amp;diff=59&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  CMSSW Deployment Home  == CMSSW Deployment in Detail ==  &#039;&#039;release-installer.pl&#039;&#039; takes care of creating and submitting installation and removal jobs...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=CMSSWDeploymentInDetail&amp;diff=59&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; &lt;a href=&quot;/CMSSWDeployment&quot; title=&quot;CMSSWDeployment&quot;&gt; CMSSW Deployment Home&lt;/a&gt;  == CMSSW Deployment in Detail ==  &amp;#039;&amp;#039;release-installer.pl&amp;#039;&amp;#039; takes care of creating and submitting installation and removal jobs...&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;
[[CMSSWDeployment| CMSSW Deployment Home]]&lt;br /&gt;
&lt;br /&gt;
== CMSSW Deployment in Detail ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;release-installer.pl&amp;#039;&amp;#039; takes care of creating and submitting installation and removal jobs for sites where CMSSW releases are missing or obsolete. &lt;br /&gt;
It fetches the output of jobs afterwards and makes sure that the tags are published correctly at the sites.&lt;br /&gt;
&lt;br /&gt;
However, don&amp;#039;t use this script directly. Instead use the script &amp;#039;&amp;#039;ri.sh&amp;#039;&amp;#039;, which takes care of your grid certificates automatically. You can avoid another additional 5 key strokes by using &amp;#039;&amp;#039;ri&amp;#039;&amp;#039;, an alias for &amp;#039;&amp;#039;./ri.sh&amp;#039;&amp;#039;, created on sourcing &amp;#039;&amp;#039;CreateProxy.sh&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== The ri functions ===&lt;br /&gt;
&lt;br /&gt;
All commands are shown with the &amp;#039;&amp;#039;-c CEname&amp;#039;&amp;#039; option. With this option, the command is only executed for the site with the CEname in the argument. To run the command for all sites one after another, just leave away the &amp;#039;&amp;#039;-c CEname&amp;#039;&amp;#039; part&lt;br /&gt;
&lt;br /&gt;
==== Submit deployment jobs ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ri -sc CEname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Check whether the site is available for CMSSW deployment?&amp;lt;br&amp;gt;&lt;br /&gt;
    This is the case if&lt;br /&gt;
***No other deployment job is running (see further) &lt;br /&gt;
***The site does not need manual attention (see further)&lt;br /&gt;
***The site is no in maintenance&lt;br /&gt;
***There is no tag CMSSW_X_Y_Z_processing install at the site&lt;br /&gt;
&lt;br /&gt;
   If these requirements are not fulfilled the script stops&lt;br /&gt;
 2. Check which releases are missing and which are obsolete&amp;lt;br&amp;gt;&lt;br /&gt;
   This is done by answering following questions:&lt;br /&gt;
***Which releases are required and which are obsolete?&lt;br /&gt;
***Which versions are installed at the site?&lt;br /&gt;
***On which operating system does the site run the site? (CMSSW &amp;gt;= 3_4 requires SL5)&lt;br /&gt;
***What are the manual requirements for this site? (see further)&lt;br /&gt;
&lt;br /&gt;
   A list of missing and obsolete releases is displayed&lt;br /&gt;
&lt;br /&gt;
 3. Creating and installation and removal job&lt;br /&gt;
***For obsolete releases, &amp;#039;&amp;#039;ri&amp;#039;&amp;#039; sets the tag form CMSSW_X_Y_Z to CMSSW_X_Y_Z_remove_scheduled&lt;br /&gt;
***The obsolete release will only be removed on the first &amp;#039;&amp;#039;ri -sc CEname&amp;#039;&amp;#039; 100 hours after the original submission&lt;br /&gt;
***For missing releases a tag CMSSW_X_Y_Z_processing_install is added to the site&lt;br /&gt;
***A grid job with all installation and removal commands is send to the site&lt;br /&gt;
***At the end of the job, CMSSW_X_Y_Z_processing_install tags are replaced by CMSSW_X_Y_Z, the CMSSW_X_Y_Z_remove_scheduled tags are removed &lt;br /&gt;
      (if the release has been removed at least)&lt;br /&gt;
***The site gets a subdirectory named &amp;#039;&amp;#039;CEname&amp;#039;&amp;#039; in the directory &amp;#039;&amp;#039;~/cms/release-installer/running&amp;#039;&amp;#039; &lt;br /&gt;
      As long as this directory exists, no new job can be submitted to the site&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking the site&amp;#039;s missing and obsolete releases ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ri -dc CEname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
   executes point 1 and 2 of &amp;#039;&amp;#039;ri -sc CEname&amp;#039;&amp;#039; (see above)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking the status of running jobs ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ri -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Fetching the output of deployment jobs ==== &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ri -f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;~/cms/release-installer/running/CEname&amp;#039;&amp;#039; is moved to &amp;#039;&amp;#039;~/cms/release-installer/running/done/CEname&amp;#039;&amp;#039; where the output is stored&lt;br /&gt;
*If the job was not successful (exit code not 0) &amp;#039;&amp;#039;~/cms/release-installer/done/CEname&amp;#039;&amp;#039; is copied to &amp;#039;&amp;#039;~/cms/release-installer/running/done/CEname&amp;#039;&amp;#039;&lt;br /&gt;
   As long as this last directory exists, no jobs can be submitted to this site. On &amp;#039;&amp;#039;ri -sc CEname&amp;#039;&amp;#039; the message &amp;quot;site needs manual intervention&amp;quot; will be displayed&lt;br /&gt;
&lt;br /&gt;
The -f can be combined with the -s option:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ri -fs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, directly after fetching the output of the finished jobs, a new submission round will start.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Stealing others&amp;#039; deployment jobs ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   -6 otheruser&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
   Monitoring or fetching jobs submitted by others is not allowed by default.&amp;lt;br&amp;gt;&lt;br /&gt;
   It can be done using the option -6 (666 = EVIL), stealing actually the proxy of the job submitter.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=== Monitoring the overall deployment status ===&lt;br /&gt;
The most important tools to monitor the deployment status&lt;br /&gt;
*&amp;#039;&amp;#039;ri -d&amp;#039;&amp;#039; shows which releases are missing/obsolete at all sites(see above)&lt;br /&gt;
*&amp;#039;&amp;#039;ri -l&amp;#039;&amp;#039; shows at which sites jobs are running (see above)&lt;br /&gt;
*the [https://lcg-sam.cern.ch:8443/sam/sam.py sam pages] (Service Availability Monitoring)&amp;lt;br&amp;gt;&lt;br /&gt;
*the [http://lxarda16.cern.ch/dashboard/request.py/latestresultssmry?siteSelect3=T3T2T1&amp;amp;serviceTypeSelect3=vo&amp;amp;sites=T1_DE_KIT&amp;amp;sites=T1_ES_PIC&amp;amp;sites=T1_FR_CCIN2P3&amp;amp;sites=T1_IT_CNAF&amp;amp;sites=T1_TW_ASGC&amp;amp;sites=T1_UK_RAL&amp;amp;sites=T1_US_FNAL&amp;amp;sites=T2_AT_Vienna&amp;amp;sites=T2_BE_IIHE&amp;amp;sites=T2_BE_UCL&amp;amp;sites=T2_BR_SPRACE&amp;amp;sites=T2_BR_UERJ&amp;amp;sites=T2_CH_CSCS&amp;amp;sites=T2_CN_Beijing&amp;amp;sites=T2_DE_DESY&amp;amp;sites=T2_DE_RWTH&amp;amp;sites=T2_EE_Estonia&amp;amp;sites=T2_ES_CIEMAT&amp;amp;sites=T2_ES_IFCA&amp;amp;sites=T2_FI_HIP&amp;amp;sites=T2_FR_CCIN2P3&amp;amp;sites=T2_FR_GRIF_IRFU&amp;amp;sites=T2_FR_GRIF_LLR&amp;amp;sites=T2_FR_IPHC&amp;amp;sites=T2_HU_Budapest&amp;amp;sites=T2_IN_TIFR&amp;amp;sites=T2_IT_Bari&amp;amp;sites=T2_IT_Legnaro&amp;amp;sites=T2_IT_Pisa&amp;amp;sites=T2_IT_Rome&amp;amp;sites=T2_KR_KNU&amp;amp;sites=T2_PK_NCP&amp;amp;sites=T2_PL_Cracow&amp;amp;sites=T2_PL_Warsaw&amp;amp;sites=T2_PT_LIP_Lisbon&amp;amp;sites=T2_PT_NCG_Lisbon&amp;amp;sites=T2_RU_IHEP&amp;amp;sites=T2_RU_INR&amp;amp;sites=T2_RU_ITEP&amp;amp;sites=T2_RU_JINR&amp;amp;sites=T2_RU_PNPI&amp;amp;sites=T2_RU_RRC_KI&amp;amp;sites=T2_RU_SINP&amp;amp;sites=T2_TR_METU&amp;amp;sites=T2_TW_Taiwan&amp;amp;sites=T2_UA_KIPT&amp;amp;sites=T2_UK_London_Brunel&amp;amp;sites=T2_UK_London_IC&amp;amp;sites=T2_UK_SGrid_Bristol&amp;amp;sites=T2_UK_SGrid_RALPP&amp;amp;sites=T2_US_Caltech&amp;amp;sites=T2_US_Florida&amp;amp;sites=T2_US_MIT&amp;amp;sites=T2_US_Nebraska&amp;amp;sites=T2_US_Purdue&amp;amp;sites=T2_US_UCSD&amp;amp;sites=T2_US_Wisconsin&amp;amp;sites=T3_CH_PSI&amp;amp;sites=T3_CN_PKU&amp;amp;sites=T3_CO_Uniandes&amp;amp;sites=T3_DE_Karlsruhe&amp;amp;sites=T3_ES_Oviedo&amp;amp;sites=T3_FR_IPNL&amp;amp;sites=T3_GR_Demokritos&amp;amp;sites=T3_GR_IASA&amp;amp;sites=T3_GR_Ioannina&amp;amp;sites=T3_IT_Napoli&amp;amp;sites=T3_IT_Padova&amp;amp;sites=T3_IT_Perugia&amp;amp;sites=T3_IT_Trieste&amp;amp;sites=T3_TW_NCU&amp;amp;sites=T3_UK_London_QMUL&amp;amp;sites=T3_UK_London_RHUL&amp;amp;sites=T3_UK_London_UCL&amp;amp;sites=T3_UK_ScotGrid_ECDF&amp;amp;sites=T3_UK_ScotGrid_GLA&amp;amp;sites=T3_UK_SGrid_Oxford&amp;amp;sites=T3_US_Colorado&amp;amp;sites=T3_US_Cornell&amp;amp;sites=T3_US_FIT&amp;amp;sites=T3_US_FNALLPC&amp;amp;sites=T3_US_FNALXEN&amp;amp;sites=T3_US_Omaha&amp;amp;sites=T3_US_Rutgers&amp;amp;sites=T3_US_TTU&amp;amp;sites=T3_US_UCD&amp;amp;sites=T3_US_UCLA&amp;amp;sites=T3_US_UCR&amp;amp;sites=T3_US_UMD&amp;amp;sites=T3_US_Vanderbilt&amp;amp;services=CE&amp;amp;tests=1301&amp;amp;tests=133&amp;amp;tests=111&amp;amp;tests=6&amp;amp;tests=1261&amp;amp;tests=76&amp;amp;tests=64&amp;amp;tests=20&amp;amp;exitStatus=all sam dashboard]&lt;br /&gt;
   a nice overview of the sam pages&lt;br /&gt;
*releases.html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ./publish_to_html.pl ~/.globus_&amp;lt;YourUserName&amp;gt;/cert.p12 releases.html&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
   This script will create a very convenient overview of the deployment status, showing for each site which releases are missing, how old the latest sam test is and which operating system is installed.&amp;lt;br&amp;gt;&lt;br /&gt;
   You want to have the correct lay out, so download the .css file to the same directory as releases.html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   wget http://www.desy.de/~wbehrenh/releases.css .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*check the published tags at a site&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   lcg-tags --vo cms --ce CEname --list &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*plot the performance of the CMSSW installation&lt;br /&gt;
   &amp;lt;pre&amp;gt;&lt;br /&gt;
   ./showtimes.pl CMSSW_X_Y_Z &amp;gt; plots/CMSSW_X_Y_Z.dat&lt;br /&gt;
   ./showtimes.pl CMSSW_A_B_C &amp;gt; plots/CMSSW_A_B_C.dat&lt;br /&gt;
   cd plots&lt;br /&gt;
   root -b -q -l &amp;#039;plottimes.C+(&amp;quot;CMSSW_X_Y_Z,CMSSW_A_B_C&amp;quot;,&amp;quot;lukas.png&amp;quot;)&amp;#039;&lt;br /&gt;
   &amp;lt;/pre&amp;gt;&lt;br /&gt;
      &lt;br /&gt;
----&lt;br /&gt;
=== Editing Tags ===&lt;br /&gt;
*add tags for releases CMSSW_A_B_C and CMSSW_D_E_F at site CEname:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   lcg-tags --vo cms --ce CEname --add --tags VO-cms-CMSSW_A_B_C,VO-cms-CMSSW_D_E_F  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*remove tags for releases CMSSW_A_B_C and CMSSW_D_E_F site CEname&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   lcg-tags --vo cms --ce CEname --remove --tags VO-cms-CMSSW_A_B_C,VO-cms-CMSSW_D_E_F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
=== Asking site administrators for support ===&lt;br /&gt;
Open a [https://savannah.cern.ch savannah] ticket&lt;br /&gt;
*login&lt;br /&gt;
*go to [https://savannah.cern.ch/my/groups.php my groups]&lt;br /&gt;
*on the page for the appropriate group there is a link to open a new ticket&lt;br /&gt;
***Category: Facility Operations&lt;br /&gt;
***Assigned to: there should be an entry like &amp;#039;&amp;#039;cmscompinfrasup-&amp;lt;sitename&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
***Use GGUS: no&lt;br /&gt;
***Site: site&lt;br /&gt;
***Summary: drop &amp;quot;central CMSSW installation&amp;quot;, the site&amp;#039;s name &amp;quot;T1_CO_BLA&amp;quot;, and the problem&lt;br /&gt;
***Add &amp;quot;cmscompinfrasup-cmsswdeploy&amp;quot; to &amp;quot;Mail Notification Carbon-Copy List&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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>