Skip to content
Snippets Groups Projects
Commit 9a332596 authored by Nate Rini's avatar Nate Rini Committed by Tim Wickberg
Browse files

Add OCI container config to slurmd_conf_t

Bug 11380
parent 37b27927
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,8 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, buf_t *buffer) ...@@ -68,6 +68,8 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, buf_t *buffer)
pack32(conf->daemonize, buffer); pack32(conf->daemonize, buffer);
packstr(conf->node_topo_addr, buffer); packstr(conf->node_topo_addr, buffer);
packstr(conf->node_topo_pattern, buffer); packstr(conf->node_topo_pattern, buffer);
packstr(conf->oci_container_id_pattern, buffer);
packstr(conf->oci_runtime, buffer);
pack16(conf->port, buffer); pack16(conf->port, buffer);
packstr(conf->gres, buffer); packstr(conf->gres, buffer);
} }
...@@ -106,6 +108,9 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, buf_t *buffer) ...@@ -106,6 +108,9 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, buf_t *buffer)
conf->daemonize = uint32_tmp; conf->daemonize = uint32_tmp;
safe_unpackstr_xmalloc(&conf->node_topo_addr, &uint32_tmp, buffer); safe_unpackstr_xmalloc(&conf->node_topo_addr, &uint32_tmp, buffer);
safe_unpackstr_xmalloc(&conf->node_topo_pattern, &uint32_tmp, buffer); safe_unpackstr_xmalloc(&conf->node_topo_pattern, &uint32_tmp, buffer);
safe_unpackstr_xmalloc(&conf->oci_container_id_pattern,
&uint32_tmp, buffer);
safe_unpackstr_xmalloc(&conf->oci_runtime, &uint32_tmp, buffer);
safe_unpack16(&conf->port, buffer); safe_unpack16(&conf->port, buffer);
safe_unpackstr_xmalloc(&conf->gres, &uint32_tmp, buffer); safe_unpackstr_xmalloc(&conf->gres, &uint32_tmp, buffer);
} }
......
...@@ -1059,6 +1059,10 @@ _read_config(void) ...@@ -1059,6 +1059,10 @@ _read_config(void)
if (cf->control_addr == NULL) if (cf->control_addr == NULL)
fatal("Unable to establish controller machine"); fatal("Unable to establish controller machine");
conf->oci_container_id_pattern = xstrdup(cf->oci_container_id_pattern);
conf->oci_runtime = xstrdup(cf->oci_runtime);
if (cf->slurmctld_port == 0) if (cf->slurmctld_port == 0)
fatal("Unable to establish controller port"); fatal("Unable to establish controller port");
......
...@@ -113,6 +113,8 @@ typedef struct slurmd_config { ...@@ -113,6 +113,8 @@ typedef struct slurmd_config {
char *node_name; /* node name */ char *node_name; /* node name */
char *node_topo_addr; /* node's topology address */ char *node_topo_addr; /* node's topology address */
char *node_topo_pattern;/* node's topology address pattern */ char *node_topo_pattern;/* node's topology address pattern */
char *oci_container_id_pattern; /* OCI Container id pattern */
char *oci_runtime; /* OCI Container runtime command */
char *conffile; /* config filename */ char *conffile; /* config filename */
char *logfile; /* slurmd logfile, if any */ char *logfile; /* slurmd logfile, if any */
uint32_t syslog_debug; /* send output to both logfile and uint32_t syslog_debug; /* send output to both logfile and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment