Ticket 1201 - Possibility to define multiple partitions in S*_PARTITION environment variables
Summary: Possibility to define multiple partitions in S*_PARTITION environment variables
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Configuration (show other tickets)
Version: 14.03.9
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Brian Christiansen
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2014-10-22 21:09 MDT by CSC sysadmins
Modified: 2014-11-04 06:05 MST (History)
2 users (show)

See Also:
Site: CSC - IT Center for Science
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed: 14.11.0 15.08.0pre1
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description CSC sysadmins 2014-10-22 21:09:09 MDT
Hi,

I'd like to be able to define more than one partition on the S*_PARTITION env variable but I've not found proper syntax for that, e.g. like following example:

SINFO_PARTITION="gpu,mic"

Another problem is that users are not able to override this env variable, sinfo -a will not show any other partitions than which is defined by SINFO_PARTITION=
Comment 1 Brian Christiansen 2014-11-04 04:37:17 MST
This is fixed in the following commit:
https://github.com/SchedMD/slurm/commit/46c8fb7a86d2ebfc95faa06e00ca23d9eb16be78

The following is example output:

compy$ SINFO_PARTITION=debug1 sinfo
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST                                                                                                                            
debug1       up   infinite      2   idle compy[1-2]       
                                                                                                                     
compy$ SINFO_PARTITION=debug1,debug3 sinfo                                                                                                         
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST                                                                                                                               
debug1       up   infinite      2   idle compy[1-2]
debug3       up   infinite      2   idle compy[5-6]

compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug*       up   infinite     10   idle compy[1-10]

compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug,debug2
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug*       up   infinite     10   idle compy[1-10]
debug2       up   infinite      2   idle compy[3-4]

compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug,debug2 -a
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug*       up   infinite     10   idle compy[1-10]
debug1       up   infinite      2   idle compy[1-2]
debug2       up   infinite      2   idle compy[3-4]
debug3       up   infinite      2   idle compy[5-6]
hidden       up   infinite      2   idle compy[5-6]
Comment 2 Brian Christiansen 2014-11-04 06:05:05 MST
Updated commit to make -a and -p overwrite environment variables but not override each other on the command line.

https://github.com/SchedMD/slurm/commit/e58bb7c573ee833935b9f51289e987d3ec3cee12

ex.

brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 SINFO_ALL=1 sinfo
sinfo: error: Conflicting options, SINFO_ALL and SINFO_PARTITION, specified. Please choose one or the other.

brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -a
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug*       up   infinite     10   idle compy[1-10]
debug1       up   infinite      2   idle compy[1-2]
debug2       up   infinite      2   idle compy[3-4]
debug3       up   infinite      2   idle compy[5-6]
hidden       up   infinite      2   idle compy[5-6]

brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -p debug2,debug3
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug2       up   infinite      2   idle compy[3-4]
debug3       up   infinite      2   idle compy[5-6]

brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -p debug2,debug3 -a
sinfo: error: Conflicting options, -a and -p, specified. Please choose one or the other.

brian@compy:~/slurm/14.11/compy$ SINFO_ALL=1 sinfo -p debug2
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
debug2       up   infinite      2   idle compy[3-4]