SALT AttributeError: 'module' object has no attribute 'dockermod'
This document (000020509) is provided subject to the disclaimer at the end of this document.
The following errors can be observed: $ sudo salt-call state.apply | head [ERROR ] Failed to import states docker_container, this is due most likely to a syntax error: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1658, in _load_module mod = imp.load_module(mod_namespace, fn_, fpath, desc) File "/usr/lib/python2.7/site-packages/salt/states/docker_container.py", line 2108, in <module> client_timeout=salt.utils.dockermod.CLIENT_TIMEOUT, AttributeError: 'module' object has no attribute 'dockermod'
The fix is in the following SALT Security Update:
A manual work-around would be to edit:
The error is due to AttributeError: 'module' object that has no attribute 'dockermod'. This is due to a known and fixed regression in salt:
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:000020509
- Creation Date: 18-Nov-2021
- Modified Date:18-Nov-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com