top
file in user_salt
isn't working with explicit saltenv=user
in dom0
#9468
Labels
affects-4.2
This issue affects Qubes OS 4.2.
C: mgmt
needs diagnosis
Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed.
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
T: bug
Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Qubes OS release
with the following packages version in
dom0
:qubes-mgmt-salt
: 4.2.2-1.fc37qubes-mgmt-salt-admin-tools
: 4.2.2-1.fc37qubes-mgmt-base
: 4.1.7-1.fc37qubes-mgmt-base-config
: 4.1.2-1.fc37qubes-mgmt-base-topd
: 4.2.1-1.fc37qubes-mgmt-config
: 4.2.2-1.fc37qubes-mgmt-dom0
: 4.2.2-1.fc37qubes-mgmt-dom0-qvm
: 4.2.1-1.fc37qubes-mgmt-dom0-update
: 4.1.14-1.fc37qubes-mgmt-dom0-virtual-machines
: 4.2.17-1.fc37salt
: 3006.5-1.fc37salt-minion
: 3006.5-1.fc37Brief summary
Unable to run enabled
.top
file inuser_salt
directory viaqubesctl state.apply saltenv=user
indom0
.Steps to reproduce
Note: even if the case is named
test-template
, the test focus only ondom0
. I was testing something else before making this issue.First I clean my setup on
dom0
:I set up the following files:
/srv/user_salt/top.sls
:/srv/user_salt/test-template.top
:/srv/user_salt/test-template.sls
:and run
The command
qubesctl top.enabled
produces:Results
The task
test-template
is executed in the following cases:qubesctl --show-result state.apply
qubesctl --show-result state.apply test-template
In this case, the output contains the following:
The task is not executed in the following cases:
qubesctl --show-result state.apply saltenv=user
qubesctl --show-result state.apply saltenv=base
Expected behavior
I expect the command
qubesctl --show-result state.apply saltenv=user
to also execute the statetest-template
.Actual behavior
The task is not executed with
saltenv=user
If I try to replace
user
bybase
in thetest-template.sls
file, Salt complainsNo matching sls found for 'test-template' in env 'base'
Solution
I can fix it if I copy
/srv/salt/top.sls
to/srv/user_salt/top.sls
and replacebase
byuser
line inside withouttopd
:The text was updated successfully, but these errors were encountered: