Skip to contentSkip to conversation

Ping issues on systemd images - Intermittent Notes

DISCUSSION Richard Purdie 2 participants 2 messages Apr 6, 2022

lore
Share & tools
lore
#0 lore raw

Do we have any experts on systemd and connman? I did find a little more data on some of our mystery autobuilder ping failures:

Ping issues on systemd images
=============================

This failed with my ping test debugging present so we got more info. The host was unreachable.

https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/2888/steps/12/logs/stdio

I reran the testimage and it passed. I diff'd the qemu console log output and there wasn't any difference that was meaningful. The testimage log output wasn't meaningful.

I did find this interesting though:

pokybuild@ubuntu1804-ty-3:~/yocto-worker/qemumips-alt/build/build/tmp/log/runtime-hostdump/202204051947_qemu$ cat target_00_ip 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:12:34:06 brd ff:ff:ff:ff:ff:ff
    inet 169.254.89.149/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe12:3406/64 scope link 
       valid_lft forever preferred_lft forever

The :06 at the end of the mac address shows it was the right qemu and I couldn't find any other qemu using 192.168.7.6 on that machine at the time. Note there is no ip address configured for that interface.

I suspect something in systemd+connman is causing this intermittently. We need better network interface debug enabled in connman/systemd so we can attempt to debug this further. Any pointers on how to do that very welcome!

Cheers,

Richard

#1 lore raw

sysvinit starts connmand with '-I eth0' (ignore eth0), but systemd does not. I'll send a patch.

Alex

Quoted 57 lines · Richard Purdie

Do we have any experts on systemd and connman? I did find a little more data on some of our mystery autobuilder ping failures:

Ping issues on systemd images
=============================

This failed with my ping test debugging present so we got more info. The host was unreachable.

https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/2888/steps/12/logs/stdio

I reran the testimage and it passed. I diff'd the qemu console log output and there wasn't any difference that was meaningful. The testimage log output wasn't meaningful.

I did find this interesting though:

pokybuild@ubuntu1804-ty-3:~/yocto-worker/qemumips-alt/build/build/tmp/log/runtime-hostdump/202204051947_qemu$ cat target_00_ip
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:12:34:06 brd ff:ff:ff:ff:ff:ff
    inet 169.254.89.149/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe12:3406/64 scope link
       valid_lft forever preferred_lft forever

The :06 at the end of the mac address shows it was the right qemu and I couldn't find any other qemu using 192.168.7.6 on that machine at the time. Note there is no ip address configured for that interface.

I suspect something in systemd+connman is causing this intermittently. We need better network interface debug enabled in connman/systemd so we can attempt to debug this further. Any pointers on how to do that very welcome!

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#164088): https://lists.openembedded.org/g/openembedded-core/message/164088
Mute This Topic: https://lists.openembedded.org/mt/90292799/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-