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

fix(xo-server/normalizeVmNetworks): always assume multiple space-delimited IPs #6990

Merged
merged 3 commits into from
Aug 30, 2023

Conversation

pdonias
Copy link
Member

@pdonias pdonias commented Aug 18, 2023

See https://xcp-ng.org/forum/topic/7625

Description

The previous code assumed that only legacy x/ip fields could contain multiple space-delimited IPs but it turns out that it can also happen in x/ipvx/x fields (see link).
When it happened, the IPs weren't flattened and it could break the Netbox synchronization, which assumes that the IPs are properly flattened.

Checklist

  • Commit
    • Title follows commit conventions
    • Reference the relevant issue (Fixes #007, See xoa-support#42, See https://...)
    • If bug fix, add Introduced by
  • Changelog
    • If visible by XOA users, add changelog entry
    • Update "Packages to release" in CHANGELOG.unreleased.md
  • PR
    • If UI changes, add screenshots
    • If not finished or not tested, open as Draft

@pdonias pdonias requested a review from MathieuRA August 18, 2023 08:08
CHANGELOG.unreleased.md Outdated Show resolved Hide resolved
@MathieuRA MathieuRA requested a review from julien-f August 24, 2023 08:40
@julien-f julien-f force-pushed the pierre-fix-addresses branch from 7f8019d to 21d18c0 Compare August 30, 2023 07:55
@julien-f julien-f merged commit 5b1cc74 into master Aug 30, 2023
@julien-f julien-f deleted the pierre-fix-addresses branch August 30, 2023 07:56
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