Skip to content

fix(ui): follow the clients alone on the screen of a client when the cluster refuses its allocations - #188

Merged
ingvarch merged 1 commit into
mainfrom
fix/client-screen-scoped-token
Nov 4, 2026
Merged

ingvarch merged 1 commit into
mainfrom
fix/client-screen-scoped-token

Conversation

@ingvarch

@ingvarch ingvarch commented Nov 4, 2026

Copy link
Copy Markdown
Owner

What changes

The screen of a client no longer warns and polls every 2 seconds with a token that may read jobs in some namespaces only. It follows Allocation and Node in every namespace, a stream such a token is refused since hashicorp/nomad#25089.

  • When the cluster refuses that stream, with an error such as a 403 or by ending it within 5 seconds with no event (Nomad 2.0), the screen follows the clients alone, with no warning, the way the client list does since Show a full client on the client list without waiting for the poll #169. Its allocations are then read on the 30 s poll and whenever a client changes.
  • A refusal of the clients too warns and polls as before, and a stream that worked and then dropped is a drop, not a refusal.
  • Each time the screen opens it asks for both again; the fallback of the client list does not carry over to it.
  • docs/configuration.md says this.

Left as they are: the jobs of a node pool and screens with the session in all namespaces ask for every namespace too, and with such a token still warn and poll fast. They have no smaller set of topics to follow.

Closes #186

Checklist

  • The test for this change was written first and failed
  • make check is green
  • The title is a conventional commit: feat(ui): ..., fix(nomad): ...

@ingvarch ingvarch added this to the v0.17.0 milestone Nov 4, 2026
@ingvarch ingvarch added bug Something isn't working ui Screens, keys and the header labels Nov 4, 2026
@ingvarch
ingvarch merged commit 9db60c8 into main Nov 4, 2026
5 checks passed
@ingvarch
ingvarch deleted the fix/client-screen-scoped-token branch November 4, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ui Screens, keys and the header

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The screen of a client warns and polls fast with a token scoped to some namespaces

1 participant