Running "ceph-salt update" fails with a python stack trace: KeyError
This document (000020413) is provided subject to the disclaimer at the end of this document.
Environment
Situation
State: pkg.installed
Error Description:
An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 1999, in call
)
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2036, in wrapper
# improperly loaded
File "/usr/lib/python3.6/site-packages/salt/states/pkg.py", line 1690, in installed
pkgs, refresh = _resolve_capabilities(pkgs, refresh=refresh, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/states/pkg.py", line 1004, in _resolve_capabilities
ret = __salt__["pkg.resolve_capabilities"](pkgs, refresh=refresh, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 3130, in resolve_capabilities
refresh_db(root)
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 1440, in refresh_db
out = __zypper__(root=root).refreshable.call(*refresh_opts)
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 381, in __call
self.__call_result = __salt__["cmd.run_all"](cmd, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 1269, in __getitem__
File "/usr/lib/python3.6/site-packages/salt/utils/lazy.py", line 111, in __getitem__
KeyError: 'cmd.run_all'
Resolution
Cause
Additional Information
root 3070 0.0 0.1 173948 29980 ? Ss Oct01 0:00 /usr/bin/python3 /usr/bin/salt-minion
These processes were started before installing updates that included python and salt updates, since they were started manually, the processes were not restarted automatically after the updates were applied.
It can also be useful to make sure all modules are synced to the minion(s) by on the admin node running:
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020413
- Creation Date: 21-Oct-2021
- Modified Date:21-Oct-2021
-
- SUSE Enterprise Storage
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com