Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cmsos
worksuite
Commits
e244f7a5
Commit
e244f7a5
authored
Sep 08, 2020
by
Remi Mommsen
Committed by
Dainius Simelevicius
Sep 30, 2020
Browse files
references #180: create configs with configurator for folded setup
parent
b6cf0982
Changes
2
Hide whitespace changes
Inline
Side-by-side
evb/test/scripts/createConfig.py
View file @
e244f7a5
...
...
@@ -35,7 +35,8 @@ class CreateConfig:
#configFile = "/nfshome0/mommsen/daq2Test/daq2val/x86_64_slc6/daq2val/29110628/configuration.xml"
configFile
=
"/tmp/"
+
time
.
strftime
(
'%d%H%M%S'
)
+
".xml"
javaCmd
=
[
'java'
,
'-Doracle.net.tns_admin=/etc'
,
'-jar'
,
'/nfshome0/rcms/centralRcmsServices/staticContent/daq2_configurator/pro/lib/configurator.jar'
,
#'-jar','/nfshome0/rcms/centralRcmsServices/staticContent/daq2_configurator/pro/lib/configurator.jar',
'-jar'
,
'/nfshome0/mommsen/tmp/daq-configurator-1.11.0.jar'
,
'--properties'
,
self
.
args
[
'properties'
],
'--batch'
,
'--nBU'
,
self
.
args
[
'nBU'
],
...
...
@@ -49,11 +50,11 @@ class CreateConfig:
'--fbSet'
,
self
.
args
[
'fbSet'
]])
if
self
.
args
[
'daqval'
]:
javaCmd
.
extend
([
'--mainRCMSHost'
,
'cmsrc-daqvaldev.cms'
,
'--routingOptimizer'
,
'
EVB2
_OPTIMIZER'
,
'--account'
,
'daqlo
c
al'
,
'--site'
,
'daqval
dev
'
])
'--routingOptimizer'
,
'
STATIC
_OPTIMIZER'
,
'--account'
,
'daq
valdev_DAQ3VAL_g
lo
b
al'
,
'--site'
,
'
monitoring_zone_
daq
3
val'
])
else
:
javaCmd
.
extend
([
'--mainRCMSHost'
,
'cmsrc-daq.cms'
,
'--routingOptimizer'
,
'
GREEDY
_OPTIMIZER'
,
'--routingOptimizer'
,
'
STATIC
_OPTIMIZER'
,
'--account'
,
'daqlocal'
,
'--site'
,
'daq2'
])
if
self
.
args
[
'useBlacklist'
]:
javaCmd
.
extend
([
'--blacklistSetup'
,
'.cms'
])
...
...
@@ -148,8 +149,8 @@ class CreateConfig:
nBU
=
0
xcns
=
re
.
match
(
r
'\{(.*?)\}Partition'
,
config
.
tag
).
group
(
1
)
## Extract xdaq namespace
for
context
in
config
.
getiterator
(
str
(
QN
(
xcns
,
'Context'
))):
hostType
=
None
for
app
in
context
.
getiterator
(
str
(
QN
(
xcns
,
'Application'
))):
hostType
=
None
if
app
.
attrib
[
'class'
].
startswith
((
'evb::test::DummyFEROL'
,
'ferol::'
,
'ferol40::'
)):
hostType
=
'FEROLCONTROLLER'
+
str
(
nFRL
)
nFRL
+=
1
...
...
@@ -161,15 +162,18 @@ class CreateConfig:
fedIds
=
self
.
getFedIds
(
app
)
nRU
+=
1
elif
app
.
attrib
[
'class'
]
==
'evb::BU'
:
hostType
=
'BU'
+
str
(
nBU
)
nBU
+=
1
if
hostType
and
'RU'
in
hostType
:
#folded setup
hostType
=
hostType
.
replace
(
'RU'
,
'RUBU'
)
else
:
hostType
=
'BU'
+
str
(
nBU
)
nBU
+=
1
if
hostType
:
hostName
=
self
.
getHostFromURL
(
context
.
attrib
[
'url'
])
symbolMap
[
hostType
+
'_SOAP_HOST_NAME'
]
=
hostName
self
.
infoStr
+=
" "
+
hostName
if
'RU'
in
hostType
:
self
.
infoStr
+=
' with %d FEDs: %s'
%
(
len
(
fedIds
),
","
.
join
(
fedIds
))
if
hostType
==
'
RU
0'
:
if
hostType
[
-
1
]
==
'0'
:
self
.
infoStr
+=
' (EVM)'
self
.
infoStr
+=
'
\n
'
context
.
attrib
[
'url'
]
=
'http://'
+
hostType
+
'_SOAP_HOST_NAME'
+
':'
+
hostType
+
'_SOAP_PORT'
...
...
evb/test/scripts/createDaq3valConfigs.sh
View file @
e244f7a5
#!/bin/sh
#
swt=/DAQ3_Official/StandAlone/StandAlone_40g_infini_dropAtBU
swt
=
/Test/Remi/StandAlone/StandAlone_40g_infini_dropAtBU
hwcfg
=
/daq3val/eq_
190329
dir
=
../daq3val/20
1
903
29
swt
=
/DAQ3_Official
_folded
/StandAlone/StandAlone_40g_infini_dropAtBU
#
swt=/Test/Remi/StandAlone/StandAlone_40g_infini_dropAtBU
hwcfg
=
/daq3val/eq_
200904
dir
=
../daq3val/20
200
903
mkdir
-p
$dir
(
...
...
@@ -20,9 +20,17 @@ EVM_CREATE_FED1022 false
EOF
)
>
/tmp/fed1022_
$$
.txt
#for nbFEDs in '10' '15' '20' '25' '27' ; do
for
nbFEDs
in
'8'
;
do
(
cat
<<
EOF
d3vrubu-c2e33-10-01.cms
d3vrubu-c2e34-27-01.cms
EOF
)
>
/tmp/hostlist.txt
for
nbFEDs
in
'4'
'8'
'12'
'16'
'20'
'27'
'36'
;
do
#for nbFEDs in '4' ; do
fbSet
=
$hwcfg
/evb/fb_1x
${
nbFEDs
}
./createConfig.py
$fbSet
$swt
2
$dir
/
${
nbFEDs
}
x1x2
-s
/tmp/fed1022_
$$
.txt
--dpSet
${
fbSet
}
/dp_1x2
--daqval
-p
$HOME
/configurator/CONFIGURATOR_DAQ2VAL.properties
./createConfig.py
$fbSet
$swt
2
$dir
/
${
nbFEDs
}
x1x2
-s
/tmp/fed1022_
$$
.txt
--daqval
-p
$HOME
/configurator/CONFIGURATOR_DAQ2VAL.properties
--hostList
/tmp/hostlist.txt
#./createConfig.py $fbSet $swt 2 $dir/${nbFEDs}x1x2 -s /tmp/fed1022_$$.txt --dpSet ${fbSet}/dp_2BU --daqval -p $HOME/configurator/CONFIGURATOR_DAQ2VAL.properties
#./createConfig.py $fbSet $swt 2 $dir/${nbFEDs}x1x2_noChksums -s /tmp/$$.txt --dpSet ${fbSet}/dp_1x2 --daqval -p $HOME/configurator/CONFIGURATOR_DAQ2VAL.properties
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment