Giter Club home page Giter Club logo

Comments (10)

networkop avatar networkop commented on August 26, 2024

I think that kernel version got updated but they didn't bump the version number, so I didn't detect it. I've build the new kernel image from the kernel extracted from 5.0 image: networkop/cl-kernel:5.0.1
Can you try specifying kernel: docker.io/networkop/cl-kernel:5.0.1 and see if you still see any errors?

from cx.

networkop avatar networkop commented on August 26, 2024

btw, I've discovered another bug that manifests itself when you don't set the system-mac explicitly. If you're seeing an error when ifreload tries to set a system mac, try using networkop/cx:5.0.4

from cx.

jhlasnik avatar jhlasnik commented on August 26, 2024

from cx.

jhlasnik avatar jhlasnik commented on August 26, 2024

So I did test setting the kernel on 5.0.1 and 5.0.4 and I'm still seeing those same errors on bootup with the system mac set.

root@clab-cx-sw1:mgmt:~# more /var/log/syslog | grep -E NetlinkError
2022-06-22T13:20:55.331706+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:55.331849+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: br_default: cannot set dev br_default address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
2022-06-22T13:20:55.497630+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:55.497739+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: vlan10: cannot set dev vlan10 address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
2022-06-22T13:20:55.636432+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:55.636611+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: vlan30: cannot set dev vlan30 address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
2022-06-22T13:20:55.882610+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:55.882778+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: br_l3vni: cannot set dev br_l3vni address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
2022-06-22T13:20:56.126300+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:56.126508+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: vlan20: cannot set dev vlan20 address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
2022-06-22T13:20:56.278890+00:00 1d58c2642a4b6fbd networking[4057]:     raise NetlinkError(e, "cannot set dev %s address %s" % (ifname, hw_address), ifname=ifname)
2022-06-22T13:20:56.279057+00:00 1d58c2642a4b6fbd networking[4057]: lib.nlcache.NetlinkError: netlink: vlan40: cannot set dev vlan40 address 89:b8:73:18:ad:e3: operation failed with 'Cannot assign requested address' (99)
# topology documentation:
name: cx
topology:
  nodes:
    sw1:
      kind: cvx
      image: networkop/cx:5.0.4
      kernel: docker.io/networkop/cl-kernel:5.0.1
      binds:
        - hosts/clab-cx-sw1/startup.yaml:/etc/nvue.d/startup.yaml
    sw2:
      kind: cvx
      image: networkop/cx:5.0.4
      kernel: docker.io/networkop/cl-kernel:5.0.1
      binds:
        - hosts/clab-cx-sw2/startup.yaml:/etc/nvue.d/startup.yaml

from cx.

networkop avatar networkop commented on August 26, 2024

can you share the SVG file you get using systemd-analyze plot > boot.svg?

from cx.

jhlasnik avatar jhlasnik commented on August 26, 2024

File attached

boot

from cx.

networkop avatar networkop commented on August 26, 2024

it seems to work fine in my case. I think it could be down to the background CPU noise and race conditions.
It will work if you manually do a systemctl restart sys-mac-shot. As you can see from this graph, I've tried to put it as close to the end as possible.
The right way for me would be to try and locate how/why the wrong(multicast) MAC is being set in /run/system_mac and try to correct/patch that. However so far I couldn't find it.
So what I'll do instead is release another version where I'll delay the sys-mac-shot execution by, say 10 seconds. This happens after network-online so it should delay the time to login.

from cx.

networkop avatar networkop commented on August 26, 2024

networkop/cx:5.0.5 is out with the patch.

from cx.

networkop avatar networkop commented on August 26, 2024

Looks like I've found where the MAC bug is coming from.

from uuid import getnode as get_mac

and
https://docs.python.org/3/library/uuid.html#uuid.getnode

If all attempts to obtain the hardware address fail, we choose a random 48-bit number with the multicast bit (least significant bit of the first octet) set to 1 as recommended in [RFC 4122](https://tools.ietf.org/html/rfc4122.html).

thanks to https://stackoverflow.com/a/159195

from cx.

networkop avatar networkop commented on August 26, 2024

this should be fixed in networkop/cx:5.0.6

from cx.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.