Skip to content

Conversation

@fmoehler
Copy link
Contributor

@fmoehler fmoehler commented Oct 6, 2025

What is this change about?

If the bosh directors ip version does not match the ip version of the subnet range (ipv4 <-> ipv6), bosh will trigger a redeploy everytime it deploys the relevant deployment. This PR will avoid to add an ipv4 to the restricted ips if the range of the subnet is ipv6 and vice versa, which is the root cause of the issue and does not make any sense. I also added an integration test.

Other symptoms include:

"No more IPs available"
In debug logs: "Failed to find network <network_name> or a network with valid subnets for <ip_address>,reservation will be marked as obsolete"

What tests have you run against this PR?

Unit tests and created a separate integration test which I ran on the concourse worker

How should this change be described in bosh release notes?

Avoid unnecessary redeploys

Does this PR introduce a breaking change?

No

@fmoehler fmoehler force-pushed the dont-add-bosh-director-ip-to-restricted-ips-for-different-ip-versions branch from 899892a to 9ad03f5 Compare October 6, 2025 08:57
@fmoehler fmoehler marked this pull request as ready for review October 6, 2025 09:05
@fmoehler fmoehler force-pushed the dont-add-bosh-director-ip-to-restricted-ips-for-different-ip-versions branch from 9ad03f5 to 856f972 Compare October 6, 2025 09:12
@fmoehler fmoehler changed the title Don't add bosh director ip if ip version do not match Don't add bosh director ip if ip versions do not match Oct 6, 2025
@fmoehler fmoehler changed the title Don't add bosh director ip if ip versions do not match Avoid unnecessary redeploys Oct 6, 2025
@fmoehler fmoehler requested review from a team, KauzClay and ramonskie and removed request for a team October 6, 2025 09:17
If the bosh directors ip version does not match the ip version of the subnet range (ipv4 <-> ipv6), bosh will trigger a redeploy everytime it deploys the relevant deployment. I also added an intgration test for this use case.
@fmoehler fmoehler force-pushed the dont-add-bosh-director-ip-to-restricted-ips-for-different-ip-versions branch from 856f972 to 0ec8a21 Compare October 7, 2025 08:06
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Oct 8, 2025
@rkoster rkoster merged commit faaf2f3 into main Oct 9, 2025
19 checks passed
@rkoster rkoster deleted the dont-add-bosh-director-ip-to-restricted-ips-for-different-ip-versions branch October 9, 2025 14:46
@beyhan beyhan moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants