-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
4.2: user_salt isn't working #8491
Comments
Hold on, it may be a mistake of mine, I'm trying to figure what's going on here 🙏 edit: it often fails with the error above, but sometimes it just works and create the qube 🤷♀️ |
Ok! I've been able to make a reproducer for dom0 and fedora 38 template. I compared my /srv and /etc/salt files with a working Qubes OS running 4.2-RC3, they are 100% identical, yet it works on the other computers. The line |
@rapenne-s does |
this didn't change anything |
Does |
no, while qubesctl man pages states |
@andrewdavidwong isn't this a blocker? |
Sorry, I'm not very familiar with Salt. Can you explain in simple terms why it's a blocker? For example, which use cases does it break that will affect most users? |
@andrewdavidwong When using Salt to automate configuration, you've got the choice of placing your personal "files" in one of two environments:
If you're like me, you do what @rapenne-s did: enable the so-called "user directories" and write your stuff in the Is that most users? (I don't know.) Is that most users who use Salt? (I don't know either.) What I know is that a few of us would see our workflows reliability go down significantly
|
@gonzalo-bulnes: Thanks for the explanation! I suppose if the |
thanks @gonzalo-bulnes for the explanation! I'd add that a lot of community work is provided through Salt (like sys-vpn), which is broken in this case. |
if this helps, when looking at pillar items on both my systems, I found a huge difference: 4.1 -> 4.2-RC3 system that work
The fresh 4.2-RC3 which have issues
|
Investigating further, it seems When running the
|
I found a fix for the issue, but is it really that? When comparing my two salt directories, the system with the issue was missing a link in Making the link allows me to deploy using my user defined salt states, removing the link make the error appearing again. |
That could well be it @rapenne-s! |
Had the same issue on 4.2-rc3
Solved it for me. Thanks:) edit, corrected path... |
I just checked on a fresh 4.1 installation, and it is this way there too, so it isn't regression. The simplest way to create those dirs is to run |
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
|
I leave this in case it's useful to someone one day, I had the error The recommend command |
This issue remains for me on a fresh install of Qubes 4.2.3 in spite of qubes-mgmt-salt PR42 having been merged. Applying qubes-mgmt-salt-base-config PR11 fixes it for me. |
It worked for systems upgraded from earlier versions of Qubes OS, but not for fresh installs of R4.2-rc3 and up. This was fixed (QubesOS/qubes-mgmt-salt#42), but another user (@zaz) ran into a problem on a fresh R4.2.3 install and reported that this fixes it. Reported-by: Solène Rapenne <[email protected]> Reported-by: Zaz Brown <[email protected]> Fixes: QubesOS/qubes-issues#8491
@zaz have you done |
@marmarek Yes. I ran that command and my SALT states in
With the modified |
@zaz do you have anything in |
@marmarek Yes user:
fedora-4?-xfce:
- common
- fedora-pkgs
debian:
- common
- debian-pkgs
sys-net:
- restart-network And these SALT states are applied when the link exists. |
How to file a helpful issue
Qubes OS release
Fresh install of 4.2-RC3
Brief summary
I installed 4.2-RC3, enabled user-dirs in salt, imported my salt repo which work on other Qubes OS deployments (that are not fresh 4.2-RC3 but upgraded from 4.1), it fails in weird ways.
dom0 related configuration are working 50% of the time
non-dom0 configuration aren't working, qubesctl report that no top file are matching their name, while it works on other computers. Although, adding
saltenv=user
make it work!Steps to reproduce
Enable user-dirs with
qubesctl state.sls qubes.user-dirs
Modify
/srv/user_salt/top.sls
to look like/srv/user_salt/qubes-vm.sls
with this content:qubesctl state.highstate
First run fails
2nd run works
3rd run doesn't work
4th run works
Reproducer for template
user_salt
for templates is completely broken:Enable user-dirs with
qubesctl state.sls qubes.user-dirs
Modify
/srv/user_salt/top.sls
to look like/srv/user_salt/package.sls
with this content:qubesctl --targets fedora-38 --skip-dom0 --show-output state.highstate
It's possible to fix the command by adding
saltenv=user
:qubesctl --targets fedora-38 --skip-dom0 --show-output state.highstate saltenv=user
Expected behavior
It works
Actual behavior
mix of half working for dom0 and not working for non-dom0
The text was updated successfully, but these errors were encountered: