Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-indicative error when running on a Completed pod #462

Open
eyalb181 opened this issue Sep 21, 2022 · 0 comments
Open

Non-indicative error when running on a Completed pod #462

eyalb181 opened this issue Sep 21, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@eyalb181
Copy link
Member

Bug Description

When running on a Pod with state=Completed, we get a non-informative error as can be seen in the logs. We need to detect that the pod is in a running state, and if it isn't, display a more helpful error.

Steps to Reproduce

Run mirrord with IMPERSONATED_POD_NAME=<name of a pod with state=Completed)

Backtrace

No response

Relevant Logs

❯ mirrord exec -c --steal --pod-namespace some-namespace --pod-name some-pod ./bin/main
thread '<unnamed>' panicked at 'unexpected response - expected env vars response None', mirrord-layer/src/lib.rs:407:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
[1]    60108 abort      mirrord exec -c --steal --pod-namespace some-namespace --pod-name  ./bin/main

Your operating system and version

MacOS

Local process

Go

Local process version

No response

Additional Info

No response

@eyalb181 eyalb181 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants