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

Skip to content

Conversation

@rst0git
Copy link
Contributor

@rst0git rst0git commented Oct 9, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it:

The CRI-O implementation for container checkpointing is based on Podman. One of the differences between CRI-O and Podman is that with CRI-O, containers continue to run after checkpointing, and the checkpoint is exported as a tar archive file. However, after the checkpoint has been created, all checkpoint files remain in the userdata directory of the container. As a result, subsequent checkpoints include files from previous checkpoints. To fix this problem, this patch ensures that we clean up the checkpoint directory after the checkpoint files have been exported.

Special notes for your reviewer:

The original pull request introducing container checkpoint (#4199) contains more information about exporting of checkpoints.

Does this PR introduce a user-facing change?

Clean up container checkpoint directory after export

@rst0git rst0git requested a review from mrunalp as a code owner October 9, 2023 13:10
@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. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 9, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 9, 2023

Hi @rst0git. Thanks for your PR.

I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@adrianreber
Copy link
Member

Sounds right. Thanks.

@adrianreber
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 9, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #7355 (1cea76d) into main (f5412df) will decrease coverage by 0.01%.
Report is 130 commits behind head on main.
The diff coverage is 33.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7355      +/-   ##
==========================================
- Coverage   49.19%   49.18%   -0.01%     
==========================================
  Files         145      145              
  Lines       15818    15821       +3     
==========================================
  Hits         7782     7782              
- Misses       7099     7101       +2     
- Partials      937      938       +1     

@sohankunkerkar
Copy link
Member

/retest
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2023
@sohankunkerkar
Copy link
Member

/retest

@haircommander
Copy link
Member

/approve
/retest

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 10, 2023
@sohankunkerkar
Copy link
Member

/retest

1 similar comment
@sohankunkerkar
Copy link
Member

/retest

@github-actions
Copy link

A friendly reminder that this PR had no activity for 30 days.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 18, 2023
The CRI-O implementation for container checkpointing is based on Podman.
One of the differences between CRI-O and Podman is that with CRI-O,
containers continue to run after checkpointing, and the checkpoint
is exported as a tar archive file.

However, after the checkpoint has been created, all checkpoint files
remain in the userdata directory of the container. As a result,
subsequent checkpoints include files from previous checkpoints.

To fix this problem, this patch ensures that we clean up the checkpoint
directory after the checkpoint files have been exported.

Suggested-by: Adrian Reber <[email protected]>
Signed-off-by: Radostin Stoyanov <[email protected]>
@rst0git rst0git force-pushed the checkpoint-dir-clean-up branch from 3d77ed5 to 1cea76d Compare November 18, 2023 15:45
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 18, 2023
@rst0git
Copy link
Contributor Author

rst0git commented Nov 24, 2023

@mrunalp PTAL

@haircommander
Copy link
Member

/retest
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2023
@haircommander haircommander added this to the 1.29 milestone Dec 4, 2023
@saschagrunert
Copy link
Member

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, rst0git, 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

@sohankunkerkar sohankunkerkar removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 5, 2023
@sohankunkerkar
Copy link
Member

/retest

2 similar comments
@sohankunkerkar
Copy link
Member

/retest

@sohankunkerkar
Copy link
Member

/retest

@saschagrunert
Copy link
Member

/override ci/prow/ci-fedora-integration

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 13, 2023

@saschagrunert: Overrode contexts on behalf of saschagrunert: ci/prow/ci-fedora-integration

Details

In response to this:

/override ci/prow/ci-fedora-integration

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.

@saschagrunert
Copy link
Member

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 435d2df into cri-o:main Dec 18, 2023
@rst0git rst0git deleted the checkpoint-dir-clean-up branch December 21, 2023 07:57
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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