RamenDR / ramen

Apache License 2.0
74 stars 56 forks source link

e2e: Test replication of cloned pvc using flattening #1632

Open nirs opened 3 weeks ago

nirs commented 3 weeks ago

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

Deployers

Environment

Related info

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

nirs commented 3 weeks ago

@Rakshith-R anything missing?

Rakshith-R commented 2 weeks ago

@Rakshith-R anything missing?

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