Commit b4f7289
authored
fix(hubble): surface controller-runtime manager start failures (#2399)
# Description
Wrap the controller-runtime manager's start call so that any returned
error or an unexpected clean return is logged and triggers a hive
shutdown instead of being silently discarded by the worker pool.
## Related Issue
If this pull request is related to any issue, please mention it here.
Additionally, make sure that the issue is assigned to you before
submitting this pull request.
## Checklist
- [x] I have read the [contributing
documentation](https://retina.sh/docs/Contributing/overview).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [ ] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
In my case, a port conflict was preventing the controller-runtime
manager from starting:
```
ts=2026-06-02T13:35:23.949Z level=error caller=hubble/daemon_linux.go:86 msg="controller-runtime manager exited with error; node reconciler is no longer running" module=agent.control-plane.daemon error="failed to start metrics server: failed to create listener: listen tcp :18080: bind: address already in use" stacktrace="log/slog.(*Logger).Error\n\t/usr/local/go/src/log/slog/logger.go:229\ngithub.qkg1.top/microsoft/retina/cmd/hubble.init.func4.1.1\n\t/go/src/github.com/microsoft/retina/cmd/hubble/daemon_linux.go:86\ngithub.qkg1.top/cilium/workerpool.(*WorkerPool).run.func1\n\t/go/pkg/mod/github.com/cilium/workerpool@v1.4.0/workerpool.go:269"
```
## Additional Notes
Add any additional notes or context about the pull request here.
---
Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
Signed-off-by: Sébastien Larivière <sebastien.lariviere@goto.com>1 parent b165b60 commit b4f7289
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
| |||
0 commit comments