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

Skip to content

Conversation

@giuseppe
Copy link
Member

overlay supports a new mount option "volatile" that reduces I/O by
ignoring fsync and syncfs requests.

Enable it for CRI-O containers as they are "volatile" by nature and
are not supposed to survive a reboot.

Even in the case containers created by CRI-O are persistent, we
already have code in place to throw away the storage if the shutdown
was not clean, so they will be cleaned up in any case.

Signed-off-by: Giuseppe Scrivano [email protected]

What type of PR is this?

/kind feature

What this PR does / why we need it:

Enable volatile for the overlay storage.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Enable the  "volatile" option for the overlay drivers when it is supported by the underlying kernel.

@giuseppe giuseppe requested review from mrunalp and runcom as code owners May 10, 2021 19:21
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 10, 2021
@openshift-ci openshift-ci bot requested review from nalind and umohnani8 May 10, 2021 19:21
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2021
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

@TomSweeneyRedHat
Copy link
Contributor

LGTM
assuming happy tests

@giuseppe
Copy link
Member Author

/cc @rhatdan

@openshift-ci openshift-ci bot requested a review from rhatdan May 12, 2021 18:41
@giuseppe
Copy link
Member Author

/retest

@rhatdan
Copy link
Contributor

rhatdan commented May 12, 2021

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 12, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, rhatdan, 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 [giuseppe,rhatdan,saschagrunert]

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

@haircommander
Copy link
Member

/hold

actually I'm not sure about this. We rely on the container storage to cleanup CNI resources on reboot now (see #4767). Does the volatile option apply to the config.json as well (the information we'd need to restore a pod to then call CNI del)?

@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 May 12, 2021
@mrunalp
Copy link
Member

mrunalp commented May 12, 2021

@giuseppe This only applies to the rootfs?

@haircommander
Copy link
Member

looking into it, I misuderstood a bit what volatile did. Still, we need to be able to restore containers on reboot (or at least call CNI del on ones we fail to restore).

@rhatdan
Copy link
Contributor

rhatdan commented May 13, 2021

This will only effect the overlay storage layer, not any of the other artifacts of the container. If the system crashes some of the content in the container image could be lost, but nothing else.

@giuseppe
Copy link
Member Author

giuseppe commented May 13, 2021

yes, volatile affects only the rootfs of the container

@giuseppe
Copy link
Member Author

/retest

@giuseppe
Copy link
Member Author

/test e2e-agnostic

overlay supports a new mount option "volatile" that reduces I/O by
ignoring fsync and syncfs requests.

Enable it for CRI-O containers as they are "volatile" by nature and
are not supposed to survive a reboot.

Even in the case containers created by CRI-O are persistent, we
already have code in place to throw away the storage if the shutdown
was not clean, so they will be cleaned up in any case.

Signed-off-by: Giuseppe Scrivano <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 14, 2021
@giuseppe
Copy link
Member Author

/retest

@giuseppe
Copy link
Member Author

/retest

@giuseppe
Copy link
Member Author

anything more holding this PR?

@haircommander
Copy link
Member

/hold cancel

My previous concerns are alleviated, LGTM

@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 May 21, 2021
@giuseppe
Copy link
Member Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2021

@giuseppe: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/openshift-jenkins/e2e_crun_cgroupv2 322a18e link /test e2e_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.

@giuseppe
Copy link
Member Author

can I've my lgtm back? :-)

@rhatdan
Copy link
Contributor

rhatdan commented May 24, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 24, 2021
@openshift-bot
Copy link

/retest

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

3 similar comments
@openshift-bot
Copy link

/retest

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

@openshift-bot
Copy link

/retest

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

@openshift-bot
Copy link

/retest

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

@openshift-merge-robot openshift-merge-robot merged commit dd7498b into cri-o:master May 24, 2021
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/feature Categorizes issue or PR as related to a new feature. 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.

8 participants