The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) UI Installation and Configuration Dong Xu IHEP, CAS Asia EPIKH School for Grid Site Administrators Beijing,
EPIKH School for Grid Site Administrators, Beijing, /32 Introductions The access point to the WLCG/EGEE Grid is the User Interface (UI). This can be any machine where users have a personal account and where their user certificate is installed. The gLite user Interface is a suite of clients and APIs that users and applications can use to access the gLite services from both the LCG and gLite software stack. From a UI a user can be authenticated and authorized to use the WLCG/EGEE resources, and can access the functionalities offered by the Information, Workload and Data Management Systems.
EPIKH School for Grid Site Administrators, Beijing, /32 Check your host Vi /etc/hosts (for example) # Do not remove the following line, or various programs # that require network functionality will fail localhost.localdomain localhost gilda01.ihep.ac.cn gilda01 Start ntpd service ntpd stop ntpdate ntp-1.infn.it service ntpd start
EPIKH School for Grid Site Administrators, Beijing, /32 Download and Installation Create a shell script : install-ui.sh. #!/bin/bash wget -O /etc/yum.repos.d/dag.repo wget -O /etc/yum.repos.d/ig.repo wget -O /etc/yum.repos.d/glite-generic.repo wget -O /etc/yum.repos.d/lcg-ca.repo wget -O /etc/yum.repos.d/gilda.repo #wget -O /etc/yum.repos.d/glite-ui.repo wget -O /etc/yum.repos.d/glite- ui.repo echo "download finished. ##########################" sleep 5 yum clean all sleep 5 yum install -y lcg-CA sleep 5 yum install -y gilda_utils sleep 5 yum groupinstall -y glite-UI
EPIKH School for Grid Site Administrators, Beijing, /32 Run install-ui.sh You can run install-ui.sh, then it will download and install all packages automatically.
EPIKH School for Grid Site Administrators, Beijing, /32 edit site-info.def Edit site-info.def: vi /opt/glite/yaim/examples/siteinfo/site-info.def (ig-site-info.def) gilda04.ihep.ac.cn CE_HOST=gilda04.ihep.ac.cn glite-rb.ct.infn.it RB_HOST=glite-rb.ct.infn.it top-BDII-hostname BDII_HOST=top-BDII-hostname wms-hostname WMS_HOST=wms-hostname lb-hostname LB_HOST=“lb-hostname:9000" PX_HOST=myproxy.ct.infn.it lfc-hostname LFC_HOST=lfc-hostname se-hostname DPM_HOST=se-hostname /usr/lib/jvm/java openjdk x86_64/jre JAVA_LOCATION=/usr/lib/jvm/java openjdk x86_64/jre VOS="gilda" VO_GILDA_SW_DIR=$VO_SW_DIR/gilda VO_GILDA_DEFAULT_SE=$DPM_HOST VO_GILDA_STORAGE_DIR=$CLASSIC_STORAGE_DIR//gilda VO_GILDA_QUEUES="short long infinite" VO_GILDA_VOMS_SERVERS="vomss://voms.ct.infn.it:8443/voms/gilda?/gilda" VO_GILDA_VOMSES="'gilda voms.ct.infn.it /C=IT/O=INFN/OU=Host/L=Catania/CN=voms.ct.infn.it gilda'" VO_GILDA_VOMS_CA_DN="'/C=IT/O=INFN/CN=INFN CA' '/C=IT/O=INFN/CN=INFN CA'"
EPIKH School for Grid Site Administrators, Beijing, /32 edit site-info.def Edit site-info.def: vi /opt/glite/yaim/examples/siteinfo/site-info.def (ig-site-info.def) #VO_SW_DIR=exp_soft_dir #QUEUES="q1 [q2 [...]]“ # _GROUP_ENABLE="fqan1 [fqan2 [...]]“ # VO_ _DEFAULT_SE=vo-default-se # VO_ _LB_HOSTS="vo-lb1 [vo-lb2 [...]]" # VO_ _MAP_WILDCARDS=no # VO_ _PX_HOST=vo-myproxy # VO_ _RBS="vo-rb1 [vo-rb2 [...]]“ #VO_ _SW_DIR=wn_exp_soft_dir #VO_ _VOMSES="'vo_name voms_server_hostname port voms_server_host_cert_dn vo_name' ['...']“ #VO_ _VOMS_CA_DN="'voms_server_ca_dn' ['...']“ #VO_ _VOMS_SERVERS="'vomss:// :8443/voms/ ?/ ' ['...']“ # VO_ _WMS_HOSTS="vo-wms1 [vo-wms2 [...]]“ # VO_ _UNPRIVILEGED_MKGRIDMAP=no #VO_ _USER_HOME_PREFIX=/pool_account_home_dir
EPIKH School for Grid Site Administrators, Beijing, /32 Edit ig-groups.conf Edit /opt/glite/yaim/examples/siteinfo/gourp.conf (ig- groups.conf) "/gilda/ROLE=SoftwareManager":::sgm: "/gilda/grelc/das/*":gilda::: "/gilda"::::
EPIKH School for Grid Site Administrators, Beijing, /32 Configuration /opt/glite/yaim/bin/yaim -c -s /opt/glite/yaim/examples/siteinfo/site-info.def -n glite-UI
EPIKH School for Grid Site Administrators, Beijing, /32 Set environment variable LFC_HOST vi /opt/glite/etc/profile.d/grid-env.sh your lfc hostname gridenv_set“LFC_HOST” “your lfc hostname”
EPIKH School for Grid Site Administrators, Beijing, /32 Test UI Copy your private certification to $HOME/.globusCopy your private certification to $HOME/.globus login as a non root users to UI and initialize your voms proxy.login as a non root users to UI and initialize your voms proxy. voms-proxy-init –voms gilda $# voms-proxy-init –voms gilda ~]$ voms-proxy-init -voms gilda Enter GRID pass phrase: Your identity: /C=CN/O=HEP/O=IHEP/OU=CC/CN=dong xu Creating temporary proxy Done Contacting voms.ct.infn.it:15001 [/C=IT/O=INFN/OU=Host/L=Catania/CN=voms.ct.infn.it] "gilda" Done Creating proxy Done Your proxy is valid until Wed Sep 1 07:25: ~]$
EPIKH School for Grid Site Administrators, Beijing, /32 Test UI check LFC:check LFC: $# echo $LFC_HOST $# lfc-ls /grid/gilda/home $# lfc-mkdir /grid/gilda/home/xud $# glite-wms-job-delegate-proxy -d xud ~]$ echo $LFC_HOST gilda07.ihep.ac.cn ~]$ lfc-ls /grid/gilda/home xud ~]$ glite-wms-job-delegate-proxy -d xud Connecting to the service ================== glite-wms-job-delegate-proxy Success ================== Your proxy has been successfully delegated to the WMProxy(s): with the delegation identifier: xud ========================================================================== ~]$
EPIKH School for Grid Site Administrators, Beijing, /32 Submit a job $# vi test.jdl Type="Job"; JobType="Normal"; Executable="/bin/sh"; Arguments="hello.sh"; StdOutput="hello.out"; StdError="hello.err"; InputSandbox="hello.sh"; OutputSandbox={"hello.out","hello.err"}; $# vi hello.sh #!/bin/bash echo "hello!World!!"
EPIKH School for Grid Site Administrators, Beijing, /32 Submit a job glite-wms-job-submit -d xud -o jobid test.jdl ~]$ glite-wms-job-submit -d xud -o jobid test.jdl Connecting to the service ====================== glite-wms-job-submit Success ====================== The job has been successfully submitted to the WMProxy Your job identifier is: The job identifier has been saved in the following file: /home/xud/jobid ==========================================================================
EPIKH School for Grid Site Administrators, Beijing, /32 Submit a job $# glite-wms-job-status -i jobid ~]$ ======================= glite-wms-job-status Success ===================== BOOKKEEPING INFORMATION: Status info for the Job : Scheduled Current Status: Scheduled Status Reason: Job successfully submitted to Globus Destination: gilda-01.pd.infn.it:2119/jobmanager-lcgpbs-gilda Submitted: Tue Aug 31 19:32: CST ========================================================================== ~]$ $# glite-wms-job-output -i jobid
EPIKH School for Grid Site Administrators, Beijing, /32 Thank you very much!