EMI is partially funded by the European Commission under Grant Agreement RI-261611 YAIM tutorial on gLite configuration tool (http://www.pd.infn.it/~aiftim/

Slides:



Advertisements
Similar presentations
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATOR E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
Advertisements

Guide To UNIX Using Linux Third Edition
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 WP4 hands-on workshop: EDG LCFGng exercises
1 Worker Nodes Installation&Configuration Sara Bertocco INFN Padova 11 th International GridKa School 2013 – Big Data, Clouds and Grids.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
SA1 / Operation & support Enabling Grids for E-sciencE Integration of heterogeneous computational resources in.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) VOMS Installation and configuration Bouchra
Rsv-control Marco Mambelli – Site Coordination meeting October 1, 2009.
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
EMI is partially funded by the European Commission under Grant Agreement RI Post EMI Plans and MeDIA Alberto DI MEGLIO, CERN Project Director WLCG.
1 Introduction to the tutorial for site managers Antonio Fuentes Red.es/RedIRIS EGEE/EUMedGrid/EELA Tutorial for Managers Sevilla,
CERN Manual Installation of a UI – Oxford July - 1 LCG2 Administrator’s Course Oxford University, 19 th – 21 st July Developed.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Workload Management System + Logging&Bookkeeping Installation.
European Middleware Initiative (EMI) – Release Process Doina Cristina Aiftimiei (INFN) EGI Technical Forum, Amsterdam 17. Sept.2010.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 LCFGng configuration examples Updated 10/2002
EDG Testbed installation and configuration with LCFGng Maite Barroso - WP4
INFSO-RI Enabling Grids for E-sciencE Installation and configuration of gLite Resource Broker Emidio Giorgio INFN EGEE-EMBRACE tutorial,
EMI is partially funded by the European Commission under Grant Agreement RI Argus Policies Tutorial Valery Tschopp - SWITCH EGI TF Prague.
INFSO-RI Enabling Grids for E-sciencE WMS + LB Installation Emidio Giorgio Giuseppe La Rocca INFN EGEE Tutorial, Rome November.2005.
9th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
12th EELA Tutorial for Users and System Administrators E-infrastructure shared between Europe and Latin America User Interface installation.
Ariel Garcia LCG cluster installation, EGEE training, Ariel Garcia - IWR LCG Cluster Installation Forschungszentrum Karlsruhe in der Helmholtz-Gemeinschaft.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America WMS + LB Installation Emidio Giorgio INFN.
Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Usage of virtualization in gLite certification Andreas Unterkircher.
4th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
Report on Installed Resource Capacity Flavia Donno CERN/IT-GS WLCG GDB, CERN 10 December 2008.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America BDII Server Installation and Configuration.
E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers Vanessa Hamar Universidad de Los.
FRANEC and BaSTI grid integration Massimo Sponza INAF - Osservatorio Astronomico di Trieste.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers.
INFSO-RI Enabling Grids for E-sciencE User Interface (UI) Installation Giuseppe La Rocca INFN Catania - Italy First Latin American.
INFSO-RI Enabling Grids for E-sciencE Ganga 4 – The Ganga Evolution Andrew Maier.
EMI is partially funded by the European Commission under Grant Agreement RI SA2 – Development Tools Andres Abad Rodriguez SA2.4 Tools Activity Leader.
SEE-GRID-SCI Overview of YAIM and SEE-GRID-SCI YAIM templates Dusan Vudragovic Institute of Physics Belgrade Serbia The.
EMI INFSO-RI Argus Policies in Action Valery Tschopp (SWITCH) on behalf of the Argus PT.
CREAM Installation&Configuration Sara Bertocco INFN Padova 11 th International GridKa School 2013 – Big Data, Clouds and Grids.
EMI INFSO-RI EMIR integration in BDII Maria Alandes Pradillo (CERN) Information System Product Team.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America SRM + gLite IO Server install Emidio Giorgio.
EGEE-II INFSO-RI Enabling Grids for E-sciencE YAIM Overview MiMOS Grid tutorial HungChe, ASGC OPS Team.
Third EELA Tutorial for Managers and Users E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
INFSO-RI Enabling Grids for E-sciencE /10/20054th EGEE Conference - Pisa1 gLite Configuration and Deployment Models JRA1 Integration.
EMI INFSO-RI Argus The EMI Authorization Service Valery Tschopp (SWITCH) Argus Product Team.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Progress report from University of Cyprus.
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin.
YAIM gLite configuration tool Sara Bertocco INFN Padova 11 th International GridKa School 2013 – Big Data, Clouds and Grids.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks gLite configuration (plans) Robert Harakaly.
INFSO-RI Enabling Grids for E-sciencE Installing & configuring Joachim Flammer Integration Team, CERN EMBRACE Tutorial, Clermont-Ferrand.
12th EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
GLite WN Installation Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
EMI is partially funded by the European Commission under Grant Agreement RI Argus Policies Tutorial Valery Tschopp (SWITCH) – Argus Product Team.
II EGEE conference Den Haag November, ROC-CIC status in Italy
Site BDII and CE Installation Muhammad Farhan Sjaugi, UPM 2009 November , UM Malaysia 1.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarksEGEE-III INFSO-RI MPI on the grid:
EMI is partially funded by the European Commission under Grant Agreement RI DPM in EMI-II HTTP and NFS interfaces Oliver Keeble On behalf of DPM.
EMI is partially funded by the European Commission under Grant Agreement RI Future Proof Storage with DPM Oliver Keeble (on behalf of the CERN IT-GT-DMS.
Implementation of GLUE 2.0 support in the EMI Data Area Elisabetta Ronchieri on behalf of JRA1’s GLUE 2.0 Working Group INFN-CNAF 13 April 2011, EGI User.
User Interface (UI) Installation Bandung ITB Desember 2009.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Worker Node & Torque Client Installation.
Overview of software tools for gLite installation & configuration
YAIM Optimized Cristina Aiftimiei – Sergio Traldi
AEGIS Training for Site Administrators
Hadoop Architecture Mr. Sriram
CREAM Installation&Configuration Sara Bertocco INFN Padova
Security aspects of the CREAM-CE
gLite User Interface Installation
DPM Hands-on Session AEGIS Training for Site Administrators
gLite User Interface Installation and configuration
The EU DataGrid Fabric Management Services
Presentation transcript:

EMI is partially funded by the European Commission under Grant Agreement RI YAIM tutorial on gLite configuration tool ( ) Cristina Aiftimiei (INFN) EMI Release Manager EGI Technical Forum Sep. 2012

EMI INFSO-RI What is it? What is it used for? How is it organized? How to use it? How to develop it? “real” use case – siteBDII Overview 19/09/2012EGI-TF 20122

EMI INFSO-RI European DataGRID project (2001 – 2003) European DataGRID – WP4 – Fabric Management “To deliver a computing fabric comprised of all the necessary tools to manage a center providing grid services on clusters of thousands of nodes.” LCFG (Local ConFiGuration system) LCFG (Local ConFiGuration system) – LCFGng (LCFG next generation) - Client/server architecture LCFGng (LCFG next generation) – Quattor – community effort, open source software Quattor EGEE projects (I, II and EGEE, ) EGEE – YAIMYAIM Short history EGI-TF /09/2012

EMI INFSO-RI YAIM Evolution 4 YAIM x - single rpm, install & configure all node types YAIM First split – UI(WN) EGI-TF /09/2012

EMI INFSO-RI YAIM Evolution 5EGI-TF /09/2012

EMI INFSO-RI YAIM – present & future 6 YAIM in EMI – All modules under the responsibility of PT – yaim-core/clients – mainly bug fixes – EMI recommendation: adopt standard configuration methods recommended by the operating systems supported YAIM post-EMI – up to PTs – WLCG TEG Operations & Tools – final report:final report Middleware configuration should be improved and should not be bound to a particular configuration management tool EGI-TF /09/2012

EMI INFSO-RI YAIM – initially Yet Another Installation Manager – known as YAIM Ain't an Installation Manager YAIM Acronym/Logo 19/09/ – Logo ContestLogo Contest – David O’Callaghan- “yak shaving”:“yak shaving” “Any seemingly pointless activity which is actually necessary to solve a problem which solves a problem which, several levels of recursion later, solves the real problem you’re working on.” EGI-TF 2012

EMI INFSO-RI YAIM – configuration tool 8 YAIM – implements a configuration method for the gLite software. – aims to provide a simple configuration method that can be used to set up a simple Grid Site but can be easily adapted and extended to meet the need of larger sites. Main features: – Modularized Structure – Bash Script Syntax – Node Type Configuration Facility – Well Defined Directory Structure – Basic Configuration Files EGI-TF /09/2012

EMI INFSO-RI yaim-core (glite-yaim-core ) – common functions and definitions one yaim module per node type/service – specific functions and configuration files – 21 modules YAIM - modular structure 9 dpm-yaim glite-apel-yaim glite-ce-yaim-cream-ce glite-lb-yaim glite-px-myproxy-yaim glite-yaim-bdii glite-yaim-clients glite-yaim-cluster glite-yaim-ge-utils glite-yaim-lsf-utils glite-yaim-mpi glite-yaim-torque-client glite-yaim-torque-server glite-yaim-torque-utils glite-yaim-wms lfc-yaim yaim-argus_server yaim-fts yaim-glexec-wn yaim-storm yaim-voms EGI-TF /09/2012

EMI INFSO-RI YAIM’s directory structure 19/09/ /opt/glite/yaim /examples /bin /functions /libexec /siteinfo /local /utils /node-info.d /log /vo.d /services /nodes /defaults /pre /post /etc EGI-TF 2012

EMI INFSO-RI In /opt/glite/yaim/ the following get created “by default”: – bin/yaim- the main yaim executable – defaults/- config files with defaults shipped with the yaim core and module rpms – etc/- scripts for setting grid environment – examples/- some example configuration file shipped with the yaim rpm – functions/- functions executed during the configuration – functions/local/- adapted/improved/local version of functions – log/- location of yaim's log file – libexec/- main scripts used by yaim – node-info.d/- function list definition files for the service YAIM’s directory structure (II) 19/09/201211EGI-TF 2012

EMI INFSO-RI The following directories, can/must be used for advanced configuration - they should be created by the site-admin – functions/pre/- functions to be executed before the main one – functions/post/- functions to be executed after the main one – /siteinfo/vo.d/- VO (DNS-like VOs) specific info – /siteinfo/nodes/ - host specific config. YAIM’s directory structure (III) 19/09/201212EGI-TF 2012

EMI INFSO-RI examples/ directory – EXAMPLES config. files – edgusers.conf –details of the UNIX users needed to run service relevant daemons and processes – groups.conf – UNIX groups details, for pool accounts configuration groups.conf.README – users.conf – UNIX users details, for pool accounts configuration users.conf.README – wn-list.conf - list of WN hostnames (FQDN) in the site wn-list.conf.README – siteinfo/site-info.def – MAIN configuration file – siteinfo/services/[emi|glite]- - service specific settings defaults/ directory – variables with meaningful default values – site-info.pre & site-info.post – provided by yaim-core –.pre & - provided by specific yaim modules YAIM’s configuration “storage” 19/09/201213EGI-TF 2012

EMI INFSO-RI Prepare configuration files: – recommended way - make a copy of the examples/ directory # cp –r /opt/glite/yaim/examples # chmod o-rwx – customize config. files to your site 2.Run yaim How to use YAIM 19/09/201214EGI-TF 2012

EMI INFSO-RI Files are sourced in this order: 1./opt/glite/yaim/defaults/site-info.pre 2./opt/glite/yaim/defaults/[emi|glite]-node-type.pre 3. /site-info.def 4. /services/[emi|glite]-node-type 5. /nodes/machine.domain 6./opt/glite/yaim/defaults/site-info.post 7./opt/glite/yaim/defaults/[emi|glite]-node-type.post 8. /vo.d/vo_name 9./opt/glite/yaim/node-info.d/[emi|glite]-node-type And then functions are executed 1./opt/glite/yaim/functions/pre/myfunc 2./opt/glite/yaim/functions/local/myfunc OR /opt/glite/yaim/functions/myfunc 3./opt/glite/yaim/functions/post/myfunc Configuration Flow 19/09/201215EGI-TF 2012

EMI INFSO-RI /opt/glite/yaim/bin/yaim Actions: -c | --configure : Configure already installed services. Compulsory parameters: -s, -n -r | --runfunction : Execute a configuration function. Compulsory parameters: -s, -f ; Optional parameters : -n -v | --verify : checks that the required variables for a given nodetype are all defined. Compulsory parameters : - s - n -d | --debug : Define a loglevel, overwrites YAIM_LOGGING_LEVEL defined in site-info.def. Values: e | --explain : Explains what the functions are doing by printing out the comments found inside them. Compulsory parameters: -s -n -a | --available : Prints out the available configuration targets. Compulsory parameter: -s -p | --package : Creates an rpm package from the configuration directory structure, that can be installed on other nodes. It installs under: /opt/glite/yaim/examples/siteinfo/mysiteinfo-${SITE_INFO_VERSION} Compulsory parameter: -s -h | --help : Prints out this help. Specify only one action at a time ! Parameters: -s | --siteinfo: : Location of the site-info.def file -n | --nodetype : Name of the node type(s) to configure -f | --function : Name of the functions(s) to execute YAIM command 19/09/201216EGI-TF 2012

EMI INFSO-RI Check what can you configure: # /opt/glite/yaim/bin/yaim -a -s /etc/yaim/site-info.def Configuration: # /opt/glite/yaim/bin/yaim -c -s /etc/yaim/site-info.def -n emi_dpm_mysql Running a function: # /opt/glite/yaim/bin/yaim -r -d 6 -s /etc/yaim/site-info.def -n emi_dpm_mysql \ -f config_mkgridmap Verify your site-info.def: # /opt/glite/yaim/bin/yaim -v -s /etc/yaim/site-info.def -n emi_dpm_mysql Create an rpm package from site-info.def: # /opt/glite/yaim/bin/yaim -p -s /etc/yaim/site-info.def Examples 19/09/201217EGI-TF 2012

EMI INFSO-RI Method A – Create only one site-info.def, user.conf and group.conf for all the nodes in the cluster – put all the custom varibles in nodes/ or services/ directory, distinguish it by profile installed or by hostname. – Export via NFS in all hosts of the cluster this directory with all configurations. Method B – Create in each hosts a site-info.def, user.conf, group.conf and put it in /root directory (if you scratch the host remember to save the site-info.def) Hints on usage 19/09/201218EGI-TF 2012

EMI INFSO-RI Add new VO – use vo.d/, create new config functions – VO specific information: Add new/more users – pool accounts generation script, use new config functions Advanced usage 19/09/201219EGI-TF 2012

EMI INFSO-RI ALLVOs should be defined in the : VOS="vo1 [vo2 [...]]" 2 ways of defining VOs related info: – : - “classic” names – vo.d/ : - DNS-like names Enable new VO 19/09/ ########## # biomed # ########## VO_BIOMED_SW_DIR=$VO_SW_DIR/biomed VO_BIOMED_DEFAULT_SE=$SE_HOST VO_BIOMED_STORAGE_DIR=$CLASSIC_STORAGE_DIR/biomed VO_BIOMED_VOMS_SERVERS="vomss://cclcgvomsli01.in2p3.fr:8443/voms/biomed?/biomed/" VO_BIOMED_VOMSES="'biomed cclcgvomsli01.in2p3.fr /O=GRID-FR/C=FR/O=CNRS/OU=CC- IN2P3/CN=cclcgvomsli01.in2p3.fr biomed 24'" VO_BIOMED_VOMS_CA_DN="'/C=FR/O=CNRS/CN=GRID2-FR'" SW_DIR=$VO_SW_DIR/computer DEFAULT_SE=$SE_HOST STORAGE_DIR=$CLASSIC_STORAGE_DIR/computer VOMS_SERVERS="'vomss://voms2.cnaf.infn.it:8443/voms/comput-er.it?/comput-er.it'" VOMSES="'comput-er.it voms2.cnaf.infn.it /C=IT/O=INFN/OU=Host/L=CNAF/CN=voms2.cnaf.infn.it comput-er.it' 'comput-er.it voms-02.pd.infn.it /C=IT/O=INFN/OU=Host/L=Padova/CN=voms- 02.pd.infn.it comput-er.it'" VOMS_CA_DN="'/C=IT/O=INFN/CN=INFN CA' '/C=IT/O=INFN/CN=INFN CA'" EGI-TF 2012

EMI INFSO-RI Specific variables in – QUEUES should contain short VO names: QUEUES=“biomed computer” – For LFC: LFC_LOCAL=“biomed” LFC_CENTRAL=“comput-er" – _GROUP_ENABLE variable should be named after short VO name (in capital letters): COMPUTER_GROUP_ENABLE=“comput-er /comput-er/ ROLE=lcgadmin /comput-er/ROLE=production" Enable new VO 19/09/201221EGI-TF 2012

EMI INFSO-RI For each profile create a specific configuration function, config_newvo_ Partial configuration: # /opt/glite/yaim/bin/yaim -r -s -n -f config_newvo_ More details Examples Enable new VO 19/09/201222EGI-TF 2012

EMI INFSO-RI A “comprehensive” generation script – ig-generate-users-conf.sh creates a complete ”local-users.conf” for ALL of VOs you support A “per-vo” generation script – ig-generate-vo-users-conf.sh creates a section of your ”local-users.conf” for one VO Thanks to Branimir Ackovic & Antun Balaz Details: – LocalUserAndGroup#Local_users_conf_generation LocalUserAndGroup#Local_users_conf_generation After modifying - run config_users After modifying - run config_newvo_ Add new pool accounts 19/09/201223EGI-TF 2012

EMI INFSO-RI It's pretty simple to produce your own rpm. Simplest way to download the template and modify it: deployment/yaim/examples/org.glite.yaim.lemon.tar.gz How it goes ? 1.Create your function definition list: LEMON_server_FUNCTIONS='config_lemon1,config_lemon2 2.Create your functions: functions/config_lemon1 functions/config_lemon2 How to build a YAIM module 19/09/201224EGI-TF 2012

EMI INFSO-RI Edit an example service specific configuration file in: examples/services/lemon-server 4.Optionally you can specify 2 additional files: – defaults/lemon-server.pre: LEMON_LOG_LEVEL=6 LEMON_SEND_ =yes unset JAVA_HOME – defaults/lemon-server.post: LEMON_WS_HOST=${LEMON_WS_HOST:- $LEMON_HOST} How to build a YAIM module 19/09/201225EGI-TF 2012

EMI INFSO-RI Comment your code! The lines having the This is my comment form could be printed by using the 'yaim -e|--explain’ switch. 6.For each of your function define 2 other function having the same name and an additional '_check' and '_setenv' suffix. function config_lemon_check() { requires LEMON_HOST } This is called when yaim is invoked with -v|--verify switch. The setenv function is just to separate the piece of code which affects the environment. function config_lemon_setenv() { yaimgridenv_set LEMON_HOST $LEMON_HOST yaimgridpath_prepend PATH $LEMON_BIN_PATH } How to build a YAIM module 19/09/201226EGI-TF 2012

EMI INFSO-RI Main YAIM reference – old but very useful – Guide for Site Administrators – YAIM in EMI – YAIM Developers Guide – lopersGuide lopersGuide Dissemination level – Documentation 19/09/201227EGI-TF 2012

EMI INFSO-RI Thank you EMI is partially funded by the European Commission under Grant Agreement INFSO-RI