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

tests/network-ovn: Add MicroOVN as a backend for network-ovn test suite #330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gabrielmougard
Copy link
Contributor

related to canonical/lxd#14327

tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch 4 times, most recently from 1e3b5e4 to 41725e2 Compare October 29, 2024 13:41
tests/network-ovn Outdated Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch 3 times, most recently from 4116d17 to 8fdf536 Compare October 30, 2024 17:49
tests/network-ovn Fixed Show fixed Hide fixed
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch from 8fdf536 to 3171f44 Compare October 30, 2024 17:53
tests/network-ovn Show resolved Hide resolved
tests/network-ovn Outdated Show resolved Hide resolved
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch from 3171f44 to 9d84838 Compare October 30, 2024 17:55
tests/network-ovn Outdated Show resolved Hide resolved
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch 2 times, most recently from 0c7dfac to dacb74f Compare October 30, 2024 18:36
@gabrielmougard gabrielmougard force-pushed the ovn/acl-log-from-microovn branch from dacb74f to 81f7e65 Compare October 30, 2024 18:37
@gabrielmougard
Copy link
Contributor Author

@simondeziel @boltmark some tests related to network forward are failing. Is it related to this recent change: #333 ?

@gabrielmougard gabrielmougard changed the title tests/network-ovn: Check we can query ACL logs for an OVN network with its OVN controller in a MicroOVN snap tests/network-ovn: Add MicroOVN as a backend for network-ovn test suite Oct 30, 2024
@simondeziel
Copy link
Member

@gabrielmougard
Copy link
Contributor Author

@simondeziel this error:

++ lxc network acl show-log ovn1 --project=ovn1
Error: Only OVN log entries may be retrieved at this time

should be fixed once canonical/lxd#14327 is merged

Comment on lines +28 to +29
snap alias microovn.ovn-nbctl ovn-nbctl
snap alias microovn.ovs-vsctl ovs-vsctl
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to be required.

Comment on lines +26 to +27
microovnAddr=$(microovn cluster list --format json | jq -r '.[0].address | split(":") | first')
lxc config set network.ovn.northbound_connection "ssl:${microovnAddr}:6641"
Copy link
Member

Choose a reason for hiding this comment

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

I'll simplify this to hardcoding the loopback IP.

Suggested change
microovnAddr=$(microovn cluster list --format json | jq -r '.[0].address | split(":") | first')
lxc config set network.ovn.northbound_connection "ssl:${microovnAddr}:6641"
lxc config set network.ovn.northbound_connection "ssl:127.0.0.1:6641"

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