Difference: FactoryRpmInstall (1 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:

Revision 272018/05/05 - Main.JeffreyDost

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

Factory RPM Install

Revision 262018/05/05 - Main.JeffreyDost

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

Factory RPM Install

Line: 144 to 144
  http://www.t2.ucsd.edu/twiki2/bin/view/UCSDTier2/UpgradeGlideCondor#Create_Stripped_Tarballs
Changed:
<
<
When finished modding glideinWMS.xml, run upgrade:
/etc/init.d/gwms-factory upgrade
>
>
When finished modding glideinWMS.xml, run upgrade (rhel6):
service gwms-factory upgrade
 
Changed:
<
<
Start all services:
>
>
rhel7:
gwms-factory upgrade

Start all services (rhel6):

service httpd start
service condor start
service gwms-factory start

rhel7:

 
Changed:
<
<
/etc/init.d/httpd start /etc/init.d/condor start /etc/init.d/gwms-factory start
>
>
systemctl start httpd systemctl start condor systemctl start gwms-factory
 

Notable Differences in RPM Installation

Revision 252018/05/04 - Main.JeffreyDost

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

Factory RPM Install

Line: 131 to 131
 Host any custom stripts in:
/etc/gwms-factory
Added:
>
>
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

Revision 242018/05/04 - Main.JeffreyDost

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

Factory RPM Install

Line: 8 to 8
 

Instructions

Added:
>
>
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

Revision 232018/05/04 - Main.JeffreyDost

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

Factory RPM Install

Line: 18 to 18
  Install fetch-crl, and enable and start fetch-crl-cron:
Changed:
<
<
https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCertAuth#Managing_Certificate_Revocation
>
>
https://opensciencegrid.github.io/docs/common/ca/#managing-certificate-revocation-lists
  Create special factory and condor users (cern only):
Line: 31 to 31
 
yum install condor
yum install condor-cream-gahp
Deleted:
<
<
yum install condor-python
 yum install glideinwms-factory-condor yum install glideinwms-factory
Line: 53 to 52
 
cd /etc/condor/config.d
rm 02_gwms_factory_schedds.config
Changed:
<
<
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/11_gwms_factory_secondary_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
 

Fix QUEUE_SUPER_USERS (cern only):

Line: 94 to 93
 touch /etc/condor/config.d/90_gwms_dns.config
Deleted:
<
<
Add the FE user(s) in the usual way:

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

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

Special settings for GOC:

Line: 121 to 116
 CONDOR_IDS = 100003.100003
Deleted:
<
<
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

 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"
Line: 136 to 127
 Host any custom stripts in:
/etc/gwms-factory
Added:
>
>
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:
/etc/init.d/gwms-factory upgrade

Revision 222018/05/04 - Main.JeffreyDost

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

Factory RPM Install

Line: 8 to 8
 

Instructions

Changed:
<
<
Install epel and osg 3.3 repos as outlined:
>
>
Install epel and osg repos as outlined:
 
Changed:
<
<
https://twiki.grid.iu.edu/bin/view/Documentation/Release3/YumRepositories
>
>
https://opensciencegrid.github.io/docs/common/yum/#installing-and-configuring-repositories
  Install OSG CA certs:

Revision 212017/04/08 - Main.JeffreyDost

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

Factory RPM Install

Line: 31 to 31
 
yum install condor
yum install condor-cream-gahp
Added:
>
>
yum install condor-python
 yum install glideinwms-factory-condor yum install glideinwms-factory

Revision 202017/04/05 - Main.JeffreyDost

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

Factory RPM Install

Line: 47 to 47
 sed -i 's/^FACTORY_USER=gfactory/FACTORY_USER=_gfactory/' /etc/init.d/gwms-factory
Changed:
<
<
Fix some broken condor configs:
>
>
Use our own schedd and secondary schedd configs instead of what ships with rpm:
 
cd /etc/condor/config.d
Deleted:
<
<
echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config
 rm 02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/11_gwms_factory_secondary_schedds.config

Revision 192017/04/05 - Main.JeffreyDost

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

Factory RPM Install

Line: 29 to 29
  Install condor and factory rpms:
Changed:
<
<
yum --enablerepo=epel --enablerepo=osg install condor.x86_64 yum --enablerepo=epel --enablerepo=osg install condor-cream-gahp yum --enablerepo=epel --enablerepo=osg install glideinwms-factory
>
>
yum install condor yum install condor-cream-gahp yum install glideinwms-factory-condor yum install glideinwms-factory
 

Chown rpm files to correct user (cern only):

Line: 46 to 47
 sed -i 's/^FACTORY_USER=gfactory/FACTORY_USER=_gfactory/' /etc/init.d/gwms-factory
Deleted:
<
<
As of condor 8.2.4, disable LOCAL_CONFIG_FILE to prevent overriding config.d files:
sed -i 's/^LOCAL_CONFIG_FILE/#LOCAL_CONFIG_FILE/' /etc/condor/condor_config
 Fix some broken condor configs:

Revision 182017/04/05 - Main.JeffreyDost

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

Factory RPM Install

Line: 8 to 8
 

Instructions

Changed:
<
<
Install epel and osg 3.2 repos as outlined:
>
>
Install epel and osg 3.3 repos as outlined:
  https://twiki.grid.iu.edu/bin/view/Documentation/Release3/YumRepositories
Line: 16 to 16
  yum install osg-ca-certs
Changed:
<
<
Install fetch-crl, and enable and start both boot and cron:
>
>
Install fetch-crl, and enable and start fetch-crl-cron:
  https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCertAuth#Managing_Certificate_Revocation
Deleted:
<
<
Disable epel and osg repos, we will manually enable them only when we need to upgrade factory and condor components:

sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/osg.repo

For rhel6:

sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/osg-el6.repo
 Create special factory and condor users (cern only):
# not sure how CERN defines uid / gid but those may need to be explicily set

Revision 172015/10/28 - Main.JeffreyDost

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

Factory RPM Install

Line: 70 to 70
 cd /etc/condor/config.d echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config rm 02_gwms_factory_schedds.config
Changed:
<
<
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/11_gwms_factory_secondary_schedds.config
>
>
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/11_gwms_factory_secondary_schedds.config
 

Fix QUEUE_SUPER_USERS (cern only):

Revision 162015/05/05 - Main.JeffreyDost

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

Factory RPM Install

Line: 68 to 68
 
cd /etc/condor/config.d
Deleted:
<
<
rm 01_gwms_factory_collectors.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/01_gwms_factory_collectors.config echo "# zero out but don't delete" > 03_gwms_factory_local.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/03_gwms_local.config
 echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config rm 02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/11_gwms_factory_secondary_schedds.config
Changed:
<
<
Fix QUEUE_SUPER_USERS (non-cern):
>
>
Fix QUEUE_SUPER_USERS (cern only):
 
Changed:
<
<
sed -i 's/wmsfactory/gfactory/' 00_gwms_factory_general.config

Fix QUEUE_SUPER_USERS (cern):

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

Create secondary schedd dirs (non-cern):

Revision 152015/01/23 - Main.JeffreyDost

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

Factory RPM Install

Revision 142015/01/22 - Main.JeffreyDost

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

Factory RPM Install

Line: 27 to 27
 sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/osg.repo
Added:
>
>
For rhel6:
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/osg-el6.repo
 Create special factory and condor users (cern only):
# not sure how CERN defines uid / gid but those may need to be explicily set

Revision 132014/12/10 - Main.JeffreyDost

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

Factory RPM Install

Line: 53 to 53
 sed -i 's/^FACTORY_USER=gfactory/FACTORY_USER=_gfactory/' /etc/init.d/gwms-factory
Changed:
<
<
As of condor 8.3.2, disable LOCAL_CONFIG_FILE to prevent overriding config.d files:
>
>
As of condor 8.2.4, disable LOCAL_CONFIG_FILE to prevent overriding config.d files:
 
sed -i 's/^LOCAL_CONFIG_FILE/#LOCAL_CONFIG_FILE/' /etc/condor/condor_config

Revision 122014/12/10 - Main.JeffreyDost

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

Factory RPM Install

Line: 37 to 37
 Install condor and factory rpms:
yum --enablerepo=epel --enablerepo=osg install condor.x86_64
Added:
>
>
yum --enablerepo=epel --enablerepo=osg install condor-cream-gahp
 yum --enablerepo=epel --enablerepo=osg install glideinwms-factory
Deleted:
<
<
Temporary workaround to install cream gahp:
yum install --enablerepo=epel --enablerepo=osg-development condor-cream-gahp
 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

Revision 112014/11/19 - Main.JeffreyDost

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

Factory RPM Install

Line: 40 to 40
 yum --enablerepo=epel --enablerepo=osg install glideinwms-factory
Added:
>
>
Temporary workaround to install cream gahp:
yum install --enablerepo=epel --enablerepo=osg-development condor-cream-gahp
 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

Revision 102014/11/18 - Main.JeffreyDost

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

Factory RPM Install

Line: 153 to 153
  Also don't modify any of the rpm default path settings.
Added:
>
>
Host any custom stripts in:
/etc/gwms-factory
 When finished modding glideinWMS.xml, run upgrade:
/etc/init.d/gwms-factory upgrade

Revision 92014/11/18 - Main.JeffreyDost

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

Factory RPM Install

Line: 36 to 36
  Install condor and factory rpms:
Changed:
<
<
yum --enablerepo=epel --enablerepo=osg install condor
>
>
yum --enablerepo=epel --enablerepo=osg install condor.x86_64
 yum --enablerepo=epel --enablerepo=osg install glideinwms-factory

Revision 82014/11/17 - Main.JeffreyDost

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

Factory RPM Install

Added:
>
>

Contents

Instructions

 Install epel and osg 3.2 repos as outlined:

https://twiki.grid.iu.edu/bin/view/Documentation/Release3/YumRepositories

Line: 158 to 164
 /etc/init.d/gwms-factory start
Added:
>
>

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

Revision 72014/11/17 - Main.JeffreyDost

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

Factory RPM Install

Line: 23 to 23
  Create special factory and condor users (cern only):
Added:
>
>
# not sure how CERN defines uid / gid but those may need to be explicily set
 useradd _condor useradd _gfactory
Line: 61 to 62
 echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config rm 02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/02_gwms_factory_schedds.config
Changed:
<
<
wget --no-check-certificate https://github.com/jdost321/factools/blob/dev/etc/condor_config/generic/11_gwms_factory_secondary_schedds.config
>
>
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/11_gwms_factory_secondary_schedds.config
 

Fix QUEUE_SUPER_USERS (non-cern):

Line: 96 to 97
 done
Added:
>
>
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

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

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

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

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

# change to whatever uid / gid cern actually uses
CONDOR_IDS = 100003.100003

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

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.

When finished modding glideinWMS.xml, run upgrade:

/etc/init.d/gwms-factory upgrade

Start all services:

/etc/init.d/httpd start
/etc/init.d/condor start
/etc/init.d/gwms-factory start
 -- JeffreyDost - 2014/11/14 \ No newline at end of file

Revision 62014/11/17 - Main.JeffreyDost

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

Factory RPM Install

Line: 59 to 59
 echo "# zero out but don't delete" > 03_gwms_factory_local.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/03_gwms_local.config echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config
Added:
>
>
rm 02_gwms_factory_schedds.config wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/02_gwms_factory_schedds.config wget --no-check-certificate https://github.com/jdost321/factools/blob/dev/etc/condor_config/generic/11_gwms_factory_secondary_schedds.config
 

Fix QUEUE_SUPER_USERS (non-cern):

Line: 73 to 76
 sed -i 's/wmsfactory/_gfactory/' 00_gwms_factory_general.config
Added:
>
>
Create secondary schedd dirs (non-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

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
 -- JeffreyDost - 2014/11/14 \ No newline at end of file

Revision 52014/11/17 - Main.JeffreyDost

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

Factory RPM Install

Line: 50 to 50
 sed -i 's/^LOCAL_CONFIG_FILE/#LOCAL_CONFIG_FILE/' /etc/condor/condor_config
Deleted:
<
<
Install factools:

cd /opt
git clone https://github.com/jdost321/factools.git
cd factools
git checkout dev
 Fix some broken condor configs:

Revision 42014/11/15 - Main.JeffreyDost

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

Factory RPM Install

Line: 14 to 14
  https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCertAuth#Managing_Certificate_Revocation
Changed:
<
<
Disable epel and osg repos, we will explicitly enable them only when we need to upgrade factory and condor components:
>
>
Disable epel and osg repos, we will manually enable them only when we need to upgrade factory and condor components:
 
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo
Line: 59 to 59
 git checkout dev
Added:
>
>
Fix some broken condor configs:

cd /etc/condor/config.d
rm 01_gwms_factory_collectors.config
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/01_gwms_factory_collectors.config
echo "# zero out but don't delete" > 03_gwms_factory_local.config
wget --no-check-certificate https://raw.githubusercontent.com/jdost321/factools/dev/etc/condor_config/generic/03_gwms_local.config
echo "# zero out but don't delete" > 11_gwms_factory_secondary_collectors.config

Fix QUEUE_SUPER_USERS (non-cern):

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

Fix QUEUE_SUPER_USERS (cern):

sed -i 's/wmsfactory/_gfactory/' 00_gwms_factory_general.config
 -- JeffreyDost - 2014/11/14 \ No newline at end of file

Revision 32014/11/14 - Main.JeffreyDost

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

Factory RPM Install

Line: 50 to 50
 sed -i 's/^LOCAL_CONFIG_FILE/#LOCAL_CONFIG_FILE/' /etc/condor/condor_config
Added:
>
>
Install factools:

cd /opt
git clone https://github.com/jdost321/factools.git
cd factools
git checkout dev
 -- JeffreyDost - 2014/11/14

Revision 22014/11/14 - Main.JeffreyDost

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

Factory RPM Install

Install epel and osg 3.2 repos as outlined:

https://twiki.grid.iu.edu/bin/view/Documentation/Release3/YumRepositories

Install OSG CA certs:

yum install osg-ca-certs

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

https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCertAuth#Managing_Certificate_Revocation

Disable epel and osg repos, we will explicitly enable them only when we need to upgrade factory and condor components:

sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/osg.repo

Create special factory and condor users (cern only):

useradd _condor
useradd _gfactory

Install condor and factory rpms:

yum --enablerepo=epel --enablerepo=osg install condor
yum --enablerepo=epel --enablerepo=osg install glideinwms-factory

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

As of condor 8.3.2, disable LOCAL_CONFIG_FILE to prevent overriding config.d files:

sed -i 's/^LOCAL_CONFIG_FILE/#LOCAL_CONFIG_FILE/' /etc/condor/condor_config
 -- JeffreyDost - 2014/11/14 \ No newline at end of file

Revision 12014/11/14 - Main.JeffreyDost

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="GlideinFactoryFAQ"
-- JeffreyDost - 2014/11/14
 
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