Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@haircommander
Copy link
Member

turns out, kubelet does behave like this in some scenerios (static
pods). Instead of failing forever, return the already created pod.

Signed-off-by: Peter Hunt [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

alternative to #6111

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix a bug where static pods cannot be created because they've already been created.

@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Aug 3, 2022
@openshift-ci openshift-ci bot requested review from QiWang19 and klihub August 3, 2022 20:08
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2022
@haircommander haircommander force-pushed the dup-request-return branch 2 times, most recently from d44b5f0 to dc81cff Compare August 3, 2022 20:11
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #6123 (24304da) into main (12aacc3) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6123   +/-   ##
=======================================
  Coverage   43.62%   43.62%           
=======================================
  Files         122      122           
  Lines       13583    13583           
=======================================
  Hits         5926     5926           
  Misses       7017     7017           
  Partials      640      640           

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold
Feel free to unhold if this is ready to be merged.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 4, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 4, 2022
@saschagrunert
Copy link
Member

/retest

@haircommander
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 18, 2022
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

10 similar comments
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@haircommander
Copy link
Member Author

/hold

I can't figure out why just kata is failing

@littlejawa do you have any insight?

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2022
Copy link
Contributor

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM
once the tests are hapy

@littlejawa
Copy link
Contributor

/hold

I can't figure out why just kata is failing

@littlejawa do you have any insight?

Hey @haircommander,
I am not sure, but I think you're finding that this test (shm_size.bats : "check /dev/shm fails with incorrect values") actually never worked the way we thought with kata.
It is using the helpers.bat function create_runtime_with_allowed_annotation, and it seems we are skipping all the tests that use this function in kata because they fail - I suspect a bad interaction between this function, which changes the default runtime, and our test framework that makes sure kata is being used.
I am not sure that in the kata CI job, create_runtime_with_allowed_annotation actually changes the runtime being used by cri-o, and so the annotations are just not set.

The reason why we were not skipping this specific test is because it seemed to work, but looking at it, it is checking for failures, and doesn't verify the reason of the failure. So I am guessing that it was failing up to now because annotations were just not taken into account, and this made the test "pass", for the wrong reasons.

I am not sure why it changed its behavior now, but apparently your change makes the second call to crictl runp find an existing pod and returning it (this is what the cri-o log show), ignoring the potential issue with annotation, and so reporting success?
I don't know why the pod is still around at that time though.

Anyway - TL;DR: I think you should ignore this error, and I will modify our test script to skip this test, until we fix the function in question.

@littlejawa
Copy link
Contributor

/retest-required

@haircommander
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2022
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@haircommander
Copy link
Member Author

/hold

actually, ci is broken at the moment, let's wait till it's ready

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2022
@saschagrunert
Copy link
Member

@haircommander can you please rebase that we can merge it soon'ish?

turns out, kubelet does behave like this in some scenerios (static
pods). Instead of failing forever, return the already created pod.

Signed-off-by: Peter Hunt <[email protected]>
@haircommander
Copy link
Member Author

reabsed
/hold cancel

@openshift-ci openshift-ci bot removed lgtm Indicates that a PR is ready to be merged. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 14, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 15, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [haircommander,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit a05656a into cri-o:main Sep 15, 2022
@saschagrunert
Copy link
Member

/cherry-pick release-1.25

@openshift-cherrypick-robot

@saschagrunert: new pull request created: #6241

Details

In response to this:

/cherry-pick release-1.25

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants