Skip to content

staticaddr: wait for address manager initiation #953

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hieblmi
Copy link
Collaborator

@hieblmi hieblmi commented Jun 12, 2025

This PR reverts a regression that was introduced in 042fe9f by making sure that the address manager is initialized before other managers begin their initialization.

@@ -90,6 +99,14 @@ func (m *Manager) Run(ctx context.Context) error {
}
}

// WaitInitComplete waits until the address manager has completed its setup.
func (m *Manager) WaitInitComplete() {
Copy link
Member

Choose a reason for hiding this comment

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

I'd add waiting for a timeout here, either via passing in a context or just listening for a timer here and then returning an error.

We also have a different pattern already

if d.reservationManager != nil {
but that is more locs in the main function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I went with your suggestion and applied your pattern to all static services. Will also run this over integration tests.

Copy link
Member

@sputn1ck sputn1ck left a comment

Choose a reason for hiding this comment

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

LGTM!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants