Skip to content

Regroup option to have "any" semantics instead of "all" #345

Open
@kent-engstrom

Description

@kent-engstrom

I am investigating if we can use "nodeset" instead of our homegrown "nodes" tool (https://www.nsc.liu.se/~kent/nodes/). I lack one feature that we use a lot with nodes --- the possibility to get all groups that include at least one node referenced by the nodeset.

To explain why we find it useful, imagine that you have cluster hardware consisting of four nodes per chassi. For example, chassis c1 is n[1-4], chassis c2 is n[5-8], etc. Now imagine that some nodes are malfunctioning, and to fix them you need to take down their chassis (also affecting the other nodes), so you want to drain them all. Using the "nodes" tool, I could either do

% ./nodes --up chassis n[3-5,15] 
c[1-2,4]

to get the list of chassis affected, or

% ./nodes --fill chassis n[3-5,15]
n[1-8,13-16]

to map them back to nodes in the same operation.

(BTW, the is also the --gather operation, that is basically the same as --regroup in nodeset.)

It would be nice to have an operation in nodeset that worked like "nodes --up", perhaps something like

% nodeset -s chassis --regroup-any n[3-5,15]
@chassis:c[1-2,4]

Would that be possible?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions