Commit f1183d1d authored by Steven Murray's avatar Steven Murray
Browse files

Mighunter daemon start-up scripts are now re-created by tghe test scripts.

parent cf513ac8
......@@ -294,7 +294,7 @@ int migratorCallbackFileCopied(
(inChild == 0 ? mainUuid : childUuid),
RTCPCLD_LOG_MSG(RTCPCLD_MSG_FAILEDNSUPD),
(struct Cns_fileid *)castorFileId,
RTCPCLD_NB_PARAMS+9,
RTCPCLD_NB_PARAMS+10,
"",
DLF_MSG_PARAM_TPVID,
tapereq->vid,
......@@ -307,6 +307,9 @@ int migratorCallbackFileCopied(
"FSEQ",
DLF_MSG_PARAM_INT,
filereq->tape_fseq,
"DISKPATH",
DLF_MSG_PARAM_STR,
filereq->file_path,
"BLOCKID",
DLF_MSG_PARAM_STR,
blkid,
......
......@@ -1290,6 +1290,13 @@ sub reinstall_stager_db()
killDaemonWithTimeout('rtcpclientd' , 2);
killDaemonWithTimeout('stagerd' , 2);
killDaemonWithTimeout('tapegatewayd', 2);
# Re-create mighunterd daemon scripts
print("Re-creating mighunterd daemon scripts\n");
`echo "DAEMON_COREFILE_LIMIT=unlimited" > /etc/sysconfig/mighunterd`;
`echo 'SVCCLASSES="default dev"' >> /etc/sysconfig/mighunterd`;
`echo 'MIGHUNTERD_OPTIONS="-t 5"' > /etc/sysconfig/mighunterd.default`;
`echo 'MIGHUNTERD_OPTIONS="-t 5"' > /etc/sysconfig/mighunterd.dev`;
# Ensure there is no leftover in the DB
my $dbh = open_db ();
......
......@@ -14,12 +14,12 @@ TAPETEST svcclass_lxcastordev03 dev
TAPETEST username_lxcastordev04 murrayc3
TAPETEST checkout_location_lxcastordev04 /afs/cern.ch/user/m/murrayc3/castor/checkout/v2_1_9_7_gateway
TAPETEST file_size_lxcastordev04 10485760
TAPETEST file_number_lxcastordev04 2
TAPETEST file_number_lxcastordev04 1
TAPETEST castor_directory_lxcastordev04 /castor/cern.ch/dev/m/murrayc3/
TAPETEST migration_timeout_lxcastordev04 600
TAPETEST poll_interval_lxcastordev04 5
TAPETEST tapepool_lxcastordev04 stager_dev04
TAPETEST svcclass_lxcastordev04 default
TAPETEST svcclass_lxcastordev04 dev
# General parameters
......
......@@ -171,7 +171,8 @@ sub goodDaySingleAndDualCopyTest ( $$ )
my $poll = CastorTapeTests::get_environment('poll_interval');
my $timeout = CastorTapeTests::get_environment('migration_timeout');
for my $sd (0, 1) {
#for my $sd (0, 1) {
for my $sd (1) {
for my $i (0 .. ($file_number - 1) ) {
my $file_name="/tmp/".`uuidgen`;
chomp $file_name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment