Skip to content

IPv6 only: bug fix - enableIPv4 for old networks#48489

Merged
robmry merged 1 commit intomoby:masterfrom
robmry:enable_ipv4_for_old_networks
Sep 17, 2024
Merged

IPv6 only: bug fix - enableIPv4 for old networks#48489
robmry merged 1 commit intomoby:masterfrom
robmry:enable_ipv4_for_old_networks

Conversation

@robmry
Copy link
Copy Markdown
Contributor

@robmry robmry commented Sep 12, 2024

- What I did

Fix a bug introduced in:

- How I did it

The new Network.enableIPv4 flag needs to be set for IPv4 networks created before it was introduced.

Commit 903daa4 attempted to do that in the unmarshalling code by checking Network.ipamV4Info - but, that field hadn't been unmarshalled yet, so it was never present.

Instead, check for its presence in the saved map.

- How to verify it

Create a bridge network with moby 27.x, update to a version built from master, start a container on the IPv4 network - see that the daemon doesn't crash (the bridge code can't yet cope with !enableIpv4).

- Description for the changelog

n/a

The new Network.enableIPv4 flag needs to be set for IPv4
networks created before it was introduced.

Commit 903daa4 attempted to do that in the unmarshalling code
by checking Network.ipamV4Info - but, that field hadn't been
unmarshalled yet, so it was never present.

Instead, check for its presence in the saved map.

Signed-off-by: Rob Murray <[email protected]>
@robmry robmry self-assigned this Sep 12, 2024
@robmry robmry added this to the 28.0.0 milestone Sep 12, 2024
@robmry robmry added area/networking Networking kind/bugfix PR's that fix bugs area/networking/ipv6 Networking area/networking/d/bridge Networking labels Sep 12, 2024
@thaJeztah
Copy link
Copy Markdown
Member

@robmry this is the one we need backported?

@thaJeztah
Copy link
Copy Markdown
Member

oh, probably not because we didn't include the related change? (#48343)

@robmry
Copy link
Copy Markdown
Contributor Author

robmry commented Sep 12, 2024

oh, probably not because we didn't include the related change? (#48343)

Yes, exactly - only a few IPv6 only changes are in master, the rest of are in the review queue. So they don't do anything useful yet. (And I think they'll need to end up in a major release.)

@robmry robmry merged commit 6bfeb5f into moby:master Sep 17, 2024
@robmry robmry deleted the enable_ipv4_for_old_networks branch September 17, 2024 17:02
@robmry robmry mentioned this pull request Nov 4, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants