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

Network: Fix OVN ChassisGroupChassisDelete quoting values #14964

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

tomponline
Copy link
Member

@tomponline tomponline commented Feb 12, 2025

Follow on from #14904

I suspected here #14904 (comment) the call to get ha_chassis list requires both --format=csv to get them onto one line per record, and --data=bare to avoid the output being (double in this case) quoted.

This was preventing the previous fix from actually working.

Also moved the zero-length initialised slices back to uninitialised ones, as nil slices can be appended to, and is more in keeping with how we use slices elsewhere.

Also added a test for chassis removal on LXD shutdown.

@tomponline tomponline self-assigned this Feb 12, 2025
@tomponline tomponline requested a review from escabo February 12, 2025 09:04
@tomponline tomponline changed the title Network: Fix OVN ChassisGroupChassisDelete escape values Network: Fix OVN ChassisGroupChassisDelete quoting values Feb 12, 2025
@tomponline
Copy link
Member Author

Looking forward to switching to libovsdb and avoiding the need for these approaches cc @markylaing !

@tomponline tomponline marked this pull request as ready for review February 12, 2025 11:35
@tomponline tomponline merged commit 4ae84e8 into canonical:main Feb 12, 2025
26 checks passed
@tomponline tomponline deleted the tp-ovn-chassis branch February 12, 2025 12:13
tomponline added a commit that referenced this pull request Feb 12, 2025
tomponline added a commit to tomponline/lxd-pkg-snap that referenced this pull request Feb 12, 2025
tomponline added a commit to canonical/lxd-pkg-snap that referenced this pull request Feb 12, 2025
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.

2 participants