Difference: NotesAboutInstallationAndConfigurationOfALFCServer (2 vs. 3)

Revision 32012-04-17 - PaoloVeronesi

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<

Notes about Installation and Configuration of a LFC server (draft)

>
>

Notes about Installation and Configuration of a LFC server

 

  • These notes are provided by site admins on a best effort base as a contribution to the IGI communities and MUST not be considered as a subsitute of the Official IGI documentation.
Line: 653 to 653
 # rm /root/siteinfo/services/lfc_oracle /root/siteinfo/services/glite-bdii_site
Changed:
<
<

site-info.def (draft)

>
>

site-info.def

 The configuration file for this service is really basic:
# cat /root/siteinfo/site-info.def 
Line: 674 to 674
 USERS_CONF=/root/siteinfo/users.conf
Changed:
<
<

lfc_mysql (draft)

>
>

emi_lfc_mysql

 The configuration file for this service is really basic:
Changed:
<
<
# cat /root/siteinfo/services/lfc_mysql
>
>
# cat /root/siteinfo/services/emi_lfc_mysql
  # LFC hostname LFC_HOST=lfcserver04.cnaf.infn.it
Changed:
<
<
LFC_HOST_ALIAS="lfcserver.italiangrid.it"
>
>
LFC_HOST_ALIAS="lfc.italiangrid.it"
  LFC_DB_HOST=lfcdb.italiangrid.it LFC_DB=cns_db
Line: 690 to 690
  LFC_CENTRAL="gerda.mpg.de icarus-exp.org igi.italiangrid.it" LFC_LOCAL="ops infngrid"
Deleted:
<
<
 
Added:
>
>

yaim check

#  chmod -R 600 /root/siteinfo

# /opt/glite/yaim/bin/yaim  -v -s siteinfo/site-info.def -n emi_lfc_mysql
   INFO: Using site configuration file: siteinfo/site-info.def
   INFO: Sourcing service specific configuration file: siteinfo/services/emi_lfc_mysql
   INFO: 
         ###################################################################
         
         .             /'.-. ')
         .     yA,-"-,( ,m,:/ )   .oo.     oo    o      ooo  o.     .oo
         .    /      .-Y a  a Y-.     8. .8'    8'8.     8    8b   d'8
         .   /           ~ ~ /         8'    .8oo88.     8    8  8'  8
         . (_/         '===='          8    .8'     8.   8    8  Y   8
         .   Y,-''-,Yy,-.,/           o8o  o8o    o88o  o8o  o8o    o8o
         .    I_))_) I_))_)
         
         
         current working directory: /root
         site-info.def date: Apr 17 13:51 siteinfo/site-info.def
         yaim command: -v -s siteinfo/site-info.def -n emi_lfc_mysql
         log file: /opt/glite/yaim/bin/../log/yaimlog
         Tue Apr 17 16:24:04 CEST 2012 : /opt/glite/yaim/bin/yaim
         
         Installed YAIM versions:
         glite-yaim-bdii 4.3.9-1
         glite-yaim-core 5.0.2-1
         glite-yaim-lfc 4.2.1-1
         
         ####################################################################
   INFO: The default location of the grid-env.(c)sh files will be: /usr/libexec
   INFO: Sourcing the utilities in /opt/glite/yaim/functions/utils
   INFO: Detecting environment
   INFO: Executing function: config_sysconfig_lcg_check 
   INFO: Executing function: config_host_certs_check 
   INFO: Executing function: config_vomsdir_check 
   INFO: Executing function: config_edgusers_check 
   INFO: Executing function: config_mkgridmap_check 
   INFO: Executing function: config_bdii_5.2_check 
   INFO: Executing function: config_gip2_lfc_check 
   INFO: Executing function: config_lfc_user_check 
   INFO: Executing function: config_lfc_mysql_upgrade_check 
   INFO: Executing function: config_lfc_mysql_check 
   INFO: Executing function: config_lfc_server_check 
   INFO: Executing function: config_lfc_dli_check 
   INFO: Executing function: config_lfc_semsg_check 
   INFO: Checking is done.
   INFO: All the necessary variables to configure emi_lfc_mysql are defined in your configuration files.
   INFO: Please, bear in mind that YAIM only guarantees the definition of variables
   INFO: controlled in the _check functions.
   INFO: YAIM terminated succesfully.

yaim config

Please use the debug flag ( "-d 6") to configure the services in order to have detailed information. For your convenience yo can save all the configuration information in a log file you can look at any time, separated from the yaimlog defulat one.

# /opt/glite/yaim/bin/yaim  -d 6 -c -s siteinfo/site-info.def -n emi_lfc_mysql
   DEBUG: Checking siteinfo dir is not world readable
   DEBUG: Checking site-info.def is syntactically correct
   DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/site-info.pre
   DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/emi_lfc_mysql.pre
   INFO: Using site configuration file: siteinfo/site-info.def
   DEBUG: Sourcing site-info.def file: siteinfo/site-info.def
   INFO: Sourcing service specific configuration file: siteinfo/services/emi_lfc_mysql
   DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/site-info.post
   DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/mapping
   INFO: 
         ###################################################################
         
         .             /'.-. ')
         .     yA,-"-,( ,m,:/ )   .oo.     oo    o      ooo  o.     .oo
         .    /      .-Y a  a Y-.     8. .8'    8'8.     8    8b   d'8
         .   /           ~ ~ /         8'    .8oo88.     8    8  8'  8
         . (_/         '===='          8    .8'     8.   8    8  Y   8
         .   Y,-''-,Yy,-.,/           o8o  o8o    o88o  o8o  o8o    o8o
         .    I_))_) I_))_)
         
         
         current working directory: /root
         site-info.def date: Apr 17 13:51 siteinfo/site-info.def
         yaim command: -d 6 -c -s siteinfo/site-info.def -n emi_lfc_mysql
         log file: /opt/glite/yaim/bin/../log/yaimlog
         Tue Apr 17 16:26:29 CEST 2012 : /opt/glite/yaim/bin/yaim
         
         Installed YAIM versions:
         glite-yaim-bdii 4.3.9-1
         glite-yaim-core 5.0.2-1
         glite-yaim-lfc 4.2.1-1
         
         ####################################################################
   INFO: The default location of the grid-env.(c)sh files will be: /usr/libexec
   INFO: Sourcing the utilities in /opt/glite/yaim/functions/utils
   INFO: Detecting environment
   DEBUG: Detect platform: OS flavour detected is: emi
   DEBUG: Detected architecture is 64BIT
   DEBUG: Detect platform: OS type detected: sl5
   DEBUG: GROUPS_CONF is defined. Adding global groups to the groups.conf temp file
   DEBUG: GROUPS_CONF points now to the groups.conf temp file
   DEBUG: GROUPS_CONF=/tmp/yaim.JA4261
   DEBUG: Resulted NODE_TYPE_LIST is : emi_lfc_mysql
   DEBUG: Setting environment variable GRID_ENV_LOCATION, to value "/usr/libexec".
   DEBUG: Unset environment variable GRID_ENV_LOCATION.
   DEBUG: Setting environment variable LCG_LOCATION, to value "/usr".
   DEBUG: Unset environment variable LCG_LOCATION.
   DEBUG: Setting environment variable GLITE_LOCATION, to value "/usr".
   DEBUG: Unset environment variable GLITE_LOCATION.
   DEBUG: Setting environment variable GLITE_LOCATION_VAR, to value "/var".
   DEBUG: Unset environment variable GLITE_LOCATION_VAR.
   DEBUG: Appending value "/bin" to environment variable PATH.
   DEBUG: Deleting value "/bin" from environment variable PATH.
   DEBUG: Appending value "/opt/glite/share/man" to environment variable MANPATH.
   DEBUG: Deleting value "/opt/glite/share/man" from environment variable MANPATH.
   DEBUG: Sourcing node definition file: /opt/glite/yaim/bin/../node-info.d/emi_lfc_mysql
   DEBUG: Skipping function: config_root_email_check because it is not defined
   DEBUG: Skipping function: config_sysconfig_edg_check because it is not defined
   DEBUG: Skipping function: config_sysconfig_globus_check because it is not defined
   INFO: Executing function: config_sysconfig_lcg_check 
   DEBUG: Skipping function: config_crl_check because it is not defined
   INFO: Executing function: config_host_certs_check 
   INFO: Executing function: config_vomsdir_check 
   INFO: Executing function: config_edgusers_check 
   INFO: Executing function: config_mkgridmap_check 
   INFO: Executing function: config_bdii_5.2_check 
   INFO: Executing function: config_gip2_lfc_check 
   INFO: Executing function: config_lfc_user_check 
   INFO: Executing function: config_lfc_mysql_upgrade_check 
   INFO: Executing function: config_lfc_mysql_check 
   INFO: Executing function: config_lfc_server_check 
   INFO: Executing function: config_lfc_dli_check 
   INFO: Executing function: config_lfc_semsg_check 
   DEBUG: Skipping function: config_root_email_setenv because it is not defined
   INFO: Executing function: config_root_email 
   DEBUG: Skipping function: config_sysconfig_edg_setenv because it is not defined
   INFO: Executing function: config_sysconfig_edg 
   DEBUG: Skipping function: config_sysconfig_globus_setenv because it is not defined
   INFO: Executing function: config_sysconfig_globus 
   DEBUG: Skipping function: config_sysconfig_lcg_setenv because it is not defined
   INFO: Executing function: config_sysconfig_lcg 
   DEBUG: Skipping function: config_crl_setenv because it is not defined
   INFO: Executing function: config_crl 
   INFO: Now updating the CRLs - this may take a few minutes...
Enabling periodic fetch-crl:                               [  OK  ]
   DEBUG: fetch-crl cron enabled
   DEBUG: Skipping function: config_host_certs_setenv because it is not defined
   INFO: Executing function: config_host_certs 
   INFO: Executing function: config_vomsdir_setenv 
   DEBUG: This function currently doesn't set any environment variables.
   INFO: Executing function: config_vomsdir 
   DEBUG: .lsc file configuration for VO gerda.mpg.de...
   DEBUG: Create the /etc/grid-security/vomsdir/gerda.mpg.de/vomsmania.cnaf.infn.it.lsc
   DEBUG: Copying /C=IT/O=INFN/OU=Host/L=CNAF/CN=vomsmania.cnaf.infn.it in /etc/grid-security/vomsdir/gerda.mpg.de/vomsmania.cnaf.infn.it.lsc
   DEBUG: Copying the vomsmania.cnaf.infn.it CA DN  /C=IT/O=INFN/CN=INFN CA in /etc/grid-security/vomsdir/gerda.mpg.de/vomsmania.cnaf.infn.it.lsc
   DEBUG: .lsc file configuration for VO icarus-exp.org...
   DEBUG: Create the /etc/grid-security/vomsdir/icarus-exp.org/vomsmania.cnaf.infn.it.lsc
   DEBUG: Copying /C=IT/O=INFN/OU=Host/L=CNAF/CN=vomsmania.cnaf.infn.it in /etc/grid-security/vomsdir/icarus-exp.org/vomsmania.cnaf.infn.it.lsc
   DEBUG: Copying the vomsmania.cnaf.infn.it CA DN  /C=IT/O=INFN/CN=INFN CA in /etc/grid-security/vomsdir/icarus-exp.org/vomsmania.cnaf.infn.it.lsc
   DEBUG: .lsc file configuration for VO ops...
   DEBUG: Create the /etc/grid-security/vomsdir/ops/lcg-voms.cern.ch.lsc
   DEBUG: Copying /DC=ch/DC=cern/OU=computers/CN=lcg-voms.cern.ch in /etc/grid-security/vomsdir/ops/lcg-voms.cern.ch.lsc
   DEBUG: Create the /etc/grid-security/vomsdir/ops/voms.cern.ch.lsc
   DEBUG: Copying /DC=ch/DC=cern/OU=computers/CN=voms.cern.ch in /etc/grid-security/vomsdir/ops/voms.cern.ch.lsc
   DEBUG: Copying the lcg-voms.cern.ch CA DN  /DC=ch/DC=cern/CN=CERN Trusted Certification Authority in /etc/grid-security/vomsdir/ops/lcg-voms.cern.ch.lsc
   DEBUG: Copying the voms.cern.ch CA DN  /DC=ch/DC=cern/CN=CERN Trusted Certification Authority in /etc/grid-security/vomsdir/ops/voms.cern.ch.lsc
   DEBUG: .lsc file configuration for VO infngrid...
   DEBUG: Create the /etc/grid-security/vomsdir/infngrid/voms.cnaf.infn.it.lsc
   DEBUG: Copying /C=IT/O=INFN/OU=Host/L=CNAF/CN=voms.cnaf.infn.it in /etc/grid-security/vomsdir/infngrid/voms.cnaf.infn.it.lsc
   DEBUG: Create the /etc/grid-security/vomsdir/infngrid/voms-01.pd.infn.it.lsc
   DEBUG: Copying /C=IT/O=INFN/OU=Host/L=Padova/CN=voms-01.pd.infn.it in /etc/grid-security/vomsdir/infngrid/voms-01.pd.infn.it.lsc
   DEBUG: Copying the voms.cnaf.infn.it CA DN  /C=IT/O=INFN/CN=INFN CA in /etc/grid-security/vomsdir/infngrid/voms.cnaf.infn.it.lsc
   DEBUG: Copying the voms-01.pd.infn.it CA DN  /C=IT/O=INFN/CN=INFN CA in /etc/grid-security/vomsdir/infngrid/voms-01.pd.infn.it.lsc
   DEBUG: Skipping function: config_edgusers_setenv because it is not defined
   INFO: Executing function: config_edgusers 
   DEBUG: Creating user edguser...
   DEBUG: Skipping user edguser since it already exists...
   DEBUG: Creating user edginfo...
   DEBUG: Skipping user edginfo since it already exists...
   DEBUG: Creating user glite...
   DEBUG: Skipping user glite since it already exists...
   DEBUG: Creating user edguser...
   DEBUG: Skipping user edguser since it already exists...
   INFO: Executing function: config_mkgridmap_setenv 
   DEBUG: This function currently doesn't set any environment variables.
   INFO: Executing function: config_mkgridmap 
   DEBUG: Defining the grid-map file configuration file location and the gridmapdir
   DEBUG: Configuration file in /etc/edg-mkgridmap.conf
   DEBUG: gridmapdir in /etc/grid-security/gridmapdir
   DEBUG: Configuration file in /etc/lcgdm-mkgridmap.conf
   DEBUG: **** VO GERDA.MPG.DE ****
   DEBUG: The voms servers are 'vomss://vomsmania.cnaf.infn.it:8443/voms/gerda.mpg.de?/gerda.mpg.de'
   DEBUG: VO_lower is gerda.mpg.de
   DEBUG: VO group is gerda
   DEBUG: The user prefix is gerda
   DEBUG: create gridmapdir files
   DEBUG: The pool account prefix is .gerda
   INFO: The grid-map file will also contain special users for VO GERDA.MPG.DE since UNPRIVILEGED_MKGRIDMAP=no for the VO.
   DEBUG: VO tags are sgm
dmg
   DEBUG: special match is ^"/gerda.mpg.de\(/[^"]*\).*:sgm:
   DEBUG: special match is ^"/gerda.mpg.de\(/[^"]*\).*:dmg:
   INFO: Adding ordinary users in the gridmap file since the VO is defined in groups.conf
   DEBUG: **** VO ICARUS-EXP.ORG ****
   DEBUG: The voms servers are 'vomss://vomsmania.cnaf.infn.it:8443/voms/icarus-exp.org?/icarus-exp.org'
   DEBUG: VO_lower is icarus-exp.org
   DEBUG: VO group is icarus
   DEBUG: The user prefix is icarus
   DEBUG: create gridmapdir files
   DEBUG: The pool account prefix is .icarus
   INFO: The grid-map file will also contain special users for VO ICARUS-EXP.ORG since UNPRIVILEGED_MKGRIDMAP=no for the VO.
   DEBUG: VO tags are sgm
   DEBUG: special match is ^"/icarus-exp.org\(/[^"]*\).*:sgm:
   INFO: Adding ordinary users in the gridmap file since the VO is defined in groups.conf
   DEBUG: **** VO OPS ****
   DEBUG: The voms servers are vomss://voms.cern.ch:8443/voms/ops?/ops/
   DEBUG: VO_lower is ops
   DEBUG: VO group is ops
   DEBUG: The user prefix is ops
   DEBUG: create gridmapdir files
   DEBUG: The pool account prefix is .ops
   INFO: The grid-map file will also contain special users for VO OPS since UNPRIVILEGED_MKGRIDMAP=no for the VO.
   DEBUG: VO tags are sgm
pilot
   DEBUG: special match is ^"/ops\(/[^"]*\).*:sgm:
   DEBUG: special match is ^"/ops\(/[^"]*\).*:pilot:
   INFO: Adding ordinary users in the gridmap file since the VO is defined in groups.conf
   DEBUG: **** VO INFNGRID ****
   DEBUG: The voms servers are 'vomss://voms.cnaf.infn.it:8443/voms/infngrid?/infngrid' 'vomss://voms-01.pd.infn.it:8443/voms/infngrid?/infngrid'
   DEBUG: VO_lower is infngrid
   DEBUG: VO group is infngrid
   DEBUG: The user prefix is infngrid
   DEBUG: create gridmapdir files
   DEBUG: The pool account prefix is .infngrid
   INFO: The grid-map file will also contain special users for VO INFNGRID since UNPRIVILEGED_MKGRIDMAP=no for the VO.
   DEBUG: VO tags are sgm
pilot
   DEBUG: special match is ^"/infngrid\(/[^"]*\).*:sgm:
   DEBUG: special match is ^"/infngrid\(/[^"]*\).*:pilot:
   INFO: Adding ordinary users in the gridmap file since the VO is defined in groups.conf
   INFO: Now creating the grid-mapfile - this may take a few minutes...
   INFO: Now creating the lcgdm-mapfile - this may take a few minutes...
   DEBUG: Skipping function: config_bdii_5.2_setenv because it is not defined
   INFO: Executing function: config_bdii_5.2 
Stopping BDII update process:                              [  OK  ]
Stopping BDII slapd:                                       [  OK  ]
Starting BDII slapd:                                       [  OK  ]
Starting BDII update process:                              [  OK  ]
   DEBUG: Skipping function: config_gip2_lfc_setenv because it is not defined
   INFO: Executing function: config_gip2_lfc 
   DEBUG: Skipping function: config_lfc_user_setenv because it is not defined
   INFO: Executing function: config_lfc_user 
   DEBUG: Skipping function: config_lfc_mysql_upgrade_setenv because it is not defined
   INFO: Executing function: config_lfc_mysql_upgrade 
   INFO: mysql database machine not local, not checking or setting the mysql root password
   INFO: Checking for database schema version... 
   INFO: Database version used: 3.1.0
   DEBUG: Skipping function: config_lfc_mysql_setenv because it is not defined
   INFO: Executing function: config_lfc_mysql 

   INFO: mysql database machine not local, not checking or setting the mysql root password
   DEBUG: Skipping function: config_lfc_server_setenv because it is not defined
   INFO: Executing function: config_lfc_server 
Stopping lfcdaemon:                                        [  OK  ]
   INFO: Waiting for complete wake-up of the name server...
Starting lfcdaemon:                                        [  OK  ]
nsentergrpmap -1: Group exists already
nsentergrpmap -1: Group exists already
   DEBUG: Creating default paths for the VOs
nsentergrpmap -1: Group exists already
nsentergrpmap -1: Group exists already
   DEBUG: Skipping function: config_lfc_dli_setenv because it is not defined
   INFO: Executing function: config_lfc_dli 
Stopping lfc-dli:                                          [  OK  ]
Starting lfc-dli:                                          [  OK  ]
   DEBUG: Skipping function: config_lfc_semsg_setenv because it is not defined
   INFO: Executing function: config_lfc_semsg 
   WARNING: LFC_SEMSG set to no. SEMsg will not be configured.
   INFO: Configuration Complete.                                               [  OK  ]
   INFO: YAIM terminated succesfully.

Service checks

From a User Interfaces, try the following commands (replace lfc.grid.cnaf.infn.it with your LFC hostname):
  • Create a valid proxy for a VO supported by the LFC server, e.g. voms-proxy-init --voms infngrid
  • Export the following variables:
export LCG_CATALOG_TYPE=lfc
export LFC_HOST=lfc.grid.cnaf.infn.it
  • Ping the service (take a look at /var/log/lfc/log on the LFC server)
$ lfc-ping -h lfc.grid.cnaf.infn.it
1.8.2-3

Revisions

Date Comment
2012-04-17 installation notes completed - EMI 1 Kebnekaise Products - LFC v. 1.8.2
 -- PaoloVeronesi - 2012-04-17 \ No newline at end of file
Added:
>
>
META TOPICMOVED by="PaoloVeronesi" date="1334673745" from="SiteAdminCorner.NotesAboutInstallationAndConfigurationOfALFCServer(draft)" to="SiteAdminCorner.NotesAboutInstallationAndConfigurationOfALFCServer"
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback