Skip to content

Support power control to same target twice #205

@chu11

Description

@chu11

User asked for an interesting support. In the el cap environment, two compute nodes are attached to one blade. It can be inconvenient to map a compute node to its blade (eg node1478 maps to blade???)

Idea was map two fictitious node names to same blade, ie blade1477 and blade1478 both power control the same blade.

The primary issue is how to deal with user submitting both nodes at same time to power control (i.e. `pm -0 blade1477,blade1478).

Pondering a bit, I think this may be doable if arglist_find() could return multiple args (i.e. a single power result could update multiple args). The ranged scripts could handle by calling hostlist_uniq() before calling the power control target.

But I bet there’s stuff I’m not thinking about right now.

Edit: minimally, what errors could occur on non-ranged scripts. But I suppose we aren't checking that multiple "targets" don't already point to the same plug. So perhaps it doesn't matter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions