-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] salt-ssh pkg.install fails #67777
Comments
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. 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. |
This is probably #67091. You can try applying the patch in #67152 and regenerating your thin package before trying your command again or downgrading to 3006.8. The divergence between regular Salt and Salt-SSH is caused by Salt-SSH needing to use the (outdated) system Python, while regular Salt can bring its own Python environment. |
Thanks for the information. Yes, downgrading to 3006.8 works around this issue. Apologies for my ignorance. What is meant by "regenerating your thin package" please? |
Salt-SSH packs Salt core and library dependencies into a tar archive and sends it to the target so it can be invoked (this is called the thin archive/thin tar). It's not regenerated if you patch Salt locally (it should be if the version changes though, which is why downgrading worked without). You can regenerate it e.g. by running |
Description
Using salt 3006.9 on a Rocky Linux 8.10 test salt master the salt-ssh tool fails to install packages on a Rocky Linux 8.10 test minion and gives and error that "'pkg.install' is not available" or 'pkg.installed' was not found.
Setup
Create 2 Rocky Linux 8.10 virtual machines, install salt with bootstrap on both, start
salt-master
service on one andsalt-minion
service on the other. Edit the/etc/salt/master
file on the minion to setmaster:
to the fqdn of the master vm.Steps to Reproduce the behavior
This errors:
salt-ssh -i minion.fqdn pkg.install nmap
as follows:Or as follows if using a salt state,
salt-ssh -i minion.fqdn state.sls installsalt.update
The salt state contains the following in it in case relevant.
Using salt directly, i.e. no salt-ssh, e.g.
salt hprc-guest-114-230.tchpc.tcd.ie state.sls installsalt.update
, works though.So the issue seems to be limited to salt-ssh.
It also does not occur from a salt master running salt version 3005.5. I can get pkg.install to work with salt-ssh from a 3005.5 master.
As per I have set the pkg provider to yumpkg in
/etc/salt/minion
on the minion host as follows:I've also tried updating the state file to set the provider as follows:
This does not resolve the issue though.
Debug outputs.
salt-ssh-pkg.install.txt is the output of command
salt-ssh -l debug -i 'minion.fqdn' pkg.install nmap
.salt-ssh-state.sls.txt is the output of command
salt-ssh -l debug -i 'hprc-guest-114-230.tchpc.tcd.ie' state.sls installsalt.update
.Expected behaviour
pkg.install
will install packages.Versions Report
Thanks in advance.
The text was updated successfully, but these errors were encountered: