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

Skip to content

Conversation

@haircommander
Copy link
Member

What type of PR is this?

/kind bug

What this PR does / why we need it:

if CreatedAt is zero, the Kubelet will complain and also be confused by the container.
Attempt to update in this case.

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

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

fix a bug where the status of a container ends up being bogus, causing Kubelet to print `verify ContainerStatus failed" err="status.CreatedAt is not set` repeatedly.

@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jun 30, 2022
@openshift-ci openshift-ci bot requested review from klihub and wgahnagl June 30, 2022 20:28
@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 30, 2022
@haircommander
Copy link
Member Author

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2022
@haircommander haircommander force-pushed the update-state branch 3 times, most recently from 2f0a5a7 to 31981ce Compare June 30, 2022 20:36
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, I assume we cannot reproduce this scenario and therefore have no integration test for it?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 1, 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

if CreatedAt is zero, the Kubelet will complain and also be confused by the container.
Attempt to update in this case.

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

no reproducer yet, but I did add a unit test :)

@codecov
Copy link

codecov bot commented Jul 1, 2022

Codecov Report

Merging #6023 (98043cc) into main (615d9eb) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6023      +/-   ##
==========================================
+ Coverage   42.74%   42.78%   +0.03%     
==========================================
  Files         119      119              
  Lines       12620    12627       +7     
==========================================
+ Hits         5395     5402       +7     
  Misses       6705     6705              
  Partials      520      520              

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 1, 2022

@haircommander: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/openshift-jenkins/integration_crun 98043cc link true /test integration_crun
ci/openshift-jenkins/integration_crun_cgroupv2 98043cc link false /test integration_cgroupv2

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@haircommander
Copy link
Member Author

possible alternative to this: #6026

if we go that route, we could potentially backport this fix to older branches, and leave that one for 1.25

@TomSweeneyRedHat
Copy link
Contributor

LGTM
assuming happy tests

@haircommander
Copy link
Member Author

replaced by #6122

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. 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.

3 participants