Skip to content

fix(servapps): give each route of a servapp its own port - #577

Open
mbret wants to merge 4 commits into
azukaar:masterfrom
mbret:fix/servapp-route-port-collision
Open

mbret wants to merge 4 commits into
azukaar:masterfrom
mbret:fix/servapp-route-port-collision

Conversation

@mbret

@mbret mbret commented Aug 28, 2026

Copy link
Copy Markdown

On an IP-based install getHostnameFromName allocates the first port in 7200-7350 that no existing route uses, but the routes generated alongside it are not in the config yet. Every route of a multi-service servapp was therefore handed the same port, so only one of them was reachable.

Track the hosts already claimed while generating a compose's hostnames and skip them when looking for a free port. Claiming happens after the branch that restores a hostname the user already edited, so a hand-picked port reserves itself against its siblings too.

@cla-bot

cla-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.

1 similar comment
@cla-bot

cla-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.

mbret added 2 commits August 28, 2026 19:08
On an IP-based install getHostnameFromName allocates the first port in
7200-7350 that no existing route uses, but the routes generated alongside it
are not in the config yet. Every route of a multi-service servapp was
therefore handed the same port, so only one of them was reachable.

Track the hosts already claimed while generating a compose's hostnames and
skip them when looking for a free port. Claiming happens after the branch that
restores a hostname the user already edited, so a hand-picked port reserves
itself against its siblings too.
@mbret
mbret force-pushed the fix/servapp-route-port-collision branch from 0a7a471 to 07bd63d Compare August 28, 2026 19:09
@cla-bot

cla-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.

@cla-bot

cla-bot Bot commented Aug 29, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.

@mbret

mbret commented Aug 29, 2026

Copy link
Copy Markdown
Author

@azukaar onegaishimasu !

@cla-bot

cla-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.

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.

1 participant