Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-09-07 Thread Mirza Krak
On Fri, 1 Sept 2023 at 08:21, Mirza Krak  wrote:
>
> On Thu, 31 Aug 2023 at 12:12, Lennart Poettering  
> wrote:
> >
> > On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote:
> >
> > > Hi,
> > >
> > > Environment:
> > > * systemd: 250.5
> >
> > This release is from 2021, i.e. relatively old. The issue you are
> > descriping is almost certainly aleady addressed in newer
> > versions. Consider using a new version. Or contact your OS vendor,
> > asking them to maybe backport the fix in question.
>
> Unfortunately I am the OS vendor (Yocto Project based distribution),
> so it's up to me to solve it :). Would like to avoid updating to a
> newer version at the moment, so the backport does sound like a
> feasible path forward.
>
> Would appreciate any pointers/references to where this issue might
> reside, to help me find the necessary backports.

Should anyone stumble upon this, I backported parts of
https://github.com/systemd/systemd/pull/24174 to resolve this.

/ Mirza


Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-09-01 Thread Mirza Krak
On Thu, 31 Aug 2023 at 12:12, Lennart Poettering  wrote:
>
> On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote:
>
> > Hi,
> >
> > Environment:
> > * systemd: 250.5
>
> This release is from 2021, i.e. relatively old. The issue you are
> descriping is almost certainly aleady addressed in newer
> versions. Consider using a new version. Or contact your OS vendor,
> asking them to maybe backport the fix in question.

Unfortunately I am the OS vendor (Yocto Project based distribution),
so it's up to me to solve it :). Would like to avoid updating to a
newer version at the moment, so the backport does sound like a
feasible path forward.

Would appreciate any pointers/references to where this issue might
reside, to help me find the necessary backports.

/ Mirza


Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-08-31 Thread Lennart Poettering
On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote:

> Hi,
>
> Environment:
> * systemd: 250.5

This release is from 2021, i.e. relatively old. The issue you are
descriping is almost certainly aleady addressed in newer
versions. Consider using a new version. Or contact your OS vendor,
asking them to maybe backport the fix in question.

Lennart

--
Lennart Poettering, Berlin


[systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-08-30 Thread Mirza Krak
Hi,

Environment:
* systemd: 250.5
* Linux kernel 5.15.113

I am trying to do something really simple (I thought), and I have the
following .network file:

[Match]
Name=lo

[Address]
Address=169.254.66.6/32

But it fails with the following error:

Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Failed to get
driver, continuing without: Operation not supported
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Saved
permanent hardware address: 00:00:00:00:00:00
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Link state is
up-to-date
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: found
matching network '/lib/systemd/network/99-loopback-alias.network'.
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Ignoring
link-local autoconfiguration for loopback link
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: State
changed: initialized -> configuring
Aug 30 13:17:05 localhost systemd-networkd[299]: Setting
'/proc/sys/net/ipv4/conf/lo/promote_secondaries' to '1'
Aug 30 13:17:05 localhost systemd-networkd[299]: No change in
value '1', suppressing write
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Requested to
set interface group
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Requested to
set IPv6LL address generation mode
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Requested to
set master interface
Aug 30 13:17:05 localhost systemd-networkd[299]: lo:
link_check_ready(): link layer is configuring.
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Requested to
activate link
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Configuring
IPv4ACD for address 169.254.66.6
Aug 30 13:17:05 localhost systemd-networkd[299]: Assertion
'!ether_addr_is_null(addr)' failed at
src/libsystemd-network/sd-ipv4acd.c:467, function
sd_ipv4acd_set_mac(). Ignoring.
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: Failed
Aug 30 13:17:05 localhost systemd-networkd[299]: lo: State
changed: configuring -> failed

Not sure what I am doing wrong here. The same config used to work with
systemd 244.5, so either a regression, or I was doing something wrong
to begin with.

/ Mirza