Difference: FactoryRpmInstall (27 vs. 28)

Revision 282019/05/16 - Main.JeffreyDost

Line: 1 to 1
 
META TOPICPARENT name="GlideinFactoryFAQ"

Factory RPM Install

Line: 24 to 24
  https://opensciencegrid.github.io/docs/common/ca/#managing-certificate-revocation-lists
Deleted:
<
<
Create special factory and condor users (cern only):
# not sure how CERN defines uid / gid but those may need to be explicily set
useradd _condor
useradd _gfactory
 Install condor and factory rpms:
yum install condor
Line: 39 to 32
 yum install glideinwms-factory
Deleted:
<
<
Chown rpm files to correct user (cern only):
for f in `rpm -ql condor`;do if [ `stat -c %U $f` = condor ];then chown _condor:_condor $f;fi;done
for f in `rpm -ql glideinwms-factory-condor`;do if [ `stat -c %U $f` = condor ];then chown _condor:_condor $f;fi;done
for f in `rpm -ql glideinwms-factory`;do if [ `stat -c %U $f` = gfactory ];then chown _gfactory:_gfactory $f;fi;done

Modify factry startup script to use _gfactory (cern only):

sed -i 's/^FACTORY_USER=gfactory/FACTORY_USER=_gfactory/' /etc/init.d/gwms-factory
 Use our own schedd and secondary schedd configs instead of what ships with rpm:
Line: 60 to 41
 wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/master/etc/condor_config/11_gwms_factory_secondary_schedds.config.8.6 -O 11_gwms_factory_secondary_schedds.config
Changed:
<
<
Fix QUEUE_SUPER_USERS (cern only):

sed -i 's/gfactory/_gfactory/' 00_gwms_factory_general.config

Create secondary schedd dirs (non-cern):

>
>
Create secondary schedd dirs:
 
for ((i = 1;i <= 9;i++));do
install -o condor -g condor -d /var/lib/condor/schedd_glideins${i}/execute
Line: 76 to 51
 done
Deleted:
<
<
Create secondary schedd dirs (cern):
for ((i = 1;i <= 9;i++));do
install -o _condor -g _condor -d /var/lib/condor/schedd_glideins${i}/execute
install -o _condor -g _condor -d /var/lib/condor/schedd_glideins${i}/lock
install -o _condor -g _condor -d /var/lib/condor/schedd_glideins${i}/procd_pipe
install -o _condor -g _condor -d /var/lib/condor/schedd_glideins${i}/spool
done

Fix the factory user in /etc/condor/privsep_config (cern only):

valid-caller-uids = _gfactory
valid-caller-gids = _gfactory
 Create the FE DN file:
touch /etc/condor/config.d/90_gwms_dns.config
Line: 99 to 58
  Add our usual 99_local_tweaks.config file and add the needed local settings
Deleted:
<
<
Special settings for GOC:
# added IN_ prefix to not limit outgoing connections 2014-08-08 --Jeff
IN_LOWPORT=20000
IN_HIGHPORT=50000

#goc uses nonstandard locations here
GSI_DAEMON_CERT =  /etc/grid-security/host/cert.pem
GSI_DAEMON_KEY  =  /etc/grid-security/host/key.pem
 Special settings for CERN:
# added IN_ prefix to not limit outgoing connections 2014-08-08 --Jeff
IN_LOWPORT=20000
IN_HIGHPORT=25000
Deleted:
<
<
# change to whatever uid / gid cern actually uses CONDOR_IDS = 100003.100003
 

Modify /etc/gwms-factory/glideinWMS.xml as needed. Everything should look like our usual config, except keep the following:

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback