Bug #22401
opencrunch-run --list (with no additional args) should not read from stdin
Description
crunch-run --list
can be a helpful tool for an admin during troubleshooting. However, that currently hangs waiting to read an instance price list from stdin. crunch-run --list </dev/null
works, but an admin should not need to remember that.
Propose changing the default mode to "don't read from stdin" (admin-friendly), and update arvados-dispatch-cloud
to pass an additional argument (--stdin=prices
?) to enable the price list update behavior.
Updated by Brett Smith 14 days ago
Tom Clegg wrote:
Propose changing the default mode to "don't read from stdin" (admin-friendly), and update
arvados-dispatch-cloud
to pass an additional argument (--stdin=prices
?) to enable the price list update behavior.
Maybe decide based on stdin isatty?
Updated by Tom Clegg 14 days ago
- Related to Bug #22400: broken paging logic causes arvados-dispatch-cloud to hang at startup while looking up spot prices added
Updated by Tom Clegg 14 days ago
Brett Smith wrote in #note-1:
Maybe decide based on stdin isatty?
Hm. That would address the interactive use case without changing the a-d-c end, although it could still leave surprising behavior for scripts to discover later. Although I don't have a specific problem in mind, I'm also a little worried that ssh/pty stuff could cause this to make the wrong choice eventually.
Given the self-deploy version sync situation, I think an explicit command line argument would be more friendly/predictable.