Bug 40650 - File descriptor leaked on vgs invocation. Parent PID /usr/sbin/grub-probe
File descriptor leaked on vgs invocation. Parent PID /usr/sbin/grub-probe
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: Grub
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-12 16:30 CET by Erik Damrose
Modified: 2021-03-02 12:00 CET (History)
7 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.029
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018090721000774
Bug group (optional):
Max CVSS v3 score:


Attachments
setup.log (253.19 KB, text/x-log)
2016-02-12 16:30 CET, Erik Damrose
Details
updater.log excerpt with the error from customer's system (15.63 KB, text/plain)
2018-10-17 15:32 CEST, Valentin Heidelberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2016-02-12 16:30:29 CET
Created attachment 7477 [details]
setup.log

We recently updated grub in UCS 4.1 [1]. UCS appliances now issue warnings when the grub config is updated at the end by the appliance hook appliance-hooks.d/screenresolution (which calls ucr set grub/gfxmode=1024x768@16 xorg/resolution=1024x768):

run-parts: executing /usr/lib/univention-system-setup/appliance-hooks.d/screenresolution
Generating grub configuration file ...
File descriptor 3 (/var/log/univention/management-console-module-setup.log) leaked on vgs invocation. Parent PID 943: /usr/sbin/grub-probe
File descriptor 5 (socket:[46015]) leaked on vgs invocation. Parent PID 943: /usr/sbin/grub-probe
File descriptor 8 (/var/log/univention/setup.log) leaked on vgs invocation. Parent PID 943: /usr/sbin/grub-probe

These 3 FD leaks are repeated multiple times, cluttering the logfiles.
grub version 2.02~beta2-22+deb8u1.107.201602051734

[1] http://errata.software-univention.de/ucs/4.1/101.html
Comment 1 Michael Grandjean univentionstaff 2017-04-23 14:24:02 CEST
Experienced this today for UCS 4.2-0 while (un)setting the bootsplash:

> root@ucs-7125:~# ucr set grub/bootsplash=splash
> Setting grub/bootsplash
> File: /etc/default/grub
> Generating grub configuration file ...
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2600: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2600: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2611: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2611: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2622: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2622: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2633: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2633: /usr/sbin/grub-probe
> Found background: /boot/grub/uniboot.png
> Found background image: /boot/grub/uniboot.png
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2822: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2822: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2859: /usr/sbin/grub-probe
> File descriptor 6 (/dev/urandom) leaked on vgs invocation. Parent PID 2859: /usr/sbin/grub-probe
> Found linux image: /boot/vmlinuz-4.9.0-ucs103-amd64
> Found initrd image: /boot/initrd.img-4.9.0-ucs103-amd64
> Found memtest86+ image: /memtest86+.bin
> File descriptor 6 (/dev/urandom) leaked on lvs invocation. Parent PID 3209: /bin/sh
> done
> Generating legacy menu.lst from current kernels

grub2-common → 2.02~beta2-22+deb8u1.107.201602
Comment 2 Philipp Hahn univentionstaff 2017-04-25 08:37:22 CEST
This is only cosmetic.
Comment 3 Nico Stöckigt univentionstaff 2018-01-31 17:08:37 CET
this is quite old and can be found in several bug reports:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592834
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/591823
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1313784
https://bugzilla.redhat.com/show_bug.cgi?id=618995

there are also patches so maybe we just can include them?
Comment 4 Valentin Heidelberger univentionstaff 2018-10-17 15:32:58 CEST
Created attachment 9704 [details]
updater.log excerpt with the error from customer's system
Comment 5 Ingo Steuwer univentionstaff 2020-07-03 20:53:37 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 6 Florian Best univentionstaff 2021-03-02 12:00:19 CET
Still with UCS 5.0:

[master090] 2021-03-02T00:14:18.904133	= Running screenresolution
[master090] 2021-03-02T00:14:21.288221	Generating grub configuration file ...
[master090] 2021-03-02T00:14:21.624498	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10221: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:21.726111	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10221: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:21.786616	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10232: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:21.917607	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10232: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:21.979740	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10243: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:22.075500	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10243: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:22.136594	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10254: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:22.213677	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10254: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:22.706792	Found background: /boot/grub/uniboot.png
[master090] 2021-03-02T00:14:23.723204	Found background image: /boot/grub/uniboot.png
[master090] 2021-03-02T00:14:23.740611	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10444: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:23.819588	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10444: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:23.879742	Found linux image: /boot/vmlinuz-4.19.0-14-amd64
[master090] 2021-03-02T00:14:23.905260	Found initrd image: /boot/initrd.img-4.19.0-14-amd64
[master090] 2021-03-02T00:14:24.621135	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10682: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:24.706651	File descriptor 9 (/var/log/python-notifier.log) leaked on vgs invocation. Parent PID 10682: /usr/sbin/grub-probe
[master090] 2021-03-02T00:14:25.158909	Found memtest86+ image: /memtest86+.bin
[master090] 2021-03-02T00:14:25.351549	File descriptor 9 (/var/log/python-notifier.log) leaked on lvs invocation. Parent PID 10825: /bin/sh
[master090] 2021-03-02T00:14:25.803462	done
[master090] 2021-03-02T00:14:25.804349	Setting grub/gfxmode
[master090] 2021-03-02T00:14:25.804349	Setting xorg/resolution
[master090] 2021-03-02T00:14:25.804349	File: /etc/default/grub