Repository navigation
Fix network multinodes - #701
Merged
Merged
Conversation
mlohvynenko
approved these changes
Nov 19, 2026
mlohvynenko
left a comment
Member
There was a problem hiding this comment.
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
al1img
approved these changes
Nov 23, 2026
al1img
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
added 5 commits
November 23, 2026 14:12
Take the DNS server out of CreateNetwork: it is now created when the first instance of the network is started and removed on start failure if no other instance uses it. This lets a node network exist without a DNS server while it has no instances. Signed-off-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Add OnUnitNetworksUpdate to the CM -> SM handler interface. On update SM requests node network parameters and creates bridge and VLAN for every unit network it does not have yet, and releases the node networks that left the set and have no instances. Node network creation and release on CM are serialized, and an instance being created keeps its network from being released. Signed-off-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
A unit network is not torn down with its last local instance anymore: stop of the last running instance removes only the DNS server and keeps bridge and VLAN, and release of the last instance keeps the node network info and does not release the node network on CM. The network is removed when a unit networks update drops it. Signed-off-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Take the stored node networks as unit networks until CM sends the unit networks update, and restore their bridge and VLAN on start, so the networks are in place after SM restart even without CM connection. Keep DNS servers only for networks with running instances: DNS orphans are matched against networks that have instances, and a DNS server created for leftover instance cleanup is removed after reconcile. Signed-off-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Describe unit networks: the unit networks update notification, how SM keeps every unit network on the node, the start sequence and the instance network lifecycle with the DNS server created for the first running instance. Signed-off-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
MykolaSuperman
force-pushed
the
fix_network_multinodes
branch
from
November 23, 2026 12:13
248307d to
c2f694d
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.