[slurm-dev] GID and UID restriction in SLURM DBD

0 views
Skip to first unread message

Robert LeBlanc

unread,
Oct 23, 2009, 8:09:48 PM10/23/09
to slur...@lists.llnl.gov
We ran into a problem where our UIDs and GIDs were too big for slurm dbd. Luckily it was a matter of changing the field types in job_table to INT rather than SMALLINT. Can this be fixed for future releases?

Thanks,

Robert LeBlanc
Life Sciences & Undergraduate Education Computer Support
Brigham Young University

Danny Auble

unread,
Oct 26, 2009, 12:01:35 PM10/26/09
to slur...@lists.llnl.gov
Hey Robert, this was actually fixed just last week. Here is a complete patch, it is probably very similar to what you already did. This will be in 2.0.8+.

Danny

Index: src/plugins/accounting_storage/mysql/accounting_storage_mysql.c
===================================================================
--- src/plugins/accounting_storage/mysql/accounting_storage_mysql.c (revision 18920)
+++ src/plugins/accounting_storage/mysql/accounting_storage_mysql.c (working copy)
@@ -2938,8 +2938,8 @@
{ "associd", "int unsigned not null" },
{ "wckey", "tinytext not null default ''" },
{ "wckeyid", "int unsigned not null" },
- { "uid", "smallint unsigned not null" },
- { "gid", "smallint unsigned not null" },
+ { "uid", "int unsigned not null" },
+ { "gid", "int unsigned not null" },
{ "cluster", "tinytext not null" },
{ "partition", "tinytext not null" },
{ "blockid", "tinytext" },
@@ -2960,7 +2960,7 @@
{ "alloc_nodes", "int unsigned not null" },
{ "nodelist", "text" },
{ "node_inx", "text" },
- { "kill_requid", "smallint default -1 not null" },
+ { "kill_requid", "int default -1 not null" },
{ "qos", "smallint default 0" },
{ "resvid", "int unsigned not null" },
{ NULL, NULL}
@@ -3026,7 +3026,7 @@
{ "nodelist", "text not null" },
{ "node_inx", "text" },
{ "state", "smallint not null" },
- { "kill_requid", "smallint default -1 not null" },
+ { "kill_requid", "int default -1 not null" },
{ "comp_code", "int default 0 not null" },
{ "nodes", "int unsigned not null" },
{ "cpus", "int unsigned not null" },

Robert LeBlanc

unread,
Oct 26, 2009, 1:33:13 PM10/26/09
to slur...@lists.llnl.gov
Thanks, we didn't get all the places, so thanks for the patch.


Robert LeBlanc
Life Sciences & Undergraduate Education Computer Support
Brigham Young University


Reply all
Reply to author
Forward
0 new messages