Repository navigation
Closed
Closed
Copy link
Labels
bugbroken, incorrect, or confusing behaviorcentosaffects this operating systemseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
Description
Trying to install the package group "Workstation" on CentOS 8, and receive an error about "Common NetworkManager submodules":
ID: pkg_workstation
Function: pkg.group_installed
Name: Workstation
Result: False
Comment: An error was encountered while installing/updating group 'Workstation': Group '@Common NetworkManager submodules' not found.
Started: 23:11:34.298679
Duration: 2232.124 ms
Changes:
Setup
State file:
pkg_common_networkmanager_submodules:
pkg.group_installed:
- name: "Common NetworkManager submodules"
- require:
- pkg_uptodate
pkg_workstation:
pkg.group_installed:
- name: "Workstation"
- require:
- pkg_uptodate
- pkg_common_networkmanager_submodules
Steps to Reproduce the behavior
$ salt minion state.apply
Minion trace logs:
[INFO ] Running state [Common NetworkManager submodules] at time 23:11:33.117954
[INFO ] Executing state pkg.group_installed for [Common NetworkManager submodules]
[INFO ] Executing command dnf in directory '/root'
[TRACE ] stdout:
Group: Common NetworkManager submodules
Description: This group contains NetworkManager submodules that are commonly used, but may not be wanted in some streamlined configurations.
Default Packages:
NetworkManager-bluetooth
NetworkManager-wifi
NetworkManager-wwan
dnsmasq
iptables
[INFO ] Group 'Common NetworkManager submodules' is already installed
[INFO ] Completed state [Common NetworkManager submodules] at time 23:11:34.297715 (duration_in_ms=1179.761)
[INFO ] Running state [Workstation] at time 23:11:34.298678
[INFO ] Executing state pkg.group_installed for [Workstation]
[INFO ] Executing command dnf in directory '/root'
[TRACE ] stdout: Environment Group: Workstation
Description: Workstation is a user-friendly desktop system for laptops and PCs.
Mandatory Groups:
Common NetworkManager submodules
Core
Fonts
GNOME
Guest Desktop Agents
Hardware Support
Internet Browser
Multimedia
Printing Client
Standard
Workstation product core
base-x
Optional Groups:
Backup Client
GNOME Applications
Headless Management
Internet Applications
Office Suite and Productivity
Remote Desktop Clients
Smart Card Support
[TRACE ] Adding group "Common NetworkManager submodules" to completed list: []
[INFO ] Executing command dnf in directory '/root'
[TRACE ] stderr: Warning: Group @Common NetworkManager submodules does not exist.
[ERROR ] An error was encountered while installing/updating group 'Workstation': Group '@Common NetworkManager submodules' not found.
[INFO ] Completed state [Workstation] at time 23:11:36.530803 (duration_in_ms=2232.124)
Expected behavior
Install "Workstation" package group
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Salt Version:
Salt: 3003
Dependency Versions:
cffi: 1.14.0
cherrypy: unknown
dateutil: 2.6.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.2
libgit2: 1.0.1
M2Crypto: 0.35.2
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.20
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: 1.3.0
Python: 3.6.8 (default, Aug 24 2020, 17:57:11)
python-gnupg: 0.4.6
PyYAML: 5.3.1
PyZMQ: 19.0.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: centos 8
locale: UTF-8
machine: x86_64
release: 4.18.0-240.22.1.el8_3.x86_64
system: Linux
version: CentOS Linux 8
Metadata
Metadata
Assignees
Labels
bugbroken, incorrect, or confusing behaviorcentosaffects this operating systemseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
ggiesen commentedon May 31, 2021
Note that installing manually using dnf works just fine:
[-][BUG] pkg.group_installed does not install some package groups on CentOS 8[/-][+][BUG] 3003 pkg.group_installed does not install some package groups on CentOS 8[/+]bug-catcher-fk-github commentedon Nov 21, 2022
This bug is still open. It seems that Salt attempts to target the human name of the group, as oppose to the yum name which is
networkmanager-submodules. Unfortunately even if you install this group manually, the installation of theworkstationgroup via Salt still fails. One forcmd.runI suppose...Also wanted to add: I think group installs are important as they seem the best way to emulate what the official RHEL installation does, but with the convenience of a post-install (e.g. minimal install) context.
Ninpo commentedon Feb 23, 2023
I have a similar issue with 3005.1 salt-minions trying to install the group Server with GUI on RHEL7:
An error was encountered while installing/updating group 'Server with GUI': Group '@ha' not found.yum groupinstall works as expected.
TTimo commentedon May 29, 2023
salt 3006.1 - bug still present (Fedora 38) .. what's a reasonable workaround?
TTimo commentedon May 29, 2023
cmd.runI suppose, I don't normally work with yum-based distros .. seems like a pretty serious bug for remaining open for two years?ggiesen commentedon May 27, 2026
PR #69243 fixes this for dnf4. I verified both the bug and the fix against real dnf on AlmaLinux 8 (dnf 4.7), 9 (4.14) and 10 (4.20) -- all current EL releases ship dnf4, so EL8/9/10 are covered.
dnf5 will need a separate change (Fedora ships dnf5 now; a future EL likely will too). dnf5 changed the group subcommands and output formats enough that yumpkg's group handling does not work against it, independent of this bug. Checked against Fedora 44 (dnf5 5.4.1):
dnf grouplist hidden(used bypkg.group_list) no longer exists: "Unknown argument 'grouplist'". dnf5 usesdnf group list [--hidden].dnf group listoutput is now anID | Name | Installedtable, not the dnf4 sectioned "Available ... Groups:" text, sopkg.group_listparsing won't match.dnf group infooutput is now colon-aligned (Id : ...,Mandatory packages : <pkg>with continuation lines) rather than dnf4's "Mandatory Packages:" header + indented names, sopkg.group_infoparsing won't match.dnf module(modularity) is deprecated in dnf5.Also,
yumpkg._yum()only distinguishes the package-manager binary name (yum/dnf/tdnf), not dnf4 vs dnf5, so dnf5 support would need a version detector plus reworkedgroup_list/group_infoparsing. Capturing this here so it isn't lost; it should be tackled separately from #69243.Fix yumpkg.group_info expanding env groups with multi-word member groups
dwoz commentedon Jul 1, 2026
Fixed by #69243 (commit 8f4acaf), present on 3006.x/3007.x/3008.x/master. Closing.
Support dnf5 group list/info in pkg.group_list/group_info (backport of …
Support dnf5 group list/info in pkg.group_list/group_info (backport of …