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: Improve waiting for drpc readiness #1687

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

nirs
Copy link
Member

@nirs nirs commented Dec 1, 2024

Improve the implementation and logging when waiting until drpc is ready.

  • Improve waitDRPCReady logging and error handling
  • Unify waiting for failover or relocate

Part of #1686

@nirs nirs force-pushed the e2e-wait-drpc-ready branch from e962d98 to b03562c Compare December 1, 2024 14:49
@nirs nirs marked this pull request as ready for review December 1, 2024 15:00
@nirs nirs marked this pull request as draft December 1, 2024 15:04
@nirs
Copy link
Member Author

nirs commented Dec 1, 2024

Marking as draft since it rebased on other PR.

@nirs nirs force-pushed the e2e-wait-drpc-ready branch from b03562c to 4ba901b Compare December 1, 2024 15:31
@nirs nirs changed the title Fix waiting for drpc readiness after failover or relocate e2e: Improve waiting for drpc readiness Dec 1, 2024
@nirs nirs force-pushed the e2e-wait-drpc-ready branch 2 times, most recently from 0d8758f to 5235415 Compare December 4, 2024 16:48
@nirs nirs marked this pull request as ready for review December 4, 2024 16:48
@nirs nirs marked this pull request as draft December 4, 2024 16:53
@nirs nirs marked this pull request as ready for review December 4, 2024 16:57
@nirs nirs force-pushed the e2e-wait-drpc-ready branch from 5235415 to 762302d Compare December 5, 2024 21:16
@nirs nirs requested a review from rakeshgm December 8, 2024 22:05
nirs added 4 commits December 9, 2024 00:06
- Log when we start to wait for readiness
- Replace INFO logs with more detailed error on timeout
- Replace checkDRPCConditions() with more generic condtionMet()
- Use meta.FindStatusConditions to find the conditions
- Use ramen.Condition* constants

Signed-off-by: Nir Soffer <[email protected]>
For managed apps we waited for Relocated or FailedOver state. For
discovered apps we waited for Completed progression. Unify both to wait
for the state.

Signed-off-by: Nir Soffer <[email protected]>
Inline waitDRPC in the 2 call sites, to make it clear that we wait for
the drpc state and then for readiness. Adding trivial wrapper with
unclear name is not helpful.

Signed-off-by: Nir Soffer <[email protected]>
@nirs nirs force-pushed the e2e-wait-drpc-ready branch from 762302d to 036af72 Compare December 8, 2024 22:10
@raghavendra-talur raghavendra-talur merged commit d5e6221 into RamenDR:main Dec 9, 2024
23 checks passed
@nirs nirs deleted the e2e-wait-drpc-ready branch December 9, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants