ProdAgent

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === ProdAgent === Most prodagent documentation is coming from the wiki(s). ==== Installation ==== *[https://twiki.cern.ch/twiki/bin/view/CMS/ProdAgentInstallation basic in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ProdAgent

Most prodagent documentation is coming from the wiki(s).

Installation

  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

Links


Template:TracNotice