Skip to content

status: stable output order of params with --verbose#84

Merged
bertschinger merged 1 commit into
lanl:mainfrom
ofaaland:b-status-params-order
Jun 16, 2026
Merged

status: stable output order of params with --verbose#84
bertschinger merged 1 commit into
lanl:mainfrom
ofaaland:b-status-params-order

Conversation

@ofaaland

Copy link
Copy Markdown
Contributor

"halo status verbose" prints the resource parameters, such as below, within square braces. They are stored in a HashMap.

iron2       (llnl/zpool)  Running on iron2 [pool: iron2]
iron2/mdt1  (llnl/lustre) Running on iron2 [dataset: iron2/mdt1; mountpoint: /mnt/lustre/lobster-MDT0001; type: mdt]

The existing code iterates over the HashMap in a different order every time, so

watch halo status --verbose

produces constant change even when the resource states and parameters are not changing.

Sort the parameters before printing them and their values to prevent this, making actual change easy to see.

"halo status verbose" prints the resource parameters, such as below,
within square braces.  They are stored in a HashMap.

	iron2       (llnl/zpool)  Running on iron2 [pool: iron2]
	iron2/mdt1  (llnl/lustre) Running on iron2 [dataset: iron2/mdt1; mountpoint: /mnt/lustre/lobster-MDT0001; type: mdt]

The existing code iterates over the HashMap in a different order
every time, so

	watch halo status --verbose

produces constant change even when the resource states and parameters
are not changing.

Sort the parameters before printing them and their values to prevent
this, making actual change easy to see.
Comment thread src/commands/status.rs
@bertschinger bertschinger merged commit efa24c2 into lanl:main Jun 16, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants