-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Affects Version/s: 1.11.4
-
Component/s: documentation, yaim
-
Security Level: Public (Visbile by non-authn users.)
-
None
yaim-storm asks for a mandatory variable even if it's been defined, for example STORM_FRONTEND_PUBLIC_HOST:
[root@omii005-vm01 ~]# /opt/glite/yaim/bin/yaim -d 6 -c -s /etc/yaim/site-info.def -n se_storm_backend -n se_storm_frontend -n se_storm_gridftp -n se_storm_gridhttps
DEBUG: Checking siteinfo dir is not world readable
WARNING:
WARNING: *****************************************************************************
WARNING: Your siteinfo directory is world readable. This is generally a bad idea
WARNING: as configuration files may contain passwords and other sensitive information.
WARNING: *****************************************************************************
WARNING:
DEBUG: Checking site-info.def is syntactically correct
INFO: Configuring HOST: omii005-vm01.cnaf.infn.it
DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/site-info.pre
DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/se_storm_backend.pre
DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/se_storm_frontend.pre
DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/se_storm_gridftp.pre
DEBUG: Sourcing /opt/glite/yaim/bin/../defaults/se_storm_gridhttps.pre
INFO: Using site configuration file: /etc/yaim/site-info.def
DEBUG: Sourcing site-info.def file: /etc/yaim/site-info.def
INFO: Sourcing service specific configuration file: /etc/yaim/services/se_storm_backend
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: Jun 30 15:22 /etc/yaim/site-info.def
yaim command: -d 6 -c -s /etc/yaim/site-info.def -n se_storm_backend -n se_storm_frontend -n se_storm_gridftp -n se_storm_gridhttps
log file: /opt/glite/yaim/bin/../log/yaimlog
Mon Jun 30 15:33:46 CEST 2014 : /opt/glite/yaim/bin/yaim
Installed YAIM versions:
glite-yaim-bdii 4.3.15-1
glite-yaim-core 5.1.2-1
yaim-storm 4.3.5-1.el5
####################################################################
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: "Scientific Linux release 5.10 (Boron)"
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.B16218
DEBUG: Resulted NODE_TYPE_LIST is : se_storm_backend se_storm_frontend se_storm_gridftp se_storm_gridhttps
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/se_storm_backend
DEBUG: Sourcing node definition file: /opt/glite/yaim/bin/../node-info.d/se_storm_frontend
DEBUG: Sourcing node definition file: /opt/glite/yaim/bin/../node-info.d/se_storm_gridftp
DEBUG: Sourcing node definition file: /opt/glite/yaim/bin/../node-info.d/se_storm_gridhttps
INFO: Executing function: config_ntp_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_ntp
DEBUG: Skipping function: config_ldconf_check because it is not defined
INFO: Executing function: config_add_pool_env_check
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_users_check
INFO: Executing function: config_edgusers_check
INFO: Executing function: config_mkgridmap_check
INFO: Executing function: config_vomsmap_check
INFO: Executing function: config_storm_generic_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_generic
INFO: No required variables to set.
INFO: Executing function: config_storm_dir_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_dir
INFO: Executing function: config_storm_gridhttps_dir_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_gridhttps_dir
INFO: Executing function: config_storm_mysql_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_mysql
DEBUG: Skipping function: config_rfio_check because it is not defined
INFO: Executing function: config_lcas_lcmaps_gt4_check
INFO: Executing function: config_lcgenv_check
INFO: Executing function: config_storm_rfio_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_rfio
INFO: No required variables to set.
INFO: Executing function: config_storm_properties_check
INFO: Using locally defined function /opt/glite/yaim/functions/local/config_storm_properties
ERROR: STORM_FRONTEND_HOST_LIST is not set
ERROR: Error during the execution of function: config_storm_properties_check
ERROR: Error during running check functions.
ERROR: Please define your missing variables ! Exiting.
ERROR: One of the functions returned with error without specifying its nature !
USED CONFIGURATION
Site-info dir:
/etc/yaim
/etc/yaim/site-info.def
BDII_HOST="emitb-bdii-site.cern.ch" USERS_CONF=/etc/storm/siteinfo/storm-users.conf GROUPS_CONF=/etc/storm/siteinfo/storm-groups.conf ENABLE_MPI=no JAVA_LOCATION="/usr/java/latest" MY_DOMAIN="cnaf.infn.it" SITE_NAME="storm-all-in-one" NTP_HOSTS_IP="131.154.1.103 193.206.144.10" MYSQL_PASSWORD="#############" VOS="testers.eu-emi.eu dteam" SE_TYPE="disk" SE_LIST=omii005-vm01.cnaf.infn.it VOS="testers.eu-emi.eu dteam"
There isn't any variable STORM_FRONTEND_HOST_LIST defined.
The file /etc/yaim/services/se_storm_backend contains BE specific configuration without setting STORM_FRONTEND_HOST_LIST:
[root@omii005-vm01 ~]# grep STORM_FRONTEND_HOST_LIST /etc/yaim/services/se_storm_backend | grep -v "^#"
[root@omii005-vm01 ~]#
/opt/glite/yaim/bin/../defaults/se_storm_backend.pre contains STORM_FRONTEND_HOST_LIST:
# grep STORM_FRONTEND_PUBLIC_HOST /opt/glite/yaim/bin/../defaults/se_storm_backend.pre | grep -v "^#"
STORM_FRONTEND_PUBLIC_HOST=${STORM_BACKEND_HOST}
STORM_FRONTEND_HOST_LIST=${STORM_FRONTEND_PUBLIC_HOST}
The problem could be that the source on /opt/glite/yaim/bin/../defaults/se_storm_backend.pre is done before the source on our /etc/yaim/site-info.def so the variable ${STORM_BACKEND_HOST} has not been already defined at that point.