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

Add testing for OVN uplink attached to VLAN #302

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

boltmark
Copy link
Contributor

@boltmark boltmark commented Oct 3, 2024

This PR adds testing for when an OVN uplink network is attached to a VLAN.

tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Show resolved Hide resolved
tests/network-ovn Show resolved Hide resolved
@boltmark boltmark force-pushed the ovn-vlan-uplink-test branch 3 times, most recently from d920bfa to c43ad03 Compare October 9, 2024 05:30
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Show resolved Hide resolved
@boltmark boltmark force-pushed the ovn-vlan-uplink-test branch 2 times, most recently from 51d2c42 to 6a1b89f Compare October 9, 2024 20:37
tomponline added a commit to canonical/lxd that referenced this pull request Oct 15, 2024
This PR adds support for OVN uplink networks attached to a VLAN. The
implementation details closely track
#12234 (comment).

Testing here: canonical/lxd-ci#302.

Closes #12234.
@boltmark boltmark force-pushed the ovn-vlan-uplink-test branch from 6a1b89f to e93fec1 Compare October 15, 2024 14:49
@boltmark boltmark marked this pull request as ready for review October 15, 2024 15:39
@boltmark boltmark requested a review from tomponline as a code owner October 15, 2024 15:39
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
@@ -2154,6 +2205,7 @@ else
echo "Skipping ovn_l3only_tests, not supported"
fi
ovn_leases_tests
ovn_vlan_uplink_tests
Copy link
Member

Choose a reason for hiding this comment

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

@boltmark did this test work before canonical/lxd#14196 was merged?

If not then you're going to need to add an API extension please so that the test can detect support for using a bridge network as an uplink with VLAN.

Suggest network_ovn_uplink_vlan

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @tomponline, the test passes on older lxd versions if we keep

bridge vlan add dev lxdbr0 vid 10 tagged self

When it is removed, the test only passes on latest/edge. I suppose we should add the API extension then?

Copy link
Member

Choose a reason for hiding this comment

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

Yes exactly, thats why we need an API extension check, otherwise you're not testing the functionality in LXD instead the test is just setting up the environment for LXD which defeats the purpose of the test :)

Copy link
Contributor Author

@boltmark boltmark Oct 18, 2024

Choose a reason for hiding this comment

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

Got it, thanks! PR for this here: canonical/lxd#14296. Also updated this PR to skip the added test if the extension is not found.

tests/network-ovn Outdated Show resolved Hide resolved
@boltmark boltmark force-pushed the ovn-vlan-uplink-test branch from e93fec1 to da7c7e2 Compare October 17, 2024 00:59
@boltmark boltmark force-pushed the ovn-vlan-uplink-test branch from da7c7e2 to 54f0768 Compare October 18, 2024 05:08
tomponline added a commit to canonical/lxd that referenced this pull request Oct 18, 2024
This PR adds API extension `network_ovn_uplink_vlan`, which adds support
for using a bridge network with a specified VLAN ID as the uplink for an
OVN network.

Related: canonical/lxd-ci#302,
#14196.
@tomponline tomponline merged commit 37ca40e into canonical:main Oct 23, 2024
131 of 141 checks passed
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