Module node_ops

Module node_ops 

Source
Expand description

Node-expression resolution: parsing hostlist strings, NID-to-xname translation, HSM-group expansion, and the authorization helpers that validate the caller can act on the resolved set.

Functions§

from_hosts_expression_to_xname_vec
Translates and filters a ‘host expression’ into a list of xnames. a host expression is a comma separated list of NIDs or XNAMEs, a regex or a hostlist NOTE: user can provice a host expression and expand the list to all siblings
get_curated_hsm_group_from_xname_hostlist
Returns a HashMap with keys HSM group names the user has access to and values a curated list of memembers that matches hostlist
get_xname_from_nid_hostlist
Resolve a NID hostlist expression to xnames by cross-referencing available node metadata.
get_xname_from_xname_hostlist
Filter available node metadata to only those xnames present in node_vec.
resolve_hosts_expression
Convenience wrapper that fetches node metadata from the backend and resolves a hosts expression to a sorted, deduplicated list of xnames.
resolve_target_nodes
Resolve target nodes from either a hosts expression, an explicit HSM group name, or the settings-level HSM group.
validate_xname_format
Return true if xname matches the HPE Cray xname regex.