Skip to content
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] Cannot use pkg (and other modules?) with Parrot minions #60249

Closed
unman opened this issue May 25, 2021 · 1 comment · Fixed by #60250
Closed

[BUG] Cannot use pkg (and other modules?) with Parrot minions #60249

unman opened this issue May 25, 2021 · 1 comment · Fixed by #60250
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@unman
Copy link
Contributor

unman commented May 25, 2021

Description
A clear and concise description of what the bug is.
Some salt calls work with Parrot minions.
Attempt to use states using pkg fail:

Comment: State 'pkg.installed' was not found in SLS 'update'
Reason: 'pkg' __virtual__ returned False

Setup
Attempt to update Parrot with pkg.uptodate

Steps to Reproduce the behavior
Basic salt call to pkg.uptodate (or any use of pkg)

Expected behavior
Call will succeed and packages will be updated as necessary

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
          Salt: 3002.5
 
Dependency Versions:
                cffi: 1.14.5
      cherrypy: 8.9.1
        dateutil: 2.8.1
    docker-py: Not Installed
            gitdb: Not Installed
     gitpython: Not Installed
          Jinja2: 2.11.3
         libgit2: Not Installed
    M2Crypto: Not Installed
           Mako: 1.1.3
      msgpack: 1.0.0
  msgpack-pure: Not Installed
  mysql-python: 1.4.4
     pycparser: 2.20
      pycrypto: Not Installed
  pycryptodome: 3.9.7
        pygit2: Not Installed
        Python: 3.9.2 (default, Feb 28 2021, 17:03:44)
  python-gnupg: Not Installed
        PyYAML: 5.3.1
         PyZMQ: 20.0.0
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.4
 
System Versions:
        dist: parrot 4.11 unknown.new.testing
        locale: utf-8
       machine: x86_64
       release: 5.4.98-1.fc25.qubes.x86_64
       system: Linux
       version: Parrot OS 4.11 unknown.new.testing

Additional context
grains.items shows os_family: Parrot
Parrot is not referenced in grains\core.py.

Adding Parrot under _OS_Family_Map resolves the issue.

@unman unman added Bug broken, incorrect, or confusing behavior needs-triage labels May 25, 2021
@sagetherage sagetherage added Feature new functionality including changes to functionality and code refactors, etc. and removed Bug broken, incorrect, or confusing behavior needs-triage labels Jun 1, 2021
@sagetherage sagetherage added this to the Approved milestone Jun 1, 2021
@h0g3
Copy link

h0g3 commented Sep 22, 2021

I had the same issue on Rocky Linux with version 3003.3, adding it ("Rocky": "RedHat") to _OS_FAMILY_MAP on the minion solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants