forked from PanDAWMS/panda-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
133 lines (81 loc) · 3.04 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Installation
--------------------
1. Checkout panda-common and panda-server.
$ svn co svn+ssh://svn.cern.ch/reps/panda/panda-common/tags/X.Y.Z panda-common
$ svn co svn+ssh://svn.cern.ch/reps/panda/panda-server/tags/A.B.C panda-server
* For tar-ball installation
$ cd panda-common
$ python setup.py install --prefix=INSTALLDIR
$ cd ../panda-server
$ python setup.py install --prefix=INSTALLDIR
where INSTALLDIR is /data/atlpan/testsrv, for example.
* For RPM installation
$ cd panda-common
$ python setup.py bdist_rpm
$ sudo rpm -Uvh dist/panda-common-*.noarch.rpm
$ cd ../panda-server
$ python setup.py bdist_rpm
$ sudo rpm -Uvh dist/panda-server-*.noarch.rpm
INSTALLDIR is set to /data/atlpan/srv automatically for RPMs
2. Modify config files
$ cd INSTALLDIR/etc/panda
$ emacs -nw panda_server.cfg
fix FIXME
dq2_dir = /opt/dq2
->
dq2_dir = /data/atlpan/DQ2Clients/DQ2Clients
$ emacs -nw panda_server-httpd.conf
SSLCertificateFile InstallDir/etc/panda/server.crt
SSLCertificateKeyFile InstallDir/etc/panda/server.key
->
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
$ cd INSTALLDIR/etc/sysconfig
$ emacs -nw panda_server
add
export X509_USER_PROXY=/data/atlpan/x509up_u25606
3. Add .gacl
$ cd INSTALLDIR/lib/python*/site-packages/pandaserver/server/
$ emacs -nw .gacl
<gacl>
<entry>
<any-user/>
<allow><read/><list/></allow>
</entry>
</gacl>
4. Add grid-env.sh if needed
e.g.,
$ cat INSTALLDIR/etc/grid-env.sh
export LD_LIBRARY_PATH=/opt/glite/lib64:/opt/globus/lib:/opt/lcg/lib64:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/glite/lib64/python:/opt/lcg/lib64/python:$PYTHONPATH
export PATH=/opt/edg/bin:/opt/glite/bin:/opt/globus/bin:/opt/lcg/bin:$PATH
and modify panda_server.cfg
$ emacs -nw INSTALLDIR/etc/panda/panda_server.cfg
glite_source = /opt/glite/etc/profile.d/grid-env.sh
->
glite_source = INSTALLDIR/etc/grid-env.sh
5. Make log and cache dirs, and change owner if RPM is used
mkdir -p INSTALLDIR/var/log/panda
mkdir -p INSTALLDIR/var/log/panda/wsgisocks
mkdir -p INSTALLDIR/var/cache/pandaserver
chown atlpan:zp INSTALLDIR/var/log/panda
chown atlpan:zp INSTALLDIR/var/log/panda/wsgisocks
chown atlpan:zp INSTALLDIR/var/cache/pandaserver
6. For voatlas
cp ~/devsrv/share/httpd-pandasrv /etc/rc.d/init.d/
/sbin/chkconfig --add httpd-pandasrv
cp ~/devsrv/share/panda_server-httpd.conf.VM /data/atlpan/srv/etc/panda/panda_server-httpd.conf
cp ~/devsrv/share/panda_server.cfg.VM /data/atlpan/srv/etc/panda/panda_server.cfg
cp ~/devsrv/share/x509up_u25606_novoms /data/atlpan/
chown atlpan:zp /data/atlpan/x509up_u25606_novoms
cp ~/devsrv/share/pandasrv /etc/logrotate.d/
cp ~/devsrv/share/pandasrv.cron /etc/cron.d/
Start the server
--------------------
Add the following to crontab.
0-59/5 * * * * INSTALLDIR/usr/bin/panda_server-add > /dev/null 2>&1
15 0-21/3 * * * INSTALLDIR/usr/bin/panda_server-copyArchive > /dev/null 2>&1
Run the server.
$ sudo INSTALLDIR/etc/rc.d/init.d/panda_server start
Stop the server.
$ sudo INSTALLDIR/etc/rc.d/init.d/panda_server stop