Repository navigation
Closed
Labels
RegressionThe issue is a bug that breaks functionality known to work in previous releases.Salt-SyndicVMwarebugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
Milestone
Description
Description
After upgrading both the syndication master and other masters to 3004.1, I can no longer interact with the masters through the syndication master.
The masters have the following in /var/log/salt/syndic:
2022-03-28 14:04:36,269 [salt.pillar :245 ][ERROR ][16055] Pillar payload signature failed to validate.
2022-03-28 14:04:36,270 [salt.minion :3444][ERROR ][16055] Error while bringing up syndic for multi-syndic. Is the master at dc6-unix-salt-syndic-dev-01.nvidia.com responding?
2022-03-28 14:04:39,074 [salt.minion :3490][ERROR ][16055] Unable to call _fire_master on dc6-unix-salt-syndic-dev-01.nvidia.com, that syndic is not connected
2022-03-28 14:04:39,074 [salt.minion :3501][CRITICAL][16055] Unable to call _fire_master on any masters!
Versions Report
root@dc6-unix-salt-syndic-dev-01:~# salt-master --versions-report
Salt Version:
Salt: 3004.1
Dependency Versions:
cffi: 1.15.0
cherrypy: 18.6.0
dateutil: 2.6.1
docker-py: Not Installed
gitdb: 2.0.3
gitpython: 2.1.8
Jinja2: 2.10
libgit2: 0.26.0
M2Crypto: 0.31.0
Mako: Not Installed
msgpack: 0.5.6
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.21
pycrypto: 2.6.1
pycryptodome: 3.4.7
pygit2: 0.26.2
Python: 3.6.9 (default, Mar 15 2022, 13:55:28)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 17.1.2
smmap: 2.0.3
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist: ubuntu 18.04 Bionic Beaver
locale: UTF-8
machine: x86_64
release: 4.15.0-140-generic
system: Linux
version: Ubuntu 18.04 Bionic Beaver
root@dc6-unix-salt-dev-01:~# salt-syndic --versions-report
Salt Version:
Salt: 3004.1
Dependency Versions:
cffi: 1.14.5
cherrypy: 18.6.1
dateutil: 2.6.1
docker-py: Not Installed
gitdb: 2.0.3
gitpython: 2.1.8
Jinja2: 2.10
libgit2: 1.1.0
M2Crypto: 0.31.0
Mako: Not Installed
msgpack: 0.5.6
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.20
pycrypto: 2.6.1
pycryptodome: 3.9.8
pygit2: 1.5.0
Python: 3.6.9 (default, Mar 15 2022, 13:55:28)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 17.1.2
smmap: 2.0.3
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
Salt Extensions:
SSEAPE: 8.4.2+4
System Versions:
dist: ubuntu 18.04 Bionic Beaver
locale: UTF-8
machine: x86_64
release: 4.15.0-140-generic
system: Linux
version: Ubuntu 18.04 Bionic Beaver
Reacted by domo-cloudops, Adam Tuckett, Matthieu Guegan, Spencer Owen, Jani Korhonen, Shashank Bansal, Yoda-BZH, arkpoah, Andreas Tsarida, Tarcisio Miranda and 2 more
Metadata
Metadata
Assignees
Labels
RegressionThe issue is a bug that breaks functionality known to work in previous releases.Salt-SyndicVMwarebugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
Activity
mguegan commentedon Mar 29, 2022
I have the same issue on
3003.4.Additional logs on the syndic:
It seems pillar rendering is broken
salt versions:
waynew commentedon Mar 29, 2022
I looked into this for a while yesterday afternoon but didn't come up with anything definitive. Digging into it more now.
waynew commentedon Mar 29, 2022
I'm pretty sure this is due to the minion signing issue. I was seeing this error in my syndic logs:
I didn't have a
minion_master.pubfile in that directory, because the relationship is actually a syndic<-->master. Looks like it should be possible to workaround this by creating a symlink.@ebusto @mguegan could you see if that workaround... works?
7meis commentedon Mar 29, 2022
@waynew, it works. Many thanks! But you must first move the old minion_master.pub to another folder.
waynew commentedon Mar 29, 2022
The minion_master might be necessary if you're running a minion on the same box as the syndic. I'll be working on finding a correct fix for this.
mguegan commentedon Mar 29, 2022
Indeed, I am running a minion on the same box as the syndic.
czarni commentedon Mar 29, 2022
We had a strange issue with this. We tried the work around with a symlink but that didn't work. Deleting the symlink and restoring the
minion_master.pbfixed our issue.We also did two environments at the same time and that caused our MOM to throw logs of a possible "replay attack" on all minions of that environment. We needed to do one at a time. Hope this helps track it down.
6 remaining items
tsaridas commentedon May 2, 2022
I'm not quite sure what is the purpose of the code if config option verify_master_pubkey_sign and always_verify_signature is already enabled. Unfortunately adding the extra lines of code didn't remove the error for me and I had to remove all that part of the code. I'll wait for a proper fix to add it again.
tarcisiomiranda commentedon May 11, 2022
Work for me, i am using 3004.1
salt-syndic -l debug
@waynew waynew Thx man
mguegan commentedon May 31, 2022
@waynew do you know if you plan to release an official fix / package about this issue ?
TheSushiChef commentedon Jun 1, 2022
Just as a note, this also affects 3003.4 instances. Performing the workaround from #61868 (comment) worked for us. However, unless this issue isn't going away and the recommended approach is to do the hotfix, we don't want to implement a workaround that will then need to be removed when an official patch is released.
nicholasmhughes commentedon Jun 6, 2022
@sastorsl did you ever get this issue resolved? We're seeing it on a multi-master setup as well.
kriss-s commentedon Jun 20, 2022
@nicholasmhughes We ended up having to use the same key on both masters in each of our pairs, as we use/abuse salt a bit here. The minions have to be able to communicate with both "at the same time". With different keys they could only ever talk to one master at a time, so when the second master (the one the minion did not authenticate and connect to on startup) asked the minion to perform a task it refused to return properly.
Different keys for the masters in a pair (with key verify/sign) where both masters could send/receive tasks worked up until 3004.1.
lomeroe commentedon Jun 22, 2022
this seems to be fixed in 3003.5 and 3004.2
mguegan commentedon Jun 24, 2022
tested version
3003.5with success 👍szjur commentedon Sep 28, 2022
It doesn't work in 3003.5 - still "Pillar payload signature failed to validate." error appears. It can't possibly work with multiple masters having different public/private key pairs if the key is just saved to the same syndic_master.pub file.
We have a setup with multiple masters and syndics, used master_sign key to sign the keys of masters and syndic masters but never used the exact same keys on all masters (or syndic masters). Apparently versions up to 3000 did not care about checking that key much and indeed that piece of code does not exist in crypted_transfer_decode_dictentry().
It works fine with 1 master. With 2+ syndic_master.pub is overwritten with the pub key of the last master the syndic connected to and for all others it starts spitting that "Pillar payload signature failed to validate." error. It just can't possibly work, it's common sense.
UPDATE
But I guess it must be all down to what https://docs.saltproject.io/en/latest/topics/tutorials/multimaster.html says - There is only one requirement when preparing a redundant master, which is that masters share the same private key.. Funnily enough different master keys were not an issue up till Salt 3000 in the multiple hot master mode (the default master_type: str). It doesn't seem impossible to save the received master pub keys in separate files but I guess there is not that much advantage of having them different anyway, so why bother.
With identical master.pub/pem on all masters unsurprisingly that works fine (as it did on Salt 3000).
dmurphy18 commentedon Nov 9, 2022
@waynew if this is down as fixed in Salt 3004.2 release notes
Should this be closed, unable to find PR associated with it.
dmurphy18 commentedon Nov 10, 2022
Closing this mentioned as fixed in the Salt 3004.2 release notes.
Must have missed closing it when Salt 3004.2 was released.