uyuni
uyuni copied to clipboard
Human-friendly error messages
Today one of our guys left Yast open on a client by mistake. Several actions we tried to carry out on that client failed and we just couldn't figure out why. (hardware refresh, highstate, ...) The error was:
product_|-mgrchannels_install_products_|-mgrchannels_install_products_|-all_installed:
result: false
name: mgrchannels_install_products
changes: {
}
comment: |
An exception occurred in this state: Traceback (most recent call last):
File "/var/tmp/.root_40132b_salt/pyall/salt/modules/zypperpkg.py", line 388, in __call
data = __salt__["ps.proc_info"](
File "/var/tmp/.root_40132b_salt/pyall/salt/loader.py", line 1310, in __getitem__
func = super().__getitem__(item)
File "/var/tmp/.root_40132b_salt/pyall/salt/utils/lazy.py", line 102, in __getitem__
return self._dict[key]
KeyError: 'ps.proc_info'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/tmp/.root_40132b_salt/pyall/salt/state.py", line 2187, in call
*cdata["args"], **cdata["kwargs"]
File "/var/tmp/.root_40132b_salt/pyall/salt/loader.py", line 2140, in wrapper
return f(*args, **kwargs)
File "/var/tmp/.root_40132b_salt/running_data/var/cache/salt/minion/extmods/states/product.py", line 103, in all_installed
return __states__['pkg.installed'](name, pkgs=to_install)
File "/var/tmp/.root_40132b_salt/pyall/salt/loader.py", line 2140, in wrapper
return f(*args, **kwargs)
File "/var/tmp/.root_40132b_salt/pyall/salt/states/pkg.py", line 1877, in installed
**kwargs
File "/var/tmp/.root_40132b_salt/pyall/salt/modules/zypperpkg.py", line 1723, in install
.call(*cmd)
File "/var/tmp/.root_40132b_salt/pyall/salt/modules/zypperpkg.py", line 402, in __call
err.message
AttributeError: 'KeyError' object has no attribute 'message'
__sls__: channels
__run_num__: 1.0
start_time: '11:38:07.590091'
duration: 13721.238
__id__: mgrchannels_install_products
It would be great if there was a clear error message or at least a hint to a logfile containing such.