Commit 1d563e60 authored by Eric Cano's avatar Eric Cano
Browse files

bug #72215: Remove the TAPEGATEWAYREQUEST table from the schema, and drop the...

bug #72215: Remove the TAPEGATEWAYREQUEST table from the schema, and drop the triggers that populate it.

Fixed wrong tapepool choice from copy-paste.
Enforced the service class in the rfcp command.
parent f5d5db49
......@@ -256,6 +256,7 @@ sub open_db()
$db = $1;
}
}
close ORACFG;
my $dbh= DBI->connect('dbi:Oracle:'.$db ,$u, $p,
{ RaiseError => 1, AutoCommit => 0})
or die "Failed to connect to DB as ".$u.'\@'.$db;
......@@ -946,7 +947,7 @@ sub wipeAndRecreateDefaultLxcastodev03 ()
# Fill database with the standard set-up for a dev-box
`nslistclass | grep NAME | awk '{print \$2}' | xargs -i enterFileClass --Name {} --GetFromCns`;
`enterSvcClass --Name default --DiskPools default --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes --NbDrives 1 --TapePool stager_dev04 --MigratorPolicy defaultMigrationPolicy --StreamPolicy streamPolicyAlwaysReturning1`;
`enterSvcClass --Name default --DiskPools default --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes --NbDrives 1 --TapePool stager_dev03 --MigratorPolicy defaultMigrationPolicy --StreamPolicy streamPolicyAlwaysReturning1`;
`enterSvcClass --Name dev --DiskPools extra --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes`;
`enterSvcClass --Name diskonly --DiskPools extra --ForcedFileClass temp --DefaultFileSize 10485760 --Disk1Behavior yes --FailJobsWhenNoSpace yes`;
......
......@@ -143,7 +143,7 @@ sub goodDaySingleAndDualCopyTest ( $$ )
my $file_name="/tmp/".`uuidgen`;
chomp $file_name;
CastorTapeTests::make_localfile( $seed_index, $file_name );
`su $username -c \"rfcp $file_name ${castor_directory}${sd}\"`;
`su $username -c \"STAGE_SVCCLASS=dev rfcp $file_name ${castor_directory}${sd}\"`;
}
}
my $dbh=CastorTapeTests::open_db();
......
Supports Markdown
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