* [Buildroot] syslog-ng test does not work due to lack of random numbers
@ 2019-06-21 19:41 Thomas Petazzoni
2019-07-29 2:21 ` Ricardo Martincoski
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2019-06-21 19:41 UTC (permalink / raw)
To: buildroot
Hello,
The syslog-ng runtime test is no longer working:
https://gitlab.com/buildroot.org/buildroot/-/jobs/237108732
I had a look, and the problem is that syslog-ng is stuck when starting,
waiting for random numbers. strace shows:
[pid 65] open("/dev/random", O_RDONLY|O_LARGEFILE) = 6
[pid 65] _newselect(7, [6], NULL, NULL, NULL
And then nothing.
Adding haveged to the configuration would have been an option, but
haveged is started as S21haveged, while syslog-ng is started as
S01syslog-ng, so obviously, this won't help.
What should we do ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] syslog-ng test does not work due to lack of random numbers
2019-06-21 19:41 [Buildroot] syslog-ng test does not work due to lack of random numbers Thomas Petazzoni
@ 2019-07-29 2:21 ` Ricardo Martincoski
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Martincoski @ 2019-07-29 2:21 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, Jun 21, 2019 at 04:41 PM, Thomas Petazzoni wrote:
> The syslog-ng runtime test is no longer working:
>
> https://gitlab.com/buildroot.org/buildroot/-/jobs/237108732
>
> I had a look, and the problem is that syslog-ng is stuck when starting,
> waiting for random numbers. strace shows:
>
> [pid 65] open("/dev/random", O_RDONLY|O_LARGEFILE) = 6
> [pid 65] _newselect(7, [6], NULL, NULL, NULL
>
> And then nothing.
>
> Adding haveged to the configuration would have been an option, but
> haveged is started as S21haveged, while syslog-ng is started as
> S01syslog-ng, so obviously, this won't help.
>
> What should we do ?
We can use VirtIORNG like Peter did for the docker compose test.
We need kernel config CONFIG_HW_RANDOM_VIRTIO=y.
It is not enabled in the 2 binary kernel images we have for test infra.
We also need qemu argument -device virtio-rng-pci.
I will cook a patch.
Regards,
Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-29 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-21 19:41 [Buildroot] syslog-ng test does not work due to lack of random numbers Thomas Petazzoni
2019-07-29 2:21 ` Ricardo Martincoski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox