saltstack / saltstack/salt

Salt is reporting as failed to install package even if the package is installed

Open
#59,992 9 comments 0 reactions 2 assignees View on GitHub

@xeacott is already working on this.

Since Apr 12, 2021.

bug needs-more-info severity-medium Windows
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:
image

Screenshot 2:
image

Screenshot 3:
image

Screenshot of Salt master version report:
image

Screenshot of Salt minion version report:
image

Pillar information:
image

Also attached the minion log file in Debug mode.
salt_minion.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.