-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: check for clean shutdown on reboot #7190
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
feat: check for clean shutdown on reboot #7190
Conversation
|
Hi @MdSahil-oss. 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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
624c7cf to
336abb7
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7190 +/- ##
==========================================
- Coverage 49.24% 49.18% -0.07%
==========================================
Files 136 136
Lines 15517 15555 +38
==========================================
+ Hits 7641 7650 +9
- Misses 6972 6998 +26
- Partials 904 907 +3 |
336abb7 to
099322b
Compare
|
the structure here looks good, I'm writing a test case to validate it, so let's |
|
/ok-to-test |
|
@MdSahil-oss can you cherry-pick haircommander@bb5c01e ? it passes here but fails on main :) |
|
Sure @haircommander I can cherry pick haircommander@bb5c01e. |
|
/ok-to-test |
compile error |
|
/ok-to-test |
|
/approve LGTM, thanks! |
|
/retest |
|
/retest |
1b41401 to
be600a2
Compare
|
/retest |
|
@MdSahil-oss the test is failing because there are a handful more places you need to wire the configuration to. I have added two commits I think should be picked here and squashed into your other commits: https://github.com/haircommander/cri-o/tree/wipe-check-shut-down |
internal/criocli/criocli.go
Outdated
| }, | ||
| &cli.BoolFlag{ | ||
| Name: "internal-repair", | ||
| Usage: "If true, CRI-O will check if contents of an image was modified or removed and repair the image.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think this should be
If true, CRI-O will check if the container and image storage was corrupted after a sudden restart, and attempt to repair the storage if it was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@haircommander Done 👍🏽
|
/retest |
|
/retest |
unexpected |
60d50e2 to
547509b
Compare
|
/retest |
…ot, If it was not clean then apply repair logic Signed-off-by: Md Sahil <[email protected]>
Signed-off-by: Md Sahil <[email protected]>
547509b to
7e3522a
Compare
|
/retest |
|
/approve LGTM, thanks @MdSahil-oss PTAL @cri-o/cri-o-maintainers |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, MdSahil-oss, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/override ci/prow/ci-fedora-integration |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/ci-fedora-integration DetailsIn response to this:
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. |
|
/override ci/prow/ci-rhel-critest |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/ci-rhel-critest DetailsIn response to this:
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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a feature to verify at reboot time that shutdown was clean or not, If it was not clean then applies repair logic implemented here
Which issue(s) this PR fixes:
Fixes #7177
Special notes for your reviewer:
Does this PR introduce a user-facing change?