Skip to content
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

e2e: Test replication of cloned pvc using flattening #1632

Open
Tracked by #1717
nirs opened this issue Oct 31, 2024 · 2 comments
Open
Tracked by #1717

e2e: Test replication of cloned pvc using flattening #1632

nirs opened this issue Oct 31, 2024 · 2 comments
Labels
test Testing related issue

Comments

@nirs
Copy link
Member

nirs commented Oct 31, 2024

Support for cloned pvcs was added in ODF 4.17 via flattening. The main use case is virtual machines created from golden image, but this can be used and tested with any workload.

Ramen does not do a lot in this use case, but we want to be sure that the code filtering volume replication classes and handling errors cases when handling VR status is kept working.

Creating a workload with cloned pvc is pretty quick, and flattening a tiny image is very fast, so there is no issue to run this workload with any PR.

Creating the workload

  1. Create and provision source pvc with busybox image
    • We can use DataVolume to provision the pvc from a container disk image
  2. Create a volume snapshot from the pvc
  3. Delete the source pvc
  4. Create a workload using the PVC with the volume snapshot as source
    • We can use DataVolume to create a pvc from the volume snapshot in another namespace.
  5. When adding drpc, use a drpolicy with flattening enabled

Cleaning up

  • Remove the volume snapshot
  • We can treat the volume snapshot as shared resources that can be used by other tests, create it in the suite setup phase, and remove it in suite teardown phase.

Deployers

  • Should we test with one deployer or many?

Environment

  • Add CDI to regional-dr env to make it easy to create and provision pvcs
  • Add vrc with flattenMode enabled
  • Add drpolicy selecting the vrc with flattening enabled

Related info

I have scripts and resources for manual testing with deployment and vm here:

@nirs nirs added the test Testing related issue label Oct 31, 2024
@nirs
Copy link
Member Author

nirs commented Oct 31, 2024

@Rakshith-R anything missing?

@Rakshith-R
Copy link
Contributor

@Rakshith-R anything missing?

We need similar test for PVC-PVC clone as well.

  • Create and provision source pvc with busybox image
  • We can use DataVolume to provision the pvc from a container disk image
  • Create another clone pvc from the source pvc
  • Delete the source pvc
  • Create a workload using the clone with the original pvc as source
  • We can use DataVolume to create a pvc from the original pvc in another namespace.
  • When adding drpc, use a drpolicy with flattening enabled

@nirs nirs mentioned this issue Dec 11, 2024
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testing related issue
Projects
None yet
Development

No branches or pull requests

2 participants