Presentation is loading. Please wait.

Presentation is loading. Please wait.

UI Installation and Configuration

Similar presentations


Presentation on theme: "UI Installation and Configuration"— Presentation transcript:

1 UI Installation and Configuration
Dong Xu IHEP, CAS Asia EPIKH School for Grid Site Administrators Beijing,

2 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.

3 Check your host Vi /etc/hosts (for example) Start ntpd
# 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

4 Repository settings Specify the mrepo host: export MREPO= Configure the repository as follows: REPOS="dag ig glite-generic lcg-ca glite-ui" Get repositories with: for name in $REPOS; do wget $MREPO/$name.repo -O /etc/yum.repos.d/$name.repo; done Copy LCG-CA wget -O /etc/yum.repos.d/lcg-ca.repo Copy the gilda utils: wget -O /etc/yum.repos.d/gilda.repo

5 Edit /etc/yum.repos.d/glite-ui.repo (NOTICE!!)
# This is the official YUM repository string for the glite 3.2 User Interface # Fetched from: # Place it to /etc/yum.repos.d/ and run 'yum update' [glite-UI] name=gLite 3.2 User Interface baseurl= gpgkey= gpgcheck=1 enabled=1 [glite-UI_updates] baseurl= [glite-UI_ext] baseurl= gpgcheck=0

6 install by yum generic installation: UI specific Install: Update java
update the host: yum clean all update CA: yum install lcg-CA install Gilda utils: yum install gilda_utils UI specific Install: install UI: yum groupinstall ig_UI_noafs Update java yum install java

7 get host certificates ready
$# cp hostcert.pem /etc/grid-security/ $# cp hostkey.pem /etc/grid-security/ $# chmod 644 /etc/grid-security/hostcert.pm $# chmod 400 /etc/grid-security/hostkey.pem

8 edit site-info.def Edit site-info.def:
vi /opt/glite/yaim/examples/siteinfo/ig-site-info.def RB_HOST=RB_hostname BDII_HOST=top-BDII-hostname WMS_HOST=wms-hostname LB_HOST=“lb-hostname:9000" PX_HOST=myproxy.ct.infn.it LFC_HOST=lfc-hostname DPM_HOST=se-hostname 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'"

9 Edit ig-groups.conf Edit /opt/glite/yaim/examples/siteinfo/ig-groups.conf, "/gilda/ROLE=SoftwareManager":::sgm: "/gilda/grelc/das/*":gilda::: "/gilda":::: Remove ig.repo (NOTICE!!!) cd /etc/yum.repo.d mv ig.repo ig.repo.backup

10 Configuration /opt/glite/yaim/bin/yaim -c -s /opt/glite/yaim/examples/siteinfo/ig-site-info.def -n glite-UI

11 Set environment variable LFC_HOST
vi /opt/glite/etc/profile.d/grid-env.sh gridenv_set “LFC_HOST” “your lfc hostname”

12 Test UI login as a non root users to UI and initialize your voms proxy. $# 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: ~]$

13 Test UI 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 ========================================================================== ~]$

14 Submit a job $# vi test.jdl $# vi hello.sh 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!!"

15 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 ==========================================================================

16 Submit a job $# glite-wms-job-status -i jobid
~]$ glite-wms-job-status -i jobid ======================= glite-wms-job-status Success ===================== BOOKKEEPING INFORMATION: Status info for the Job : 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

17 Thank you very much!


Download ppt "UI Installation and Configuration"

Similar presentations


Ads by Google