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: NEW
Product: UCS
Classification: Unclassified
Component: Grub
UCS 4.2
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: 2018-11-29 12:36 CET (History)
6 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:
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