odo telemetry prompt can interfere with bash commands #7145
Labels
area/telemetry
Issues or PRs related to telemetry or metrics collection
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
/kind bug
What versions of software are you using?
Operating System: Linux
Output of
odo version
:odo v3.15.0 (10b5e8a8f)
How did you run odo exactly?
With the goal of getting the current
odo
version:(on first run, before seeing telemetry prompt)
Actual behavior
The command hangs indefinitely and cannot be cancelled (i.e. ctrl+c does not work).
Expected behavior
Either
odo
should prompt for telemetry on stderr (instead of stdout) so that users see the prompt in these cases, or it should avoid prompting when output is redirected to a file/pipe.Any logs, error output, etc?
Can be reproduced with the following Dockerfile
If I build an image from this Dockerfile, then
podman run <image>
it printsodo
's versionpodman run -it --rm <image> /bin/bash
, it hangs indefinitely and must bepodman kill
edMore background
The Web Terminal Operator includes
odo
as part of its built-in tooling. In order to be able to list the software and versions installed, the web-terminal-tooling container generates a "installed-versions.txt" file at startup using the above command, which can hang if e.g. it is run from an interactive prompt.As a workaround, we just close
stdin
before calling the script, which avoids the issue.The text was updated successfully, but these errors were encountered: