ProdAgent
ProdAgent
Most prodagent documentation is coming from the wiki(s).
Installation
- basic installation
- Using rpms
- PrdAgentBD https://twiki.cern.ch/twiki/bin/view/CMS/ProdAgentDB
- Option 2
- Option 1
- grant root usage from installation machine.domain with passwd pass
grant all privileges on *.* to 'root'@'machine.domain' identified by 'pass' with grant option; flush privileges; show grants for 'root'@'machine.domain';
- nice error:
mysql> GRANT UPDATE,SELECT,DELETE,INSERT ON ProdAgentDB_stijn.* TO 'ProdAgentUser_stijn'@'machine' IDENTIFIED BY 'dummy'; ERROR 1145 (42000): The host or user argument to GRANT is too long
Local DBS/DLS (becms?)
- DBS-TDR
- upgrade mysql from 4.1.11 to 5.0.20 to avoid bug
ERROR 1170 (42000) at line 227: BLOB/TEXT column 'LogicalFileName' used in key specification without a key length
- also doesn't work with 4.0.25
- install jdk5
- get ant 1.6.7
- set JAVAHOME to jdk5
- modify config file /etc/tomcat5/tomcat5.conf
- correct JAVA_HOME
- add export DBS_SERVER_CONFIG=/var/lib/tomcat5/DBS/Servers/JavaServer/etc/context.xml
- ant dist builds!
- runAllTests works after changing the clientallowed version to 003
- tomcat55
- install tomcat55 with necessary jakarta common jar libs (pool, jdbc, collections)
- copy the mysql/oracle jar files to CATALINA_HOME/common/lib (from DBS/Servers/JavaServer/lib)
- make sure the tomcat user exists and has write permisisons on /etc/tomcat5(5), /usr/share/tomcat55, /var/lib/tomcat55 and /var/cache/tomcat55
- add line factory="org.apache.commons.dbcp.BasicDataSourceFactory" to context.xml/DBS.xml when you get error Root exception is java.lang.ClassNotFoundExcepti\on: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" with client runAlltest.sh
- client
- run as user
- source standard cms/phedex env (use prodagent one)
- get tag 006
cvs co -r v00_00_06 DBS/Clients/Python
- modify dbs.config to have the correct name for the DBS host
- Local DLS (becms)
- create LFC path according to cms convention
export LFC_HOST=laranja.iihe.ac.be lfc-mkdir -p /grid/becms/DLS/MCLocal_1
- This makes the DLS entrypoint
laranja.iihe.ac.be/grid/becms/DLS/MCLocal_1
- DLS needs the lfc-dli running on the destination. make sure it's on
Test
dls-add -i DLS_TYPE_LFC -e laranja.iihe.ac.be/grid/becms/DLS/MCLocal_1 /block1/2 maite.iihe.ac.be dls-get-se -i DLS_TYPE_LFC -e laranja.iihe.ac.be/grid/becms/DLS/MCLocal_1 /block1/2 dls-delete -i DLS_TYPE_LFC -e laranja.iihe.ac.be/grid/becms/DLS/MCLocal_1 /block1/2 maite.iihe.ac.be
LFC
Install
- Use quattor lfc template, don't forget to add lfcmgr user.
- Make sure you have setup a central LFC for becms only!!
- Setup base infrastructure:
- Follow instructions to test and setup base path https://uimon.cern.ch/twiki/bin/view/LCG/LfcAdminGuide#Test_the_LFC_Server
Links
- LFC in gocwiki http://goc.grid.sinica.edu.tw/gocwiki/How_to_set_up_an_LFC_service
- LFC Admin guide wiki https://uimon.cern.ch/twiki/bin/view/LCG/LfcAdminGuide