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
Show more breadcrumbs
dCache
cta
Commits
8d19d9ce
Commit
8d19d9ce
authored
3 years ago
by
mvelosob
Browse files
Options
Downloads
Patches
Plain Diff
Log SSI events in ctafrontend (#1114)
parent
6bb201f9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+14
-0
14 additions, 0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
with
14 additions
and
0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+
14
−
0
View file @
8d19d9ce
...
...
@@ -353,6 +353,20 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
}
// end case Request::kAdmincmd
case
Request
::
kNotification
:
// Log event before processing, same log as in WFE.log on eos side
{
const
std
::
string
&
eventTypeName
=
Workflow_EventType_Name
(
request
.
notification
().
wf
().
event
());
const
std
::
string
&
eosInstanceName
=
request
.
notification
().
wf
().
instance
().
name
();
const
std
::
string
&
diskFilePath
=
request
.
notification
().
file
().
lpath
();
const
std
::
string
&
diskFileId
=
std
::
to_string
(
request
.
notification
().
file
().
fid
());
cta
::
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
(
"eventType"
,
eventTypeName
)
.
add
(
"eosInstance"
,
eosInstanceName
)
.
add
(
"diskFilePath"
,
diskFilePath
)
.
add
(
"diskFileId"
,
diskFileId
);
m_lc
.
log
(
cta
::
log
::
INFO
,
"In RequestMessage::process(): processing SSI event"
);
}
// Validate that instance name in key used to authenticate matches instance name in Protocol buffer
if
(
m_cliIdentity
.
username
!=
request
.
notification
().
wf
().
instance
().
name
())
{
// Special case: allow KRB5 authentication for CLOSEW and PREPARE events, to allow operators
...
...
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