Using salt proxy minions with Arista EOS switches, it works most of the time, but sometimes get this error:
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2179, in call
ret = self.states[cdata["full"]](
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1201, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1216, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/netconfig.py", line 836, in managed
config_update_ret = _update_config(
File "/usr/lib/python3/dist-packages/salt/states/netconfig.py", line 78, in _update_config
return __salt__["net.load_template"](
File "/usr/lib/python3/dist-packages/salt/loader/context.py", line 78, in __getitem__
return self.value()[item]
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 334, in __getitem__
super().__getitem__(item) # try to get the item from the dictionary
File "/usr/lib/python3/dist-packages/salt/utils/lazy.py", line 98, in __getitem__
if self._load(key):
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1033, in _load
ret = _inner_load(mod_name)
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1022, in _inner_load
if self._load_module(name) and key in self._dict:
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 822, in _load_module
self.__clean_sys_path()
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 641, in __clean_sys_path
importlib.invalidate_caches()
File "/usr/lib/python3.9/importlib/__init__.py", line 71, in invalidate_caches
finder.invalidate_caches()
File "<frozen importlib._bootstrap_external>", line 1255, in invalidate_caches
KeyError: '/usr/lib/python39.zip'
Started: 14:14:33.015826
Duration: 637.435 ms
Changes:
On the next run it works ok again.
salt master and salt proxy minion running under Debian Linux (bullseye).
It should work every time.
Description
Using salt proxy minions with Arista EOS switches, it works most of the time, but sometimes get this error:
On the next run it works ok again.
Setup
salt master and salt proxy minion running under Debian Linux (bullseye).
Steps to Reproduce the behavior
Just running
state.highstateExpected behavior
It should work every time.
Versions Report