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

Agent diagnostics does not deterministically choose agent container from Pod Spec #211

Closed
pkoutsovasilis opened this issue Jan 8, 2024 · 1 comment

Comments

@pkoutsovasilis
Copy link
Contributor

When the parameter --run-agent-diagnostics is passed to eck-diagnostics and agent is not the first container in the PodSpec the following error happens since the first container in list does not host the elastic-agent binary.

2024/01/08 18:23:47 while extracting agent diagnostics: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "7658d7516bacb62d502efb4365423c20922aeb175f601516bfaa153828715fb3": OCI runtime exec failed: exec failed: unable to start container process: exec: "elastic-agent": executable file not found in $PATH: unknown
thbkrkr pushed a commit that referenced this issue Jan 9, 2024
This PR handles this issue (#211) and
makes agent diagnostics to be exec'ed always against the `agent` container
@thbkrkr
Copy link
Contributor

thbkrkr commented Jan 9, 2024

Closed by #212.

@thbkrkr thbkrkr closed this as completed Jan 9, 2024
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

No branches or pull requests

2 participants