saltstack / saltstack/salt

RedHawk is not fully recognized as a RedHat-based distribution

Open
#54,339 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Confirmed severity-low
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description of Issue

Please add yumpkg as provider for RedHawk
Because this is a Red Hat based distribution, I installed CentOS salt-minion.

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
If I try to use the following state:
sudo_pkg:
pkg.installed:
- pkgs:
- sudo

I get this:

      ID: sudo_pkg
Function: pkg.installed
  Result: False
 Comment: State 'pkg.installed' was not found in SLS 'linux.generic.sudoers.redhawk'
          Reason: 'pkg' __virtual__ returned False

When I put the following in the / etc / salt / minion, it works as it should.
providers:
pkg: yumpkg

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 2019.2.0

Dependency Versions:
cffi: 1.6.0
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.31.0
Mako: 0.8.1
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: 1.2.5
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Jun 20 2019, 20:27:34)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4

System Versions:
dist: centos 7.6.1810 Core
locale: UTF-8
machine: x86_64
release: 4.9.146-rt125-RedHawk-7.5.2-trace
system: Linux
version: CentOS Linux 7.6.1810 Core

Grains.Items

kernel:
    Linux
kernelrelease:
    4.9.146-rt125-RedHawk-7.5.2-trace
kernelversion:
    #1 SMP PREEMPT Fri Mar 8 14:09:24 EST 2019
lsb_distrib_codename:
    RedHawk Linux 7.5 (Rey)
lsb_distrib_id:
    RedHawk Linux
lsb_distrib_release:
    7.5
os:
    RedHawk
os_family:
    RedHawk
osarch:
    x86_64
oscodename:
    RedHawk Linux 7.5 (Rey)
osfinger:
    RedHawk Linux-7
osfullname:
    RedHawk Linux
osmajorrelease:
    7
osrelease:
    7.5
osrelease_info:
    - 7
    - 5

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 pkg.installed failure on RedHawk and compare it with the working minion providers configuration using yumpkg. Trace the platform detection and package-provider selection involved in the pkg entry point. Done means pkg.installed is available on RedHawk without the manual provider override, with coverage for this distribution behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.