Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
50f3378a
Commit
50f3378a
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation and log messages for triggers
parent
83acd27a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/man/man1/strigger.1
+9
-2
9 additions, 2 deletions
doc/man/man1/strigger.1
src/common/slurm_errno.c
+1
-1
1 addition, 1 deletion
src/common/slurm_errno.c
src/slurmctld/trigger_mgr.c
+2
-2
2 additions, 2 deletions
src/slurmctld/trigger_mgr.c
with
12 additions
and
5 deletions
doc/man/man1/strigger.1
+
9
−
2
View file @
50f3378a
...
...
@@ -19,7 +19,13 @@ script.
Typical uses include notifying system administrators of node failures
and gracefully terminating a job when it's time limit is approaching.
\fBNOTE:\fR This command can only set triggers if run by the
\fBIMPORTANT NOTE:\fR Trigger events are not processed instantly, but
a check is performed for trigger events on a periodic basis (currently
every 15 seconds).
Node state event trigger programs must establish a new trigger within
that time period to avoid node state changes failing to invoke a trigger.
\fBIMPORTANT NOTE:\fR This command can only set triggers if run by the
user \fISlurmUser\fR unless \fISlurmUser\fR is configured as user root.
This is required for the \fIslurmctld\fR daemon to set the appropriate
user and group IDs for the executed program.
...
...
@@ -90,7 +96,8 @@ By default, all nodes associated with the job (if \fB\-\-jobid\fR
is specified) or on the system are considered for event triggers.
\fBNOTE:\fR The \fB\-\-node\fR option can not be used in conjunction
with the \fB\-\-jobid\fR option. When the \fB\-\-jobid\fR option is
used in conjunction with the \fB\-\-up\fR or \fB\-\-down\fR option,
used in conjunction with the \fB\-\-up\fR, \fB\-\-down\fR or
\fB\-\-drained\fR option,
all nodes allocated to that job will considered the nodes used as a
trigger event.
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_errno.c
+
1
−
1
View file @
50f3378a
...
...
@@ -114,7 +114,7 @@ static slurm_errtab_t slurm_errtab[] = {
{
ESLURM_DEFAULT_PARTITION_NOT_SET
,
"No partition specified or system default partition"
},
{
ESLURM_ACCESS_DENIED
,
"Access denied"
},
"Access
/permission
denied"
},
{
ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP
,
"User's group not permitted to use this partition"
},
{
ESLURM_REQUESTED_NODES_NOT_IN_PARTITION
,
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/trigger_mgr.c
+
2
−
2
View file @
50f3378a
...
...
@@ -295,8 +295,8 @@ extern int trigger_set(uid_t uid, gid_t gid, trigger_info_msg_t *msg)
* launched. To prevent the launched program for an arbitrary
* user being executed as user SlurmUser, disable all other
* users from setting triggers. */
info
(
"Attemt to set trigger by uid %u"
,
uid
);
rc
=
E
PERM
;
info
(
"Attem
p
t to set trigger by uid %u
!= SlurmUser
"
,
uid
);
rc
=
E
SLURM_ACCESS_DENIED
;
goto
fini
;
}
...
...
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