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

fix(ui): default to main container in Sensor logs. Fixes #9459 #9438

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

jsvk
Copy link
Contributor

@jsvk jsvk commented Aug 25, 2022

Fixes #9459

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

What problem is this trying to solve?

@jsvk
Copy link
Contributor Author

jsvk commented Aug 25, 2022

sorry still working on the write-up (in the form of Github Issue, hope that's ok), but the short summary is we're injecting a sidecar container via mutating admission controller to the Sensor pod (fluent-bit in our case, for forwarding logs to Splunk).

Without specifying the container, the UI fails to load the logs and instead returns with a 504 - Gateway Timeout.

Error logs in the Server pod say it encountered this error -

time="2022-08-25T14:30:21.960Z" level=error msg="a container name must be specified for pod adobe-platform--[snip], choose one of: [main fluent-bit]" namespace=ns-team-adobe-platform--[snip] podName=adobe-platform--[snip]

I saw the API does support parsing podLogOptions.container, and so by appending ?podLogOptions.container=main to the API call, I confirmed the call returns instantly with the logs we expect, so this is a matter of updating this at the UI level.

Is there a better approach I'm not thinking of?

@jsvk jsvk changed the title Default to 'main' container in Sensor logs fix: default to 'main' container in Sensor logs Aug 28, 2022
@jsvk jsvk force-pushed the patch-1 branch 3 times, most recently from d1c05cb to 897f338 Compare August 29, 2022 00:47
…rgoproj#9459

Signed-off-by: jsvk <850037+jsvk@users.noreply.github.com>
@jsvk jsvk marked this pull request as ready for review August 29, 2022 06:34
@jsvk jsvk changed the title fix: default to 'main' container in Sensor logs fix: default to 'main' container in Sensor logs. Fixes #9459 Aug 29, 2022
@alexec alexec enabled auto-merge (squash) September 5, 2022 20:24
@alexec alexec merged commit f27475f into argoproj:master Sep 5, 2022
juchaosong pushed a commit to juchaosong/argo-workflows that referenced this pull request Nov 3, 2022
…rgoproj#9438)

Signed-off-by: jsvk <850037+jsvk@users.noreply.github.com>
Signed-off-by: juchao <juchao@coscene.io>
@agilgur5 agilgur5 changed the title fix: default to 'main' container in Sensor logs. Fixes #9459 fix(ui): default to main container in Sensor logs. Fixes #9459 Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI hangs when attempting to view Sensor logs if pod has more than one container
4 participants