Skip to content

skipping nodes in the "mix-" state #170

@brodylines

Description

@brodylines

The node-mark-offline script skips nodes in the "mix-" state with the error: State "mix-" not yet handled; ignoring.

"mix-" seems to be a valid state indicating that a node is mixed and is "planned by the backfill scheduler for a higher priority job". Is there a reason that nodes in this state are being skipped?

The responsible code appears to be:

case "$STATUS" in
    	*'@'*|*'#'*|boot*|*-*|plnd*)
    	# These states aren't handled yet.
    	echo "$0:  State "$STATUS" not yet handled; ignoring."
    	exit 0

As far as I can tell all the states being skipped are related to nodes being configured or rebooted or powering on/off except *-*. There are other states related to node power that include underscore in the state name; power_down, power_up, pow_dn, pow_up. Should the case statement be *_* instead of *-*?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions