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: Say no logs were outputted when pod is done #2373

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

simster7
Copy link
Member

@simster7 simster7 commented Mar 5, 2020

Fixes #2372. Thanks @foobarbecue!

@simster7 simster7 requested a review from alexec March 5, 2020 20:06
@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@d3a3f6b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2373   +/-   ##
=========================================
  Coverage          ?   13.07%           
=========================================
  Files             ?       72           
  Lines             ?    25058           
  Branches          ?        0           
=========================================
  Hits              ?     3276           
  Misses            ?    21369           
  Partials          ?      413

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3a3f6b...9af4bd8. Read the comment docs.

@simster7 simster7 merged commit 7bf0819 into argoproj:master Mar 6, 2020
@foobarbecue
Copy link
Contributor

This might have caused another issue. I now sometimes get "Pod did not output any logs." but then when I go to Artifacts for the same Pod, there are logs there. I think this might have to do with log rotation settings.

@foobarbecue
Copy link
Contributor

Actually I think what was happening was that I'm using retryStrategy and the logs only show up on the child nodes representing retries, and not on the parent. Note that I'm using a version without the #2384 fix so all of my nodes have a (0) version even if they worked the first time. These are the ones where "logs" shows output on the (0) node but not on its parent. Both the parent and (0) node have archived logs accessible.

@simster7
Copy link
Member Author

Actually I think what was happening was that I'm using retryStrategy and the logs only show up on the child nodes representing retries, and not on the parent. Note that I'm using a version without the #2384 fix so all of my nodes have a (0) version even if they worked the first time. These are the ones where "logs" shows output on the (0) node but not on its parent. Both the parent and (0) node have archived logs accessible.

Hi @foobarbecue, this is actually the correct behavior. The parent node is something we call a "virtual node" of type RetryNode which basically means that the node itself will not run a pod, but will point to other nodes that will – so the RetryNode should never contain logs. #2384 should help in addressing this, but the full solution to this problem should be #2406 if you're interested in contributing 😄

@foobarbecue
Copy link
Contributor

Hi @simster7 , I see. I haven't been able to get my build environment set up yet, but I'll probably work on it some more this evening and if I can get it going I'll see if I think #2406 is within my abilities!

@simster7
Copy link
Member Author

Back-ported to 2.6

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

Successfully merging this pull request may close these issues.

If a step outputs no logs, the Logs display in the UI will show "Waiting for data..." forever
3 participants