<?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=Argus</id>
	<title>Argus - 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=Argus"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Argus&amp;action=history"/>
	<updated>2026-04-20T09:47:12Z</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=Argus&amp;diff=21&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == ARGUS server and glexec on the workernodes == PageOutline === ARGUS cheat-sheet ===  *General service reference wiki for argus server: https://twiki.cern.ch/twiki/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Argus&amp;diff=21&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == ARGUS server and glexec on the workernodes == &lt;a href=&quot;/index.php?title=PageOutline&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;PageOutline (page does not exist)&quot;&gt;PageOutline&lt;/a&gt; === ARGUS cheat-sheet ===  *General service reference wiki for argus server: https://twiki.cern.ch/twiki/...&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;
== ARGUS server and glexec on the workernodes ==&lt;br /&gt;
[[PageOutline]]&lt;br /&gt;
=== ARGUS cheat-sheet ===&lt;br /&gt;
&lt;br /&gt;
*General service reference wiki for argus server: https://twiki.cern.ch/twiki/bin/view/EGEE/GLiteARGUS&lt;br /&gt;
*Below follows some site specific configurations&lt;br /&gt;
&lt;br /&gt;
==== Start/stop services ====&lt;br /&gt;
&lt;br /&gt;
*Beware: the order of starting/stopping the services is important!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/argus/pap/sbin/pap-standalone start #needs to be started before pdp&lt;br /&gt;
/opt/argus/pdp/sbin/pdpctl.sh start&lt;br /&gt;
/opt/argus/pepd/sbin/pepdctl.sh start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*In case a new set of policies needs to be applied the pdp component needs to be reloaded:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/pdp reloadpolicy &lt;br /&gt;
/etc/init.d/pepd clearcache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Log files and monitoring ====&lt;br /&gt;
&lt;br /&gt;
*Log files on the argus server&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/argus/pap/logs/pap-standalone.log&lt;br /&gt;
/opt/argus/pdp/logs/&lt;br /&gt;
/opt/argus/pepd/logs/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Links to monitoring pages&lt;br /&gt;
**https://sam-glexec.cern.ch/nagios/cgi-bin/status.cgi?servicegroup=SERVICE_CREAM-CE&amp;amp;style=detail&lt;br /&gt;
**https://sam-cms.cern.ch/nagios/cgi-bin/status.cgi?servicegroup=SERVICE_CREAM-CE&amp;amp;style=detail&lt;br /&gt;
&lt;br /&gt;
*The log files tend to become rather big&lt;br /&gt;
&lt;br /&gt;
==== Configuration ====&lt;br /&gt;
&lt;br /&gt;
*Configuration is done through *.ini files in following directories&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/argus/pap/conf/&lt;br /&gt;
/opt/argus/pdp/logs/&lt;br /&gt;
/opt/argus/pepd/logs/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== specific considerations ====&lt;br /&gt;
&lt;br /&gt;
*The argus server needs to share its gridmapdir with the creamce&lt;br /&gt;
*Setting up site policies by hand: https://twiki.cern.ch/twiki/bin/view/EGEE/AuthzQSPolicySetup&lt;br /&gt;
*Setting up site policies by translating the groupmap file https://twiki.cern.ch/twiki/bin/view/LCG/GlexecDeployment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root&lt;br /&gt;
./from-groupmap-to-policy.sh /opt/glite/etc/lcmaps/groupmapfile &amp;gt; my-policy.spl&lt;br /&gt;
/opt/argus/pap/bin/pap-admin add-policies-from-file my-policy.spl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Don&amp;#039;t forget to reload the policies when adding new policies&lt;br /&gt;
&lt;br /&gt;
=== glexec on the WNs cheat-sheet ===&lt;br /&gt;
&lt;br /&gt;
==== Start/stop services ====&lt;br /&gt;
&lt;br /&gt;
*No services run on the workernodes&lt;br /&gt;
&lt;br /&gt;
==== Log files and monitoring ====&lt;br /&gt;
&lt;br /&gt;
*log-only mode: syslog. eg. &lt;br /&gt;
&amp;lt;pre&amp;gt;/var/log/messages (| grep glexec)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*setuid mode: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/var/log/glexec/glexec.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*See argus server for glexec SAM test&lt;br /&gt;
&lt;br /&gt;
==== Configuration ====&lt;br /&gt;
&lt;br /&gt;
*This file contains the user_white_list to specify users allowed to run glexec&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/glite/etc/glexec.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*increase verbosity level log_level = 1(up to 5)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== specific considerations ====&lt;br /&gt;
&lt;br /&gt;
*debugging the glexec installation: https://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Debugging_hints&lt;br /&gt;
*debugging results at another site: http://lists.grid.sinica.edu.tw/apwiki/ARGUS/glexec_install&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=== Debugging a faulty argus test ===&lt;br /&gt;
====  Restart Argus   ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service restart argus&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will call all the dependent services (like PAP and PEP) to restart.&lt;br /&gt;
====  Grimapdir mount   ====&lt;br /&gt;
Gridmapdir must be mounted on argus, cream and the WN:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /etc/grid-security/gridmapdir/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
should give an list of directories&lt;br /&gt;
====  Test access with glexec   ====&lt;br /&gt;
*Find a valid valid proxy in /pooluser&lt;br /&gt;
*su to this user (same name as the directory&lt;br /&gt;
*launch the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export X509_USER_PROXY=/pooluser/pilocms006/x509up_u20606&lt;br /&gt;
export GLEXEC_CLIENT_CERT=${GLEXEC_CLIENT_CERT:-$X509_USER_PROXY}&lt;br /&gt;
$GLITE_LOCATION/sbin/glexec /usr/bin/whoami&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*This should return a user name if  all went well.&lt;br /&gt;
*In case of error, look at the log file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tailf /var/log/glexec/lcas_lcmaps.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Installation of ARGUS server ===&lt;br /&gt;
&lt;br /&gt;
*The following templates have been updated from the lal repo (June 29th 2011)&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/machine-types/argus.tpl -&amp;gt; was up to date&lt;br /&gt;
*/QWG-lal/os/sl550-x86_64/config/glite/3.2/argus.tpl -&amp;gt; was up to date&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/glite/argus/ (machine definitions)&lt;br /&gt;
**config.tpl -&amp;gt; was up to date&lt;br /&gt;
**pap.tpl -&amp;gt; updated&lt;br /&gt;
**pdp.tpl -&amp;gt; updated&lt;br /&gt;
**pep.tpm -&amp;gt; updated&lt;br /&gt;
**service.tpl -&amp;gt; was up to date&lt;br /&gt;
**rpms/config.tpl -&amp;gt; was up to date&lt;br /&gt;
**rpms/x86_64/config.tpl -&amp;gt; was up to date&lt;br /&gt;
&lt;br /&gt;
*Adding the argus host template&lt;br /&gt;
**/CBv6/cfg/sites/ulb-vub/hardware/machine/Virtual/virtual_kvm_argus.tpl&lt;br /&gt;
**change the name + add virtual mac addresses&lt;br /&gt;
**/CBv6/cfg/clusters/iihe-glite-32/profiles/profile_argus.iihe.ac.be.tpl&lt;br /&gt;
**include machine type&lt;br /&gt;
**/CBv6/cfg/sites/iihe-production/site/os_version_db.tpl&lt;br /&gt;
**add os version for this machine&lt;br /&gt;
**/CBv6/cfg/sites/iihe-production/config/glite_base.tpl&lt;br /&gt;
**add direct route (?)&lt;br /&gt;
**/CBv6/cfg/clusters/iihe-glite-32/private/argus.iihe.ac.be.tpl&lt;br /&gt;
**add this file&lt;br /&gt;
**/CBv6/cfg/sites/iihe-production/site/databases.tpl&lt;br /&gt;
**added ip address (? what is this address)&lt;br /&gt;
**added the hardware&lt;br /&gt;
**/CBv6/cfg/sites/iihe-production/site/config_grid.tpl -&amp;gt; Did not change this file but might need a parameter like ARGUS_HOST &lt;br /&gt;
&lt;br /&gt;
*Modifying the rpm template&lt;br /&gt;
&lt;br /&gt;
*Argus parameters:&lt;br /&gt;
**https://twiki.cern.ch/twiki/bin/view/LCG/Site-info_configuration_variables#ARGUS&lt;br /&gt;
**ARGUS_HOST: not set (?)&lt;br /&gt;
**PAP_HOST_DN: set DN of machine&lt;br /&gt;
&lt;br /&gt;
*RPM updates:&lt;br /&gt;
**the rpm needed for argus are in &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB5/tmp/src/begrid/cb-client/cb-client-swrep/rpm-argus-glexec&lt;br /&gt;
./swrep.py --debug --mode=up --plat i386_glite_32_sl4,/grid/glite3/updates --dir=/opt/CB5/tmp/src/begrid/cb-client/cb-client-swrep/rpm-argus/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Installation of the host&lt;br /&gt;
**To be able to install this host as a virtual machine, follow instructions on [[VirtWithKVM]] to set up the virtual disk correctly&lt;br /&gt;
**Attention; needed to add &amp;#039;&amp;#039;variable GLITE_UPDATE_VERSION = &amp;#039;21&amp;#039;;&amp;#039;&amp;#039; in the argus template to overcome rpm dependency issue&lt;br /&gt;
**The argus machine needs a host certificate&lt;br /&gt;
**[[UpdateCertificates]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ccq:/opt/CB5/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=argus.wn.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**After the installation the gridmapdir from cream02 needs to be shared&lt;br /&gt;
**On the cream02 add the following line in /etc/exports&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/grid-security/gridmapdir argus.wn.iihe.ac.be(rw,async)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**And make sure the changes are adopted&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
exportfs -avr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**On the argus add this in /etc/fstab&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cream02.wn.iihe.ac.be:/etc/grid-security/gridmapdir /etc/grid-security/gridmapdir nfs hard,intr 0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Then, mount the directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Make sure that on both machines the nfs is running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service nfs status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation of glexec on the workernodes ===&lt;br /&gt;
&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/glite/cream_ce/ (machine config)&lt;br /&gt;
**cemonitor.tpl -&amp;gt; was up to date&lt;br /&gt;
**config.tpl -&amp;gt; updated (changelog: location of glexec)&lt;br /&gt;
**sudoers.tpl -&amp;gt; was up to date&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/glite/wn/service.tpl -&amp;gt; updated (include GLEXEC_WN_INCLUDE variable)&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/common/glexec/&lt;br /&gt;
**config.tpl -&amp;gt; updated&lt;br /&gt;
**cream_ce/config.tpl -&amp;gt; added&lt;br /&gt;
**wn/config.tpl -&amp;gt; added&lt;br /&gt;
**wn/service.tpl -&amp;gt; added&lt;br /&gt;
**wn/rpms/config.tpl -&amp;gt; added&lt;br /&gt;
**wn/rpms/x86_64/config.tpl -&amp;gt; added&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/common/lcas/&lt;br /&gt;
**glexec.tpl -&amp;gt; was up to date (+home-made modifications for banning users)&lt;br /&gt;
**glexec_wn.tpl -&amp;gt; added&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/common/lcmaps/&lt;br /&gt;
**glexec.tpl -&amp;gt; was up to date&lt;br /&gt;
**glexec_wn.tpl -&amp;gt; added&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/users/glexec.tpl -&amp;gt; updated&lt;br /&gt;
*/QWG-lal/grid/glite-3.2/vo/functions.tpl -&amp;gt; updated&lt;br /&gt;
&lt;br /&gt;
*Variables to set:&lt;br /&gt;
**https://twiki.cern.ch/twiki/bin/view/LCG/Site-info_configuration_variables#GLEXEC_wn&lt;br /&gt;
**GLEXEC_WN_INCLUDE in wn profile&lt;br /&gt;
&lt;br /&gt;
*RPM updates:&lt;br /&gt;
**the rpm needed for glexec_wn are all in i386_glite_32_sl4 rpm template&lt;br /&gt;
&lt;br /&gt;
*Parameters to be set for each workernode&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable GLEXEC_WN_ENABLED = true;&lt;br /&gt;
variable GLEXEC_OPMODE = &amp;#039;log-only&amp;#039;;&lt;br /&gt;
variable GLEXEC_SCAS_ENABLED = false;&lt;br /&gt;
variable GLEXEC_ARGUS_ENABLED = true;&lt;br /&gt;
variable GLITE_UPDATE_VERSION = &amp;#039;16&amp;#039;;&lt;br /&gt;
variable GLEXEC_ARGUS_PEPD_ENDPOINTS = list(&amp;#039;https://argus.iihe.ac.be:8154/authz&amp;#039;); # be careful on the secure (httpS)&lt;br /&gt;
variable GLEXEC_LOG_DESTINATION = &amp;#039;syslog&amp;#039;;&lt;br /&gt;
variable GLEXEC_EXTRA_WHITELIST = list(&amp;#039;.cms&amp;#039;,&amp;#039;.dteam&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*debugging: https://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Debugging_hints&lt;br /&gt;
*debugging at other site: http://lists.grid.sinica.edu.tw/apwiki/ARGUS/glexec_install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/viewauth/CMS/Poll-gLExec-2011&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/EGEE/AuthorizationFramework&lt;br /&gt;
*https://trac.lal.in2p3.fr/Quattor/wiki/Doc/gLite/TemplateCustomization/Services#ARGUS&lt;br /&gt;
*http://glite.cern.ch/glite-ARGUS/&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/EGEE/GLiteARGUS&lt;br /&gt;
*http://www.gridpp.ac.uk/wiki/Glexec,_LCAS,_LCMAPS_and_Pilot_Job&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/LCG/GlexecDeployment&lt;br /&gt;
*http://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/HOWTO_set_up_gLExec_on_the_worker_node&lt;br /&gt;
*https://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/GLExec&lt;br /&gt;
*www.nikhef.nl/~davidg/presentations/On-MUPJs-SARA-20100105.pptx&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/EGEE/AuthzQSManInstall&lt;br /&gt;
*http://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Set_up_gLExec_for_Argus&lt;br /&gt;
*https://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/FAQs_and_misconceptions&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>