Description of problem: python-lvm calls generate message lvmetad[861]: WARNING: Ignoring unsupported value for cmd. Version-Release number of selected component (if applicable): kernel-3.10.0-1062.7.1.el7.x86_64 lvm2-2.02.185-2.el7_7.2.x86_64 lvm2-libs-2.02.185-2.el7_7.2.x86_64 lvm2-python-libs-2.02.185-2.el7_7.2.x86_64 How reproducible: every time Steps to Reproduce: #!/usr/bin/python import lvm print(lvm.listVgNames()) Actual results: Dec 12 09:07:27 localhost.localdomain lvmetad[861]: WARNING: Ignoring unsupported value for cmd. Dec 12 09:07:27 localhost.localdomain lvmetad[861]: WARNING: Ignoring unsupported value for cmd. Expected results: No warning, or suppressed warning
Deems issue is access as root is needed [loberman@rhel7lobe Downloads]$ ./lv_test.py /run/lvm/lvmetad.socket: access failed: Permission denied WARNING: Failed to connect to lvmetad. Falling back to device scanning. () [loberman@rhel7lobe Downloads]$ sudo ./lv_test.py ('rhelnew',)
Ok, John corrected me, its the message that is of concern. He confirmed it also worked for him as root.
cmd is not set by python library. This is harmless, as lvmetad is using this only in debug strings. Also there is pid field to identify process more precisely, but for humans the actual command would be more helpful. Definitely not worth a blocker.
This is harmless and will not be fixed in RHEL7. Python bindings were removed in RHEL8 so there is nothing to do.