Salt is reporting as failed to install package even if the package is installed
@xeacott is already working on this.
Since Apr 12, 2021.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
Hello,
I have a setup of one Salt master (Linux) and one Salt minion (Windows). In the Salt master I have created /srv/salt/chrome/init.sls file (Screenshot 1). I have also configured package repo for Windows under /srv/salt/win/repo-ng/salt-repo-ng/chrome.sls. (Screenshot 2) When I did pkg.refresh_db the repos gets updated inside the Cache directory of Minion.
Now when I am running salt "minion" state.apply chrome it is actually installing the package but returning as Failed to install package.( Screenshot 3). When I am running pkg.remove it is saying the package is not installed.
So I guess some how Salt is not able to detect the package though I have verified the registry keys as well and everything looks normal.
Screenshot 1:

Screenshot 2:

Screenshot 3:

Screenshot of Salt master version report:

Screenshot of Salt minion version report:

Pillar information:

Also attached the minion log file in Debug mode.
salt_minion.log
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.