1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons/lvmdbusd
Tony Asleson 0296e56073 lvmdbusd: Don't report recoverable error
Lvm occasionally fails to return all the request JSON keys in the output of
"fullreport".  This happens very rarely.  When it does the daemon was reporting
the resulting informational exception:

MThreadRunner: exception
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/lvmdbusd/utils.py", line 667, in _run
    self.rc = self.f(*self.args)
  File "/usr/lib/python3.9/site-packages/lvmdbusd/fetch.py", line 40, in _main_thread_load
    (lv_changes, remove) = load_lvs(
  File "/usr/lib/python3.9/site-packages/lvmdbusd/lv.py", line 143, in load_lvs
    return common(
  File "/usr/lib/python3.9/site-packages/lvmdbusd/loader.py", line 37, in common
    objects = retrieve(search_keys, cache_refresh=False)
  File "/usr/lib/python3.9/site-packages/lvmdbusd/lv.py", line 95, in lvs_state_retrieve
    l['vdo_operating_mode'],
KeyError: 'vdo_operating_mode'

The daemon retries the operation, which usually works and the daemon continues.
However, simply reporting this informational stack trace is causing CI and other
automated tests to fail as they expect no tracebacks in the log output.

Remove the reporting of this code path unless it persists and causes the daemon
to give up and exit.

Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2120267
2022-09-16 10:49:37 -05:00
..
__init__.py lbmdbusd: Support in-tree testing. 2016-02-18 13:26:08 +00:00
.gitignore lvmdbusd: All tools use detected python3 2017-12-12 13:17:07 +01:00
automatedproperties.py lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
background.py lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
cfg.py lvmdbusd: Add debug circular buffer 2022-09-16 10:49:37 -05:00
cmdhandler.py lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
fetch.py lvmdbusd: Don't report recoverable error 2022-09-16 10:49:37 -05:00
job.py lvmdbusd: Job prop. Get/GetAll exec. immediately 2022-06-30 10:55:16 -05:00
loader.py lvmdbusd: Defer dbus object removal 2021-06-16 12:19:02 -05:00
lv.py lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
lvm_shell_proxy.py.in lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
lvmdb.py.in lvmdbusd: WS, imports, grammar 2022-09-16 10:49:37 -05:00
lvmdbusd.in lvmdbusd: All tools use detected python3 2017-12-12 13:17:07 +01:00
main.py lvmdbusd: Add debug circular buffer 2022-09-16 10:49:37 -05:00
Makefile.in makefiles: fix location of basedir 2021-03-08 15:22:27 +01:00
manager.py lvmdbusd: Add debug circular buffer 2022-09-16 10:49:37 -05:00
objectmanager.py lvmdbusd: Remove unused locking functionality 2022-09-16 10:49:37 -05:00
path.py.in lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
pv.py lvmdbusd: Remove use of tmp variables 2019-10-30 10:38:40 -05:00
request.py lvmdbusd: Add debug circular buffer 2022-09-16 10:49:37 -05:00
state.py lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
udevwatch.py lvmdbusd: Use ID_FS_TYPE UDev property in udevwatch 2021-10-07 12:42:44 -05:00
utils.py lvmdbusd: Don't report recoverable error 2022-09-16 10:49:37 -05:00
vg.py lvmdbusd: Add function to convert LV into a VDO pool 2020-01-09 13:07:55 -06:00