saltstack / saltstack/salt

[BUG]Salt state.apply pip.installed not found, but salt-call state.apply work

Open
#65,409 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-more-info needs-triage
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description

Trying updating pip

{{ sls }} update_pip:
pip.installed:
- name: pip
- upgrade: True
- reload_modules: true

Work with salt-call state.apply from the minion but not from salt 'srv' state.apply giving the errror :

State 'pip.installed' was not found in SLS 'odoo-bare'
Reason: 'pip.installed' is not available.

Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Debian 12.0 master
Ubuntu 22.04 minion

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • [ X ] container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • [ X ] onedir packaging
  • used bootstrap to install

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.

Research direction

Start by reproducing the issue with the stated Debian 12 master, Ubuntu 22.04 minion, container, and onedir setup. Compare salt-call state.apply on the minion with salt 'srv' state.apply using the shown pip.installed state; done when the remote state also resolves that state successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.