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

GetNetworkState can't detect bridge interfaces configured with OVS #14606

Open
r00ta opened this issue Dec 9, 2024 · 0 comments
Open

GetNetworkState can't detect bridge interfaces configured with OVS #14606

r00ta opened this issue Dec 9, 2024 · 0 comments
Labels
Improvement Improve to current situation
Milestone

Comments

@r00ta
Copy link

r00ta commented Dec 9, 2024

Required information

We are NOT using LXD but rather LXD as a library, see https://github.com/canonical/maas/blob/7265eeecb055e573d8c40e63b3964c46e657bae6/src/host-info/pkg/info/info.go#L192

Issue description

GetNetworkState can't detect a bridge interface configured with OVS.

It returns

        "br-provider": {
            "addresses": [
                {
                    "family": "inet",
                    "address": "REDACTED",
                    "netmask": "20",
                    "scope": "global"
                },
                {
                    "family": "inet6",
                    "address": "REDACTED",
                    "netmask": "64",
                    "scope": "link"
                }
            ],
            "counters": {
                "bytes_received": 26676298785368,
                "bytes_sent": 3704328664385,
                "packets_received": 3148152714,
                "packets_sent": 111961554
            },
            "hwaddr": "REDACTED",
            "mtu": 1500,
            "state": "up",
            "type": "broadcast",
            "bond": null,
            "bridge": null,                               ----------------------------> This should not be `null`
            "vlan": null,
            "ovn": null
        }

Steps to reproduce

  1. Step one: Configure a machine with a bridge interface with OVS
  2. Step two: call GetNetworkState like in https://github.com/canonical/lxd/blob/main/lxd/resources/network.go#L603-L650
@tomponline tomponline added the Improvement Improve to current situation label Dec 9, 2024
@tomponline tomponline added this to the lxd-6.3 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improve to current situation
Projects
None yet
Development

No branches or pull requests

2 participants