forked from RamenDR/ramen
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test ramen volsync integration #25
Open
BenamarMk
wants to merge
62
commits into
ramen_volsync_integration
Choose a base branch
from
test_ramen_volsync_integration
base: ramen_volsync_integration
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Test ramen volsync integration #25
BenamarMk
wants to merge
62
commits into
ramen_volsync_integration
from
test_ramen_volsync_integration
Conversation
This file contains 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
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
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 <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
- 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 <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
- 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 <[email protected]>
- includes unit test fix, wasn't properly catching this Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
- 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 <[email protected]>
- 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 <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
Signed-off-by: Tesshu Flower <[email protected]>
and does not match our desired datasource (i.e. desired snapshot) Signed-off-by: Tesshu Flower <[email protected]>
also unit test updates Signed-off-by: Tesshu Flower <[email protected]>
BenamarMk
force-pushed
the
ramen_volsync_integration
branch
2 times, most recently
from
May 5, 2022 17:40
442854d
to
8a0e154
Compare
BenamarMk
force-pushed
the
ramen_volsync_integration
branch
2 times, most recently
from
May 18, 2022 22:51
dff46a2
to
8ea33c7
Compare
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.