@@ -144,9 +144,9 @@ installSite() {
144
144
# will be wrong on the client
145
145
ln -s " ${SERVERINSTALLDIR} /diracos/etc/grid-security/certificates/ca.cert.pem" " ${SERVERINSTALLDIR} /diracos/etc/grid-security/certificates/$caHash .0"
146
146
147
- # Copy the user cert and key to the correct directory
148
- cp /ca/certs/client.pem " ${SERVERINSTALLDIR} /user/"
149
- cp /ca/certs/client.key " ${SERVERINSTALLDIR} /user/"
147
+ # # Copy the user cert and key to the correct directory
148
+ # cp /ca/certs/client.pem "${SERVERINSTALLDIR}/user/"
149
+ # cp /ca/certs/client.key "${SERVERINSTALLDIR}/user/"
150
150
151
151
rm -rf " ${SERVERINSTALLDIR} /etc"
152
152
ln -s " ${SERVERINSTALLDIR} /diracos/etc" " ${SERVERINSTALLDIR} /etc"
@@ -231,10 +231,10 @@ fullInstallDIRAC() {
231
231
cat " ${SERVERINSTALLDIR} /diracos/etc/Production.cfg"
232
232
fi
233
233
234
- if ! diracCredentials; then
235
- echo " ERROR: diracCredentials failed" >&2
236
- exit 1
237
- fi
234
+ # if ! diracCredentials; then
235
+ # echo "ERROR: diracCredentials failed" >&2
236
+ # exit 1
237
+ # fi
238
238
239
239
# just add a site
240
240
if ! diracAddSite; then
@@ -243,7 +243,8 @@ fullInstallDIRAC() {
243
243
fi
244
244
245
245
echo " ==> Restarting Configuration Server"
246
- dirac-restart-component Configuration Server ${DEBUG}
246
+ dirac-restart-component Configuration Server -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
247
+ # dirac-restart-component Tornado Tornado -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
247
248
248
249
# Install the Framework
249
250
findDatabases ' FrameworkSystem'
@@ -253,7 +254,6 @@ fullInstallDIRAC() {
253
254
exit 1
254
255
fi
255
256
256
- dirac-restart-component Tornado Tornado ${DEBUG}
257
257
258
258
findServices ' FrameworkSystem'
259
259
grep -v ' Tornado' services > disetServices
@@ -288,14 +288,14 @@ fullInstallDIRAC() {
288
288
cat " ${SERVERINSTALLDIR} /etc/Production.cfg"
289
289
290
290
echo " ==> Restarting Framework services"
291
- dirac-restart-component Framework ' *' ${DEBUG}
292
- dirac-restart-component Tornado Tornado ${DEBUG}
291
+ dirac-restart-component Framework ' *' -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
292
+ # dirac-restart-component Tornado Tornado -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
293
293
294
294
# Now all the rest
295
295
296
296
# slave CS
297
297
if [[ " ${TEST_HTTPS:- Yes} " = " No" ]]; then
298
- if ! dirac-install-component Configuration TornadoConfiguration " ${DEBUG} " ; then
298
+ if ! dirac-install-component Configuration TornadoConfiguration -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} " ; then
299
299
echo ' ERROR: dirac-install-component failed' >&2
300
300
exit 1
301
301
fi
@@ -309,16 +309,10 @@ fullInstallDIRAC() {
309
309
exit 1
310
310
fi
311
311
312
- # upload proxies
313
- if ! diracProxies; then
314
- echo " ERROR: diracProxies failed" >&2
315
- exit 1
316
- fi
317
-
318
312
# fix the DBs (for the FileCatalog and MultiVOFileCatalog)
319
313
diracDFCDB
320
314
diracMVDFCDB
321
- python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-dbs.py" " ${DEBUG} "
315
+ python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-dbs.py" -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} "
322
316
323
317
# services (not looking for FrameworkSystem already installed)
324
318
findServices ' exclude' ' FrameworkSystem'
@@ -341,66 +335,66 @@ fullInstallDIRAC() {
341
335
342
336
# install an additional FileCatalog service for multi VO metadata tests
343
337
if [[ " ${TEST_HTTPS:- Yes} " = " No" ]]; then
344
- echo " ==> calling dirac-install-component DataManagement MultiVOFileCatalog -m FileCatalog -p Port=9198 -p Database=MultiVOFileCatalogDB ${DEBUG} "
345
- if ! dirac-install-component DataManagement MultiVOFileCatalog -m FileCatalog -p Port=9198 -p Database=MultiVOFileCatalogDB " ${DEBUG} " ; then
338
+ echo " ==> calling dirac-install-component DataManagement MultiVOFileCatalog -m FileCatalog -p Port=9198 -p Database=MultiVOFileCatalogDB -o /DIRAC/Security/UseServerCertificate=True ${DEBUG} "
339
+ if ! dirac-install-component DataManagement MultiVOFileCatalog -m FileCatalog -p Port=9198 -p Database=MultiVOFileCatalogDB -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} " ; then
346
340
echo ' ERROR: dirac-install-component failed' >&2
347
341
exit 1
348
342
fi
349
343
else
350
- echo " ==> calling dirac-install-component DataManagement TornadoMultiVOFileCatalog -m TornadoFileCatalog -p Port=9198 -p Protocol=https -p Database=MultiVOFileCatalogDB ${DEBUG} "
351
- if ! dirac-install-component DataManagement TornadoMultiVOFileCatalog -m TornadoFileCatalog -p Port=9198 -p Protocol=https -p Database=MultiVOFileCatalogDB " ${DEBUG} " ; then
344
+ echo " ==> calling dirac-install-component DataManagement TornadoMultiVOFileCatalog -m TornadoFileCatalog -p Port=9198 -p Protocol=https -p Database=MultiVOFileCatalogDB -o /DIRAC/Security/UseServerCertificate=True ${DEBUG} "
345
+ if ! dirac-install-component DataManagement TornadoMultiVOFileCatalog -m TornadoFileCatalog -p Port=9198 -p Protocol=https -p Database=MultiVOFileCatalogDB -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} " ; then
352
346
echo ' ERROR: dirac-install-component failed' >&2
353
347
exit 1
354
348
fi
355
349
echo " ==> Restarting Tornado Tornado"
356
350
dirac-restart-component Tornado Tornado ${DEBUG}
357
351
fi
358
352
# fix the DFC services options
359
- python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-services.py" " ${DEBUG} "
353
+ python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-services.py" -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} "
360
354
361
355
# fix the SandboxStore and other stuff
362
- python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-server.py" " ${DEBUG} "
356
+ python " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-cfg-update-server.py" -o /DIRAC/Security/UseServerCertificate=True " ${DEBUG} "
363
357
364
358
echo " ==> Restarting Tornado Tornado"
365
- dirac-restart-component Tornado Tornado ${DEBUG}
359
+ # dirac-restart-component Tornado Tornado -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
366
360
367
361
if [[ " ${TEST_HTTPS:- Yes} " = " No" ]]; then
368
362
echo " ==> Restarting WorkloadManagement SandboxStore"
369
- dirac-restart-component WorkloadManagement SandboxStore ${DEBUG}
363
+ dirac-restart-component WorkloadManagement SandboxStore -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
370
364
echo " ==> Restarting DataManagement FileCatalog"
371
- dirac-restart-component DataManagement FileCatalog ${DEBUG}
365
+ dirac-restart-component DataManagement FileCatalog -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
372
366
echo " ==> Restarting DataManagement MultiVOFileCatalog"
373
- dirac-restart-component DataManagement MultiVOFileCatalog ${DEBUG}
367
+ dirac-restart-component DataManagement MultiVOFileCatalog -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
374
368
echo " ==> Restarting ResourceStatus *"
375
- dirac-restart-component ResourceStatus ResourceStatus ${DEBUG}
376
- dirac-restart-component ResourceStatus ResourceManagement ${DEBUG}
377
- dirac-restart-component ResourceStatus Publisher ${DEBUG}
369
+ dirac-restart-component ResourceStatus ResourceStatus -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
370
+ dirac-restart-component ResourceStatus ResourceManagement -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
371
+ dirac-restart-component ResourceStatus Publisher -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
378
372
fi
379
373
380
374
echo " ==> Restarting WorkloadManagement Matcher"
381
- dirac-restart-component WorkloadManagement Matcher ${DEBUG}
375
+ dirac-restart-component WorkloadManagement Matcher -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
382
376
383
377
echo " ==> Restarting Configuration Server"
384
- dirac-restart-component Configuration Server ${DEBUG}
378
+ dirac-restart-component Configuration Server -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
385
379
386
380
echo " ==> Restarting DataManagement StorageElement(s)"
387
- dirac-restart-component DataManagement SE-1 ${DEBUG}
388
- dirac-restart-component DataManagement SE-2 ${DEBUG}
381
+ dirac-restart-component DataManagement SE-1 -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
382
+ dirac-restart-component DataManagement SE-2 -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
389
383
390
384
# populate RSS
391
385
echo " ==> Populating RSS DB"
392
- dirac-rss-sync --element Site --defaultStatus Banned -o LogLevel=VERBOSE
393
- dirac-rss-sync --element Resource --defaultStatus Banned -o LogLevel=VERBOSE
386
+ dirac-rss-sync --element Site --defaultStatus Banned -o LogLevel=VERBOSE -o /DIRAC/Security/UseServerCertificate=True
387
+ dirac-rss-sync --element Resource --defaultStatus Banned -o LogLevel=VERBOSE -o /DIRAC/Security/UseServerCertificate=True
394
388
# init RSS
395
389
echo " ==> Initializing status of sites and resources in RSS"
396
- dirac-rss-sync --init --defaultStatus Banned -o LogLevel=VERBOSE
390
+ dirac-rss-sync --init --defaultStatus Banned -o LogLevel=VERBOSE -o /DIRAC/Security/UseServerCertificate=True
397
391
# Setting by hand
398
- dirac-rss-set-status --element Resource --name ProductionSandboxSE --status Active --reason " Why not?"
399
- dirac-rss-set-status --element Resource --name jenkins.cern.ch --status Active --reason " Why not?"
400
- dirac-rss-set-status --element Resource --name JENKINS-FTS3 --status Active --reason " Why not?"
401
- dirac-rss-set-status --element Resource --name FileCatalog --status Active --reason " Why not?"
402
- dirac-rss-set-status --element Site --name DIRAC.Jenkins.ch --status Active --reason " Why not?"
403
- dirac-admin-allow-se SE-1 SE-2 S3-DIRECT S3-INDIRECT --All
392
+ dirac-rss-set-status --element Resource --name ProductionSandboxSE --status Active --reason " Why not?" -o /DIRAC/Security/UseServerCertificate=True
393
+ dirac-rss-set-status --element Resource --name jenkins.cern.ch --status Active --reason " Why not?" -o /DIRAC/Security/UseServerCertificate=True
394
+ dirac-rss-set-status --element Resource --name JENKINS-FTS3 --status Active --reason " Why not?" -o /DIRAC/Security/UseServerCertificate=True
395
+ dirac-rss-set-status --element Resource --name FileCatalog --status Active --reason " Why not?" -o /DIRAC/Security/UseServerCertificate=True
396
+ dirac-rss-set-status --element Site --name DIRAC.Jenkins.ch --status Active --reason " Why not?" -o /DIRAC/Security/UseServerCertificate=True
397
+ dirac-admin-allow-se SE-1 SE-2 S3-DIRECT S3-INDIRECT --All -o /DIRAC/Security/UseServerCertificate=True
404
398
405
399
# agents
406
400
findAgents
@@ -418,20 +412,20 @@ fullInstallDIRAC() {
418
412
419
413
if [[ " ${TEST_HTTPS:- Yes} " = " No" ]]; then
420
414
echo " ==> Restarting WorkloadManagement JobManager"
421
- dirac-restart-component WorkloadManagement JobManager ${DEBUG}
415
+ dirac-restart-component WorkloadManagement JobManager -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
422
416
else
423
417
echo " ==> Restarting Tornado Tornado"
424
- dirac-restart-component Tornado Tornado ${DEBUG}
418
+ dirac-restart-component Tornado Tornado -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
425
419
fi
426
420
427
421
echo ' Content of etc/Production.cfg:'
428
422
cat " ${SERVERINSTALLDIR} /etc/Production.cfg"
429
423
430
424
echo " ==> Restarting Configuration Server"
431
- dirac-restart-component Configuration Server ${DEBUG}
425
+ dirac-restart-component Configuration Server -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
432
426
433
427
echo " ==> Restarting Tornado Tornado"
434
- dirac-restart-component Tornado Tornado ${DEBUG}
428
+ # dirac-restart-component Tornado Tornado -o /DIRAC/Security/UseServerCertificate=True ${DEBUG}
435
429
436
430
}
437
431
0 commit comments