Bug#867161: lvm2: liblvm2app : warning log for unset cmd
Antoine Monnet
tonio+dbr at xmon.net
Tue Jul 4 11:02:39 UTC 2017
Package: lvm2
Version: 2.02.168-2
Severity: normal
lvmetad spew out warning logs when called by the the liblvm2app library :
Jul 4 12:42:05 myhost lvmetad[339]: WARNING: Ignoring unsupported value for
cmd.
Jul 4 12:42:05 myhost lvmetad[339]: WARNING: Ignoring unsupported value for
cmd.
Jul 4 12:44:05 myhost lvmetad[339]: WARNING: Ignoring unsupported value for
cmd.
Jul 4 12:44:05 myhost lvmetad[339]: WARNING: Ignoring unsupported value for
cmd.
I found this out with the collectd / lvm plugin. Can ben reproduce easily with
python-lvm2:
sudo python -c "import lvm; lvm.listVgNames()"
Look's like liblvm2app sending over lvmetad socket empty cmd parameter is the
issue. Compare this ok strace from vgs command :
read(5, "request=\"vg_list\"\ntoken =\"filter", 32) = 32
read(5, ":3239235440\"\nupdate_timeout =10\npid =32720\ncmd =\"vgs\"\n\n##\n",
1024) = 58
write(5, "response=\"OK\"\nvolume_groups {\n\teGyPif-m1dX-2jId-5eEM-DCrQ-
gDLP-Z4zmp6 {\n\t\tname=\"world\"\n\t}\n}\n\n\n", 94) = 94
write(5, "\n##\n", 4) = 4
To this faulty one (our python 1 liner command) :
read(5, "request=\"vg_list\"\ntoken =\"filter", 32) = 32
read(5, ":3239235440\"\nupdate_timeout =10\npid =374\ncmd =\"\"\n\n##\n", 1024)
= 53
write(2, "WARNING: Ignoring unsupported value for cmd.", 44) = 44
write(2, "\n", 1) = 1
write(5, "response=\"OK\"\nvolume_groups {\n\teGyPif-m1dX-2jId-5eEM-DCrQ-
gDLP-Z4zmp6 {\n\t\tname=\"world\"\n\t}\n}\n\n\n", 94) = 94
write(5, "\n##\n", 4) = 4
-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages lvm2 depends on:
ii dmeventd 2:1.02.137-2
ii dmsetup 2:1.02.137-2
ii init-system-helpers 1.48
ii libblkid1 2.29.2-1
ii libc6 2.24-11+deb9u1
ii libdevmapper-event1.02.1 2:1.02.137-2
ii libdevmapper1.02.1 2:1.02.137-2
ii liblvm2app2.2 2.02.168-2
ii libreadline5 5.2+dfsg-3+b1
ii libudev1 232-25
ii lsb-base 9.20161125
lvm2 recommends no packages.
Versions of packages lvm2 suggests:
pn thin-provisioning-tools <none>
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list