Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Today at 12:05 p.m. CEST
GitLab will be temporarily unavailable due to brief maintenance.
Show more breadcrumbs
dCache
cta
Commits
40ee2979
Commit
40ee2979
authored
10 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added TPVID param to tapeserverd 'Putting drive DOWN' log messages
parent
08d57839
No related branches found
Branches containing commit
Tags
v0.0-85
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
castor/tape/tapeserver/daemon/CatalogueDrive.cpp
+7
-0
7 additions, 0 deletions
castor/tape/tapeserver/daemon/CatalogueDrive.cpp
with
7 additions
and
0 deletions
castor/tape/tapeserver/daemon/CatalogueDrive.cpp
+
7
−
0
View file @
40ee2979
...
...
@@ -566,6 +566,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::
{
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because session succeeded"
" and was in the WAITDOWN state"
,
params
);
}
...
...
@@ -578,6 +579,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::
{
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because session succeeded"
" and tape server is shutting down"
,
params
);
}
...
...
@@ -590,6 +592,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::
{
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because cleaner succeeded"
" and tape server is shutting down"
,
params
);
}
...
...
@@ -672,6 +675,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because running session failed "
"and requested drive DOWN"
,
params
);
m_vdqm
.
setDriveDown
(
m_hostName
,
m_config
.
getUnitName
(),
m_config
.
getDgn
());
...
...
@@ -694,6 +698,7 @@ runningSessionKilled(uint32_t signal) {
changeState
(
DRIVE_STATE_DOWN
);
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because cleaner was killed"
,
params
);
m_vdqm
.
setDriveDown
(
m_hostName
,
m_config
.
getUnitName
(),
m_config
.
getDgn
());
...
...
@@ -784,6 +789,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::
std
::
list
<
log
::
Param
>
params
;
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
session
->
getVid
()));
m_log
(
LOG_INFO
,
"Putting drive DOWN in vdqm because cleaner failed"
,
params
);
m_vdqm
.
setDriveDown
(
m_hostName
,
m_config
.
getUnitName
(),
m_config
.
getDgn
());
...
...
@@ -1021,6 +1027,7 @@ void castor::tape::tapeserver::daemon::CatalogueDrive::killSession() {
params
.
push_back
(
log
::
Param
(
"unitName"
,
m_config
.
getUnitName
()));
params
.
push_back
(
log
::
Param
(
"sessionType"
,
sessionTypeStr
));
params
.
push_back
(
log
::
Param
(
"sessionPid"
,
sessionPid
));
params
.
push_back
(
log
::
Param
(
"TPVID"
,
m_session
->
getVid
()));
if
(
kill
(
sessionPid
,
SIGKILL
))
{
const
std
::
string
errorStr
=
castor
::
utils
::
errnoToString
(
errno
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment