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
049c62f2
Commit
049c62f2
authored
4 years ago
by
Tim McMullan
Committed by
Tim Wickberg
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add flags to support enabling/disabling IPv4 and IPv6.
Bug 8350
parent
4f1b0a49
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
slurm/slurm.h.in
+2
-0
2 additions, 0 deletions
slurm/slurm.h.in
src/common/read_config.c
+14
-0
14 additions, 0 deletions
src/common/read_config.c
src/slurmdbd/read_config.c
+15
-0
15 additions, 0 deletions
src/slurmdbd/read_config.c
with
31 additions
and
0 deletions
slurm/slurm.h.in
+
2
−
0
View file @
049c62f2
...
...
@@ -2639,6 +2639,8 @@ typedef struct reservation_name_msg {
#define CTL_CONF_ASRU 0x00000008 /* AllowSpecResourcesUsage */
#define CTL_CONF_PAM 0x00000010 /* UsePam */
#define CTL_CONF_WCKEY 0x00000020 /* TrackWCKey */
#define CTL_CONF_IPV4_ENABLED 0x00000040 /* IPv4 is enabled */
#define CTL_CONF_IPV6_ENABLED 0x00000080 /* IPv6 is enabled */
#define LOG_FMT_ISO8601_MS 0
#define LOG_FMT_ISO8601 1
...
...
This diff is collapsed.
Click to expand it.
src/common/read_config.c
+
14
−
0
View file @
049c62f2
...
...
@@ -3586,6 +3586,20 @@ static int _validate_and_set_defaults(slurm_conf_t *conf,
(
void
)
s_p_get_string
(
&
conf
->
comm_params
,
"CommunicationParameters"
,
hashtbl
);
/*
* IPv4 on by default, can be disabled.
* IPv6 off by default, can be turned on.
*/
conf
->
conf_flags
|=
CTL_CONF_IPV4_ENABLED
;
if
(
xstrcasestr
(
slurm_conf
.
comm_params
,
"EnableIPv6"
))
conf
->
conf_flags
|=
CTL_CONF_IPV6_ENABLED
;
if
(
xstrcasestr
(
slurm_conf
.
comm_params
,
"DisableIPv4"
))
conf
->
conf_flags
&=
~
CTL_CONF_IPV4_ENABLED
;
if
(
!
(
conf
->
conf_flags
&
CTL_CONF_IPV4_ENABLED
)
&&
!
(
conf
->
conf_flags
&
CTL_CONF_IPV6_ENABLED
))
fatal
(
"Both IPv4 and IPv6 support disabled, cannot communicate"
);
if
(
!
s_p_get_string
(
&
conf
->
core_spec_plugin
,
"CoreSpecPlugin"
,
hashtbl
))
{
conf
->
core_spec_plugin
=
...
...
This diff is collapsed.
Click to expand it.
src/slurmdbd/read_config.c
+
15
−
0
View file @
049c62f2
...
...
@@ -240,6 +240,21 @@ extern int read_slurmdbd_conf(void)
"CommitDelay"
,
tbl
);
s_p_get_string
(
&
slurm_conf
.
comm_params
,
"CommunicationParameters"
,
tbl
);
/*
* IPv4 on by default, can be disabled.
* IPv6 off by default, can be turned on.
*/
slurm_conf
.
conf_flags
|=
CTL_CONF_IPV4_ENABLED
;
if
(
xstrcasestr
(
slurm_conf
.
comm_params
,
"EnableIPv6"
))
slurm_conf
.
conf_flags
|=
CTL_CONF_IPV6_ENABLED
;
if
(
xstrcasestr
(
slurm_conf
.
comm_params
,
"DisableIPv4"
))
slurm_conf
.
conf_flags
&=
~
CTL_CONF_IPV4_ENABLED
;
if
(
!
(
slurm_conf
.
conf_flags
&
CTL_CONF_IPV4_ENABLED
)
&&
!
(
slurm_conf
.
conf_flags
&
CTL_CONF_IPV6_ENABLED
))
fatal
(
"Both IPv4 and IPv6 support disabled, cannot communicate"
);
s_p_get_string
(
&
slurmdbd_conf
->
dbd_backup
,
"DbdBackupHost"
,
tbl
);
s_p_get_string
(
&
slurmdbd_conf
->
dbd_host
,
"DbdHost"
,
tbl
);
...
...
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