Repository navigation
e2e: add snapshot test in nvmeof csi - #6438
Conversation
98f27fe to
6520e42
Compare
|
/test ci/centos/mini-e2e/k8s-1.37/nvmeof |
|
@nixpanic I see it failed on this test, I will take a look |
I do not see any CreateSnapshot requests in the logs. Maybe the csi-snapshotter sidecar is not part of the controller-plugin Pod? |
|
/test ci/centos/mini-e2e/k8s-1.37/nvmeof |
There was a problem hiding this comment.
Pull request overview
This PR adds NVMe-oF CSI end-to-end coverage for VolumeSnapshot create/restore workflows, and updates the NVMe-oF provisioner deployment to include the snapshotter sidecar required for snapshot operations.
Changes:
- Add NVMe-oF VolumeSnapshotClass create/delete helpers for e2e.
- Add a new NVMe-oF e2e test that creates a source PVC, snapshots it, restores a PVC from the snapshot, and validates backend cleanup.
- Update the NVMe-oF provisioner Deployment to run
csi-snapshotter.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| e2e/snapshot.go | Adds NVMe-oF VolumeSnapshotClass creation/deletion helpers for e2e runs. |
| e2e/nvmeof.go | Adds an NVMe-oF snapshot + restore-from-snapshot e2e test with backend validation. |
| deploy/nvmeof/kubernetes/csi-nvmeofplugin-provisioner.yaml | Adds the csi-snapshotter sidecar to the NVMe-oF provisioner Deployment. |
Suppressed comments (2)
e2e/nvmeof.go:546
- If snapshot creation succeeds but a later step fails, the VolumeSnapshot can remain and impact later ordered specs. Consider adding a best-effort deferred cleanup immediately after successful snapshot creation.
err = createSnapshot(&snap, deployTimeout)
Expect(err).ShouldNot(HaveOccurred())
e2e/nvmeof.go:562
- If the restored PVC is created successfully but a later step fails, it can leak into subsequent ordered specs. Add a best-effort deferred cleanup right after successful creation to keep the suite self-cleaning on failures.
err = createPVCAndvalidatePV(f.ClientSet, restorePVC, deployTimeout)
Expect(err).ShouldNot(HaveOccurred())
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
5683de4 to
acf0a75
Compare
|
@nixpanic , the last forced push because I rebased onto devel |
|
/queue |
|
Oh no, a merge conflict 😞 |
|
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
acf0a75 to
4ceb2cc
Compare
cfa5bc7 to
d535bfe
Compare
|
/test ci/centos/mini-e2e/k8s-1.37/nvmeof |
|
The new test was run and passed: Once the other PRs are #6479 and #6478 are merged, this can be scheduled for automatic rebasing and testing by leaving the |
|
/queue |
|
@Mergifyio rebase |
🛑 The pull request rule doesn't match anymoreDetailsThis action has been cancelled. |
Test flow: 1. Create a source PVC 2. Create a snapshot of the source PVC 3. Create a new PVC restored from the snapshot 4. Delete the restored PVC 5. Delete the snapshot 6. Delete the source PVC Signed-off-by: gadi-didi <[email protected]>
adding this for snapshot e2e test. the nvmeof csi supports snapshot capability (it redirect the request to his backend server - rbd csi) Signed-off-by: gadi-didi <[email protected]>
d535bfe to
e94f7f6
Compare
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/k8s-e2e-external-storage/1.36 |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/mini-e2e-helm/k8s-1.36 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/mini-e2e/k8s-1.36 |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
Deprecation notice: This pull request comes from a fork and was queued with |
Merge Queue Status
This pull request spent 10 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Add snapshot test in nvmeof csi e2e test.
the test flow:
Closes: #6435