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

Check Data Movement Manager for Ready Flag for DataIn/DataOut #238

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

bdevcich
Copy link
Contributor

  • Add check in DataIn/DataOut and requeue when DMM is not ready
  • Remove omitempty from ddm ready flag so this shows up as false when not
    ready.
  • RBAC fix

Signed-off-by: Blake Devcich [email protected]

- Add check in DataIn/DataOut and requeue when DMM is not ready
- Remove omitempty from ddm ready flag so this shows up as false when not
ready.
- RBAC fix

Signed-off-by: Blake Devcich <[email protected]>
Signed-off-by: Blake Devcich <[email protected]>
return nil, dwsv1alpha2.NewResourceError("could not get NnfDataMovementManager %v", client.ObjectKeyFromObject(dmm)).WithError(err).WithUserMessage("could not determine data movement readiness")
}
if !dmm.Status.Ready {
return Requeue("pending data movement readiness").withObject(dmm), nil
Copy link
Contributor

@matthew-richerson matthew-richerson Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better requeuing after a time delay

.after(5 * time.Second)

Signed-off-by: Blake Devcich <[email protected]>
@bdevcich bdevcich merged commit 1a62f95 into master Nov 14, 2023
1 check passed
@bdevcich bdevcich deleted the dmm-ready-check branch November 14, 2023 20:42
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.

4 participants