Saltstack troubleshooting: Difference between revisions

From wikinotes
Line 9: Line 9:
Here there be dragons.<br>
Here there be dragons.<br>
If you're lucky, the salt modules documentation will stipulate a requirement. For example, see the note on [https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.gpg.html#module-salt.modules.gpg salt.modules.gpg].<br>
If you're lucky, the salt modules documentation will stipulate a requirement. For example, see the note on [https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.gpg.html#module-salt.modules.gpg salt.modules.gpg].<br>
Otherwise, ... TBD.
In most cases, a problem can be pinned down by reading stacktraces in <code>/var/log/salt/minion</code>.


Here are some modules that I bang my head against frequently.
Here are some modules that I bang my head against frequently.
Line 21: Line 21:
== pip ==
== pip ==
<blockquote>
<blockquote>
Most of my problems here come from my package manager installing a newer package than salt supports.<br>
Unfortunately this is a moving target, so pinning packages becomes a bit of a headache. ungh.


</blockquote><!-- pip -->
</blockquote><!-- pip -->
</blockquote><!-- Salt Modules won't Execute -->
</blockquote><!-- Salt Modules won't Execute -->

Revision as of 20:35, 12 March 2022

Invalid Jinja

Check the minion's /var/log/salt/minion to get the full python stacktrace.

Salt Modules won't Execute

Here there be dragons.
If you're lucky, the salt modules documentation will stipulate a requirement. For example, see the note on salt.modules.gpg.
In most cases, a problem can be pinned down by reading stacktraces in /var/log/salt/minion.

Here are some modules that I bang my head against frequently.

gpg

  • install gpg
  • install python-gpg to saltstack's python interpreter

pip

Most of my problems here come from my package manager installing a newer package than salt supports.
Unfortunately this is a moving target, so pinning packages becomes a bit of a headache. ungh.