Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coral2_dws: refactor badrabbit property #281

Merged

Conversation

jameshcorbett
Copy link
Member

Two small fixes, and one kinda messy refactoring that doesn't change any functionality.

Problem: the `mark_rabbit` function returns after setting or
removing the `badrabbit` property on a single compute node, because
of misplaced return statements.

Fix it.
Problem: in order to minimize the size of `flux resource drain`
output, drain messages should be identical. This implies that
node-dependent information (such as rabbit hostname) should
not be there.

Remove the rabbit hostname from the drain message.
Problem: there are three different kinds of handling for down
rabbits, and the code for them is messy.

First, there is draining compute nodes. Second, there is marking
rabbit vertices down in Fluxion. Lastly and most recently added,
there is the setting of the `badrabbit` property on nodes.

The third method is the most complicated and the code implementing
it is mixed in with the code for the other two types of handling.
It should be broken out to be handled separately and more cleanly.

Break out the property logic into its own function.
Copy link
Member

@cmoussa1 cmoussa1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Looks like a really nice cleanup

@jameshcorbett
Copy link
Member Author

Thanks!

@mergify mergify bot merged commit f7c732d into flux-framework:master Feb 18, 2025
9 checks passed
@jameshcorbett jameshcorbett deleted the simplify-badrabbit-property branch February 18, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants