Repository navigation
Closed
Labels
AluminiumRelease Post Mg and Pre Sibugbroken, incorrect, or confusing behaviorlazy-loaderpoint-releaseminor releaseseverity-criticaltop severity, seen by most users, serious issues
Milestone
Description
Description
after upgrading from 3002 to 3003 , virt.keys (which handles the certificate signing for libvirtd on minion KVM hypervisors) is failing. Salt masters can communicate with the hypervisors that were added before the upgrade but due to the virt.keys state failure no new HVs can be added.
Setup
both master and minions are using Debian 10 buster with Salt 3003.
Steps to Reproduce the behavior
- add a new minion
- run a state with virt.keys :
example:
libvirt_keys:
virt.keys
Output:
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call
*cdata["args"], **cdata["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/loader.py", line 2316, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/virt.py", line 100, in keys
pillar = __salt__["pillar.ext"]({"libvirt": "_"}, pillar_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/pillar.py", line 513, in ext
ret = pillar_obj.compile_pillar()
File "/usr/lib/python3/dist-packages/salt/pillar/__init__.py", line 330, in compile_pillar
load, dictkey="pillar",
File "/usr/lib/python3/dist-packages/salt/utils/asynchronous.py", line 126, in wrap
six.reraise(*results[1])
File "/usr/lib/python3/dist-packages/salt/ext/six.py", line 693, in reraise
raise value
File "/usr/lib/python3/dist-packages/salt/utils/asynchronous.py", line 132, in _target
result = io_loop.run_sync(lambda: getattr(self.obj, key)(*args, **kwargs))
File "/usr/lib/python3/dist-packages/salt/ext/tornado/ioloop.py", line 459, in run_sync
return future_cell[0].result()
File "/usr/lib/python3/dist-packages/salt/ext/tornado/concurrent.py", line 249, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/lib/python3/dist-packages/salt/ext/tornado/gen.py", line 309, in wrapper
yielded = next(result)
File "/usr/lib/python3/dist-packages/salt/transport/zeromq.py", line 351, in crypted_transfer_decode_dictentry
self._package_load(self.auth.crypticle.dumps(load)),
File "/usr/lib/python3/dist-packages/salt/crypt.py", line 1538, in dumps
return self.encrypt(self.PICKLE_PAD + self.serial.dumps(obj))
File "/usr/lib/python3/dist-packages/salt/payload.py", line 196, in dumps
msg, default=ext_type_encoder, use_bin_type=use_bin_type
File "/usr/lib/python3/dist-packages/salt/utils/msgpack.py", line 133, in packb
return msgpack.packb(o, **_sanitize_msgpack_kwargs(kwargs))
File "/usr/local/lib/python3.7/dist-packages/msgpack/__init__.py", line 35, in packb
return Packer(**kwargs).pack(o)
File "msgpack/_packer.pyx", line 292, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 298, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 295, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack
File "msgpack/_packer.pyx", line 285, in msgpack._cmsgpack.Packer._pack
File "/usr/lib/python3/dist-packages/salt/payload.py", line 190, in ext_type_encoder
return dict(obj)
File "/usr/lib/python3.7/_collections_abc.py", line 720, in __iter__
yield from self._mapping
File "/usr/lib/python3/dist-packages/salt/loader_context.py", line 91, in __iter__
return self.value().__iter__()
AttributeError: 'NoneType' object has no attribute '__iter__'
Expected behavior
state should be executed without any errors. same state was running fine before the upgrade.
Versions Report
salt --versions-report
# salt -V
Salt Version:
Salt: 3003
Dependency Versions:
cffi: Not Installed
cherrypy: unknown
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: Not Installed
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-16-amd64
system: Linux
version: Debian GNU/Linux 10 buster
Metadata
Metadata
Assignees
Labels
AluminiumRelease Post Mg and Pre Sibugbroken, incorrect, or confusing behaviorlazy-loaderpoint-releaseminor releaseseverity-criticaltop severity, seen by most users, serious issues
Activity
welcome commentedon Apr 6, 2021
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
meelmeal commentedon Apr 6, 2021
UPDATE , I did some further analysis and it looks like the problem is with loading pillar.ext . This is the line in virt.py (inside the keys function) where it's failing :
Also, the following CLI command fails on all minions with a similar error : salt-call pillar.ext '{libvirt: _}'
Fix issue #59975
sagetherage commentedon May 13, 2021
the link to close this issue didn't work and I can't seem to force it now so closing
Fix issue saltstack#59975
Fix issue saltstack#59975
Fix issue saltstack#59975
Merge freeze into master (#60396)
Merge freeze into master (saltstack#60396)
Merge 3003.3 into master (#60924)