Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocation sync: use physnet, not hostgroup name #72

Conversation

sebageek
Copy link
Collaborator

The allocation sync currently syncs the host allocations table by using the name of a hostgroup. This value is almost always the same as the physical network of the hostgroup, but not always. As new features will rely on multiple hostgroups belonging to the same physnet we need to fix this.

While doing so we also make sure that if we have multiple hostgroups for the same physnet, we merge the vlan ranges we find in the different hostgroups (that's what the new sorting and grouping is for).

In the config parser, we also now make sure the pyhsical_network config attribute is always set. For Converged Cloud, this is taken care of by the helm charts, but one can never be too sure (and this is not marked as a required attribute).

@sebageek sebageek force-pushed the fix-allocation-sync-for-multiple-hostgroups-with-same-physnet branch from 86fea51 to 412d388 Compare July 11, 2024 14:12
The allocation sync currently syncs the host allocations table by using
the name of a hostgroup. This value is almost always the same as the
physical network of the hostgroup, but not always. As new features will
rely on multiple hostgroups belonging to the same physnet we need to fix
this.

While doing so we also make sure that if we have multiple hostgroups for
the same physnet, we merge the vlan ranges we find in the different
hostgroups (that's what the new sorting and grouping is for).

In the config parser, we also now make sure the pyhsical_network config
attribute is always set. For Converged Cloud, this is taken care of by
the helm charts, but one can never be too sure (and this is not marked
as a required attribute).
@sebageek sebageek force-pushed the fix-allocation-sync-for-multiple-hostgroups-with-same-physnet branch from 412d388 to 4048154 Compare July 11, 2024 14:28
Copy link

@occamshatchet occamshatchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sebageek sebageek merged commit 8ee4453 into stable/yoga-m3 Jul 12, 2024
1 check passed
@sebageek sebageek deleted the fix-allocation-sync-for-multiple-hostgroups-with-same-physnet branch July 12, 2024 15:27
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.

3 participants