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

mgmt network not working with macvlan #2069

Open
benbgg opened this issue Jun 8, 2024 · 5 comments
Open

mgmt network not working with macvlan #2069

benbgg opened this issue Jun 8, 2024 · 5 comments

Comments

@benbgg
Copy link

benbgg commented Jun 8, 2024

Hi
I have this macvlan network defined:
[
{
"Name": "newnet",
"Id": "bd967f83ad36ebfc5a6d28bc507975c43e921cff25c004caf31f445f355e56d2",
"Created": "2024-06-08T10:44:32.170746307+01:00",
"Scope": "local",
"Driver": "macvlan",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "192.168.37.0/24",
"Gateway": "192.168.37.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"parent": "enp6s18"
},
"Labels": {}
}
]
And this is my lab definition:
name: crpdlab01
mgmt:
network: newnet
topology:
nodes:
crpd01:
kind: juniper_crpd
image: crpd-custom:latest
crpd02:
kind: juniper_crpd
image: crpd-custom:latest
crpd03:
kind: juniper_crpd
image: crpd-custom:latest
links:
- endpoints: ["crpd01:eth2", "crpd02:eth1"]
- endpoints: ["crpd02:eth2", "crpd03:eth1"]
- endpoints: ["crpd03:eth2", "crpd01:eth1"]
but "sudo -E deploy" gives:
INFO[0000] Containerlab v0.54.2 started
INFO[0000] Parsing & checking topology file: crpdlan01.clab.yml
WARN[0000] failed gleaning v4 and/or v6 addresses from bridge via netlink, falling back to docker network inspect data
Error: failed to lookup link "br-bd967f83ad36": Link not found
Any suggestions?

Thanks in advance

@hellt
Copy link
Member

hellt commented Jun 8, 2024

Hi

My first suggestion would be to format your code with triple backticks to make sure you formatting is properly rendered.

But in general, macvlan mgmt networks are not currently supported.

@benbgg benbgg changed the title mgmt network not working with mtacvlan mgmt network not working with macvlan Jun 8, 2024
@benbgg
Copy link
Author

benbgg commented Jun 8, 2024

Oh dear - guess I'll have to work around it.
#1651 gave me the impression it was - kind of.
Apologies for the formatting:
Thanks for the prompt answer

mgmt:
  network: newnet
topology:
  nodes:
    crpd01:
      kind: juniper_crpd
      image: crpd-custom:latest
    crpd02:
      kind: juniper_crpd
      image: crpd-custom:latest
    crpd03:
      kind: juniper_crpd
      image: crpd-custom:latest
  links:
    - endpoints: ["crpd01:eth2", "crpd02:eth1"]
    - endpoints: ["crpd02:eth2", "crpd03:eth1"]
    - endpoints: ["crpd03:eth2", "crpd01:eth1"]

@hellt
Copy link
Member

hellt commented Jun 8, 2024

If I remember correctly the macvlan network could still work, we will just emit a bunch of errors. Having said that, that issue is still worth fixing.

Maybe @pdumais can share how they worked around this

@pdumais
Copy link
Contributor

pdumais commented Jun 9, 2024

Yes, I had the same issue I don't remember the full details. But basically, these errors don't prevent you from running the lab right?
It would be nice to have official support for macvlans

@benbgg
Copy link
Author

benbgg commented Jun 9, 2024

No, I just work around it - just would be handy to go straight in from other machines.

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

No branches or pull requests

3 participants