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
Add support for disk cache writeback #6968
Conversation
/cc @cedbossneo |
@vladikr: GitHub didn't allow me to request PR reviews from the following users: cedbossneo. Note that only kubevirt members and repo collaborators can review this PR, and authors cannot review their own PRs. In 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. |
a9e7ca2
to
c5edeba
Compare
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.
In general no issues with this change, I am just wondering if we should somehow make it visible for people that this is a setting which has a higher chance than usual to corrupt your disks.
/cc @davidvossel |
c5edeba
to
c1ab2da
Compare
I suppose there is always a risk, but not like the I think there are different nuances with each of these cache modes and we can definitely document that. I'll try to find whether there is something written already or reach out to QEMU maintainers. |
/retest |
@rmohr Kevin Wolf wrote this to OpenStack back at the time, I'll contact him directly too.
|
/lgtm |
Out of curiosity - why didn't we have write-back cache mode until now? |
Sounds like this something which we want to choose for the user then if no explicit mode is provided by the user, right? |
@rmohr yea, only on filesystems without O_DIRECT. Today we default to |
Previously, the use of the |
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.
Looks good to me. I would love to see that we also cover migrations in the tests.
@@ -1954,17 +1958,22 @@ var _ = Describe("[sig-compute]Configurations", func() { | |||
Expect(disks[1].Alias.GetName()).To(Equal("ephemeral-disk2")) | |||
Expect(disks[1].Driver.Cache).To(Equal(cacheWritethrough)) | |||
|
|||
By("checking if requested cache 'writeback' has been set") | |||
Expect(disks[2].Alias.GetName()).To(Equal("ephemeral-disk5")) | |||
Expect(disks[2].Driver.Cache).To(Equal(cacheWriteback)) |
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.
Can you also adjust one migation test to ensure that we can migrate when it is set?
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.
+1 to this. That's the only thing I see missing here.
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.
Yup, good point. Added.
Signed-off-by: Cedric Hauber <hauber.c@gmail.com>
Signed-off-by: Vladik Romanovsky <vromanso@redhat.com>
Signed-off-by: Vladik Romanovsky <vromanso@redhat.com>
c1ab2da
to
66cc6bd
Compare
/retest |
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.
/lgtm
/approve
👍
@@ -528,6 +528,39 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:cnv-qe@redhat.com][leve | |||
By("Waiting for VMI to disappear") | |||
tests.WaitForVirtualMachineToDisappearWithTimeout(vmi, 240) | |||
}) | |||
It("should be successfully migrate with a WriteBack disk cache", func() { |
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.
s/migrate/migrating
/
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rmohr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
What this PR does / why we need it:
This is a follow-up PR to #3144
It will allow users to set disk cache mode to writeback