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

Skip to content

Conversation

@haircommander
Copy link
Member

This commit reverts d2ded1d and adds a test that maintains what it was trying to do.

When upgrading from a cluster that uses runc to one that uses crun, there may be workloads that specifically request the old default. Those workloads will fail on restart. To fix this, don't remove runc from the map. We've since added code that means we don't fail if one of the non-default runtimes fails validation (if the binary doesn't exist) so we can handle that situation, which
d2ded1d meant to fix.

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

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix a bug where updating `default_runtime` would cause the `runc` entry in the runtimes table to be deleted

@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 Sep 27, 2022
@openshift-ci openshift-ci bot requested review from klihub and wgahnagl September 27, 2022 19:41
@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 27, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 27, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 27, 2022
@haircommander
Copy link
Member Author

@harche we return again, PTAL, lemme know how you feel about this

This commit reverts d2ded1d and adds a
test that maintains what it was trying to do.

When upgrading from a cluster that uses runc to one that uses crun,
there may be workloads that specifically request the old default. Those
workloads will fail on restart. To fix this, don't remove runc from the
map. We've since added code that means we don't fail if one of the
non-default runtimes fails validation (if the binary doesn't exist) so
we can handle that situation, which
d2ded1d meant to fix.

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

also @cynepco3hahue because you chimed in here

@codecov
Copy link

codecov bot commented Sep 27, 2022

Codecov Report

Merging #6257 (4816834) into main (30f03d8) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6257      +/-   ##
==========================================
- Coverage   43.70%   43.70%   -0.01%     
==========================================
  Files         122      122              
  Lines       13666    13662       -4     
==========================================
- Hits         5973     5971       -2     
+ Misses       7047     7046       -1     
+ Partials      646      645       -1     

@littlejawa
Copy link
Contributor

The kata CI is failing here because the test was renamed.
Our way of skipping tests is based on their name, so I will need to fix that on the kata CI scripts side.

@harche
Copy link
Contributor

harche commented Sep 29, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2022
@haircommander
Copy link
Member Author

@littlejawa should I wait to merge this till that one does, or should I override this because that relies on this?

@littlejawa
Copy link
Contributor

@littlejawa should I wait to merge this till that one does, or should I override this because that relies on this?

@haircommander - the problem if we merge this PR is that all subsequent PRs targetting the main branch will fail because of these tests :-(
I will ping people and try to get it merged ASAP.
Sorry for the delay

@littlejawa
Copy link
Contributor

/retest-kata

@littlejawa
Copy link
Contributor

/retest

@openshift-merge-robot openshift-merge-robot merged commit edf889b into cri-o:main Sep 30, 2022
@haircommander
Copy link
Member Author

thank you @littlejawa

/cherry-pick release-1.25

@openshift-cherrypick-robot

@haircommander: new pull request created: #6264

Details

In response to this:

thank you @littlejawa

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

5 participants