Test ramen volsync integration#25
Open
BenamarMk wants to merge 62 commits into
Open
Conversation
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Use one VRG for VolRep and VolSync instead of two. Also, Simplify DRPC orchestration when setting up Replication Destination and Replication Source. This assumes that Submariner will be used for enabling network connectivity between Kubernetes clusters.
We'll fix it later
- Functions to generate/reconcile a volsync rsync secret
- Functions to propagate the volsync rsync secret from hub to
mgd clusters
- Simplification that assumes submariner:
- Use ClusterIP service type by default
- Create ServiceExport with the ReplicationDestination to export
the svc created by the RD by name
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
- Generate secret for volsync (per DRPC) on hub - Propagate secret to clusters - Do not pass secret name from drpc to vrg, will name based on the vrg name which == drpc name. This way no mods to drpc/vrg spec and no need for updating vrg again via manifestwork just for the secret name - updates to try to stay consistent with requeue (but may need changes) - Try to be more consistent with reconcileRD and reconcileRS wrt returning and reqeueue - in reconcileAsPrimary - remove old RDs before creating RSs to avoid issue with new RS connecting to an existing RD on the same cluster NOTE: will need to make sure rdspecs are removed in the spec itself prior to getting to reconcileVolSyncAsPrimary Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
- previously used finalizer on volumesnapshot, added additional ownerRef to snapshot instead (owner=VRG). This solves issues with cleanup and also prevents deletion of VolumeSnapshot when the owning ReplicationDestination is deleted. - For storageclasses that WaitforFirstConsumer, this was previously an issue as pvc would not create from snapshot if snapshot is in deleting state (even if it's prevented from actually deleting by a finalizer) Signed-off-by: Tesshu Flower <tflower@redhat.com>
- includes unit test fix, wasn't properly catching this Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
- Refactore volrep/volsync conditions - Split vrg file into volrep and volsync files - Add volsync final sync support for relocation - Fix 'waiting for status to mark completion'
For failover scenarios (secondary-> primary and primary->secondary): - Remove RD for the PVC before attempting to create RS - Take ownership of PVC (to VRG) before creating RS (may get moved to the relocate funcs eventually but no harm in doing this here) - Remove RS for the PVC before attempting to create RD (done for consistency, so removed RS cleanup from vrg_volsync.go) Also: - Some fixes in convert function from mhd interval to crontab (max out at 28days to easily convert to a crontab schedule that makes sense) - unit test updates for the above Signed-off-by: Tesshu Flower <tflower@redhat.com>
- waits for acm reconcile-option annotation set to "merge" or not exist - "takes over" ownership of the pvc by removing acm annotations and adding vrg as owner in ownerRefs Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
Signed-off-by: Tesshu Flower <tflower@redhat.com>
and does not match our desired datasource (i.e. desired snapshot) Signed-off-by: Tesshu Flower <tflower@redhat.com>
also unit test updates Signed-off-by: Tesshu Flower <tflower@redhat.com>
442854d to
8a0e154
Compare
dff46a2 to
8ea33c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.