Factory RPM Install

Contents

Instructions

Create gfactory user first, before installing rpms, so it is a real user with login and shell:

useradd gfactory

Install epel and osg repos as outlined:

https://opensciencegrid.github.io/docs/common/yum/#installing-and-configuring-repositories

Install OSG CA certs:

yum install osg-ca-certs

Install fetch-crl, and enable and start fetch-crl-cron:

https://opensciencegrid.github.io/docs/common/ca/#managing-certificate-revocation-lists

Install condor and factory rpms:

yum install condor
yum install condor-cream-gahp
yum install glideinwms-factory-condor
yum install glideinwms-factory

Use our own schedd and secondary schedd configs instead of what ships with rpm:

cd /etc/condor/config.d
rm 02_gwms_factory_schedds.config
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/master/etc/condor_config/02_gwms_factory_schedds.config
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

Create secondary schedd dirs:

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

Create the FE DN file:

touch /etc/condor/config.d/90_gwms_dns.config

Add our usual 99_local_tweaks.config file and add the needed local settings

Special settings for CERN:

# added IN_ prefix to not limit outgoing connections 2014-08-08 --Jeff
IN_LOWPORT=20000
IN_HIGHPORT=25000

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

glidein_name="gfactory_instance"
factory_versioning="False"

Factory versioning doesn't make sense for rpm installations.

Also don't modify any of the rpm default path settings.

Host any custom stripts in:

/etc/gwms-factory

Ensure

<entries>
</entries>
section in xml is empty, and set up the shared configs:

http://www.t2.ucsd.edu/twiki2/bin/view/UCSDTier2/SharedFactoryConf

Add the FE user(s) in the usual way:

http://www.t2.ucsd.edu/twiki2/bin/view/UCSDTier2/AddFrontend

Create the glidein tarballs the usual way but note they should now go into /var/lib/gwms-factory/condor:

http://www.t2.ucsd.edu/twiki2/bin/view/UCSDTier2/UpgradeGlideCondor#Create_Stripped_Tarballs

When finished modding glideinWMS.xml, run upgrade (rhel6):

service gwms-factory upgrade

rhel7:

gwms-factory upgrade

Start all services (rhel6):

service httpd start
service condor start
service gwms-factory start

rhel7:

systemctl start httpd
systemctl start condor
systemctl start gwms-factory

Notable Differences in RPM Installation

The factory config file is now located at:

/etc/gwms-factory/glideinWMS.xml

Commands to start, stop, reconfg, etc all use the init.d script, e.g.:

/etc/init.d/gwms-factory start

The factory working directory is now:

/var/lib/gwms-factory/work-dir

The web monitoring url has changed to:

http://hostname/factory/monitor/

Command line tools are now located in

/usr/bin

Some are even renamed without extensions, e.g. cat_StartdLog

-- JeffreyDost - 2014/11/14


This topic: UCSDTier2 > GlideinFactoryFAQ > FactoryRpmInstall
Topic revision: r28 - 2019/05/16 - 15:24:04 - JeffreyDost
 
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