qubes-issues
qubes-issues copied to clipboard
State `group_installed` from state module `pkg` doesn't work
Qubes OS release
Qubes OS 4.2.4 (R4.2)
Brief summary
State pkg.group_installed returns An error was encountered while installing/updating group 'name_of_the_group': Group 'name_of_the_group' not found
Groups can be installed by executing command directly or using cmd.run.
As far as I can tell this happens with all groups.
Last time I've witnessed this state working was on fedora 40. It doesn't work on fedora 41 and 42. My management qube is a minimal fedora 42.
Steps to reproduce
{% if grains['id'] == 'dom0' %}
test--create-template:
qvm.clone:
- name: fedora-42-test
- source: fedora-42-minimal
{% elif grains['id'] == 'fedora-42-test' %}
test--install-group:
pkg.group_installed:
- name: python-classroom
test--install-cmd:
cmd.run:
- name: dnf -y install @python-classroom
{% endif %}
Expected behavior
package group installed
Actual behavior
fedora-42-test:
----------
ID: test--install-group
Function: pkg.group_installed
Name: python-classroom
Result: False
Comment: An error was encountered while installing/updating group 'python-classroom': Group 'python-classroom' not found.
Started: 11:38:05.011473
Duration: 616.222 ms
Changes:
----------
ID: test--install-cmd
Function: cmd.run
Name: dnf -y install @python-classroom
Result: True
Comment: Command "dnf -y install @python-classroom" run
Started: 11:38:05.632648
Duration: 1075015.715 ms
Changes:
----------
pid:
1138
retcode:
0
stderr:
Updating and loading repositories:
Fedora 42 - x86_64 - Updates 100% | 4.4 KiB/s | 6.4 KiB | 00m01s
Repositories loaded.
Package "bash-completion-1:2.16-1.fc42.noarch" is already installed.
Package "curl-8.11.1-6.fc42.x86_64" is already installed.
...
Installing groups:
Python Classroom
Transaction Summary:
Installing: 714 packages
Summary for fedora-42-test
------------
Succeeded: 1 (changed=1)
Failed: 1
------------
Additional information
Not sure if this is Qubes OS or SaltStack issue, I haven't found anything similar-looking in their repository.
Looks more like salt issue, we have custom pkg module only for dom0, templates use standard one.