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
Execute sync before taking the snapshot #107312
Execute sync before taking the snapshot #107312
Conversation
@mauriciopoppe: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/retest |
/hold Sync isn't working in the agnhost image:
|
/hold cancel I tried with this manifest and sync is available here, it was a problem on my end.
|
@@ -422,7 +422,7 @@ func (s *snapshottableTestSuite) DefineTests(driver storageframework.TestDriver, | |||
|
|||
ginkgo.By("modifying the data in the source PVC") | |||
|
|||
command := fmt.Sprintf("echo '%s' > %s", modifiedMntTestData, datapath) | |||
command := fmt.Sprintf("echo '%s' > %s; sync", modifiedMntTestData, datapath) |
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.
Does sync also have to be added in https://github.com/kubernetes/kubernetes/blob/227da7b0534d344a4a41ad2041b92a601e9765df/test/e2e/storage/testsuites/snapshottable.go#L145?
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.
good catch, added sync there too
227da7b
to
c13f0eb
Compare
c13f0eb
to
a863687
Compare
a863687
to
50b2ec2
Compare
/test pull-kubernetes-e2e-gce-storage-slow |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jingxu97, mauriciopoppe 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 |
@mauriciopoppe can you cherry-pick this to 1.23 also btw? It looks like these tests can fail there too. |
…f-#107312-upstream-release-1.23 Automated cherry pick of #107312: Execute sync before taking the snapshot
…f-#107312-upstream-release-1.21 Automated cherry pick of #107312: Execute sync before taking the snapshot
…f-#107312-upstream-release-1.22 Automated cherry pick of #107312: Execute sync before taking the snapshot
What type of PR is this?
/kind bug
/kind failing-test
/kind flake
What this PR does / why we need it:
From the last CI runs of PD CSI Driver it looks like sometimes data is not flushed to disk, after the echo command is execute we flush the data with the
sync
command.Does this PR introduce a user-facing change?
/cc @jingxu97