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

flux hostlist: return only those available #6535

Closed
vsoch opened this issue Dec 30, 2024 · 2 comments
Closed

flux hostlist: return only those available #6535

vsoch opened this issue Dec 30, 2024 · 2 comments

Comments

@vsoch
Copy link
Member

vsoch commented Dec 30, 2024

I have a cluster with a lot of faux "down" nodes, and I want to get the set that is up. I thought I could use avail|available as one of SOURCES so I tried both

$ flux hostlist -x $(hostname) available
flux[000001-000999]
$ flux hostlist -x $(hostname) avail
flux[000001-000999]

Am I doing it wrong? I'd want the command to just tell me, excluding the all zeros host, that I have flux000000.

$ flux resource list
     STATE NNODES NCORES NGPUS NODELIST
      free      2    192     0 flux[000000-000001]
 allocated      0      0     0 
      down    998  95808     0 flux[000002-000999]

Thanks!

@grondo
Copy link
Contributor

grondo commented Dec 30, 2024

You are doing it right, this appears to be a bug! Will fix. Thanks!!

@mergify mergify bot closed this as completed in 350f5a0 Dec 31, 2024
@vsoch
Copy link
Member Author

vsoch commented Dec 31, 2024

Thank you! I should be able to test this out again toward the end of the week (it was for the Azure setup).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants