salt: [BUG] napalm minion KeyError: 'napalm.get_reboot_active'
Description I just saw it in my debug log . Maybe it’s just cosmetic .
napalm proxy minion connected to cisco csr1000v
Salt Version:
Salt: 3003
Dependency Versions:
cffi: 1.14.5
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.5
gitpython: 2.1.11
Jinja2: 2.10
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 0.5.6
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.20
pycrypto: 2.6.1
pycryptodome: 3.6.1
pygit2: Not Installed
Python: 3.7.3 (default, Jan 22 2021, 20:04:44)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.1.2
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist: debian 10 buster
locale: UTF-8
machine: x86_64
release: 4.19.0-13-amd64
system: Linux
version: Debian GNU/Linux 10 buster
DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded status.proxy_reconnect
[DEBUG ] schedule.handle_func: adding this job to the jobcache with data {'id': 'r1', 'fun': 'status.proxy_reconnect', 'fun_args': [{'proxy_name': 'napalm'}], 'schedule': '__proxy_keepalive', 'jid': '20210413212712984307', 'pid': 16456}
[ERROR ] Unhandled exception running status.proxy_reconnect
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 843, in handle_func
ret["return"] = self.functions[func](*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/modules/status.py", line 1793, in proxy_reconnect
if __proxy__[proxy_name + ".get_reboot_active"]():
File "/usr/lib/python3/dist-packages/salt/loader_context.py", line 72, in __getitem__
return self.value()[item]
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1403, in __getitem__
func = super().__getitem__(item)
File "/usr/lib/python3/dist-packages/salt/utils/lazy.py", line 110, in __getitem__
return self._dict[key]
KeyError: 'napalm.get_reboot_active'
[DEBUG ] schedule.handle_func: Removing /var/cache/salt/proxy/r1/proc/20210413212712984307
[DEBUG ] LazyLoaded mine.update
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 29 (22 by maintainers)
Understand the issue and should have a fix next week.
@TheBirdsNest The fix should be available in Salt 3003.1. looking at the code for salt/modules/status.py with tag v3003.1 and
Also the fix was merged May 25th, 3003.1 released in mid June