Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

increase timeout for remote cmd stream setup #2258

Merged

Conversation

xtreme-vikram-yadav
Copy link
Contributor

What this PR does / why we need it: This PR fixes the flaky terminal connection error.

Which issue(s) this PR fixes

Special notes for your reviewer:
We already try multiple shell commands(sh, bash) for terminal (/~https://github.com/vmware-tanzu/octant/blob/96dd7438f3d1e4a2c4e514238c6b0dcf2d86e4d2/internal/api/terminal_manager.go#L156).
We just need to wait for a bit longer to setup remote connection stream.

[vmware-archive#2164]

Signed-off-by: vikram yadav <vyadav@pivotal.io>
Copy link
Contributor

@GuessWhoSamFoo GuessWhoSamFoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super stoked about this fix but I'll allow it.

@wwitzel3 wwitzel3 merged commit 6940664 into vmware-archive:master Apr 5, 2021
@xtreme-vikram-yadav xtreme-vikram-yadav deleted the fix-term-stream branch April 5, 2021 17:24
@xtreme-vikram-yadav xtreme-vikram-yadav mentioned this pull request Apr 21, 2021
6 tasks
@lloydchang
Copy link

lloydchang commented May 1, 2021

To Whom It May Concern:

Consider upgrading to Octant v0.19.0 if you're using Octant v0.17.0 and v0.18.0.

Why: Feature Change default shell to bash #1533's initial implementation, Add support for windows shells and bash #1749 released in v0.17.0 and v0.18.0, has a bug of:

OCI runtime exec failed: ...
(process exited)

with operating systems without bash, e.g. Alpine Linux with sh only.

A bug fix increase timeout for remote cmd stream setup #2258 released in v0.19.0, fixed a similar bug No option to choose the interpreter on the terminal #2164.

After the bug fix, operating systems without bash, such as Alpine Linux, can start sh successfully.

Thank you.

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

Successfully merging this pull request may close these issues.

No option to choose the interpreter on the terminal
4 participants