-
-
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
fedora-39 template vms cannot be targeted by salt because of incorrect import (python 3.12, salt patch required) #8806
Comments
Is it still the case if you switch default-mgmt-dvm (or management_dispvm specific to that template) to fedora-39 template? |
Since no response, I assume setting default-mgmt-dvm to fedora-39 fixed the issue. I cannot reproduce the issue when using new template for default-mgmt-dvm. |
This issue has been closed as "cannot reproduce." This means that attempts have been made to replicate the problem, but such attempts have not been reliably successful enough to proceed with fixing the problem. We respect the time and effort you have taken to file this issue, and we understand that this outcome may be unsatisfying. Please accept our sincere apologies and know that we greatly value your participation and membership in the Qubes community. If the problem becomes reliably reproducible in the future, please let us know in a comment below, and we will reopen this issue. If anyone reading this believes that this issue was closed in error or that the resolution of "cannot reproduce" is not accurate, please leave a comment below saying so, and we will review this issue again. For more information, see How issues get closed. |
@marmarek - For me, switching default-mgmt-dvm to fedora-39 template did not fix the 'ModuleNotFoundError' for 'backports'. Also, neither workaround suggested by @vladimir-lu worked for me. Curiously, using the Qubes OS Updater GUI the update of fedora-39-minimal was successful. Completely at a loss here :( |
Updater no longer uses Salt (except for dom0) so it working is expected, but clearly you can reproduce, so reopening. |
For reference: attached are two files logging the errors from running salt update on fedora-39-minimal template, one with default-mgmt-dvm based on debian-12-minimal as template and the other based on fedora-39. qubesctl-f39.debian-12-minimal.txt |
As for the fedora-39 - is that fedora-39-minimal by a chance? I see a different message there:
The |
It was fedora-39 (fully updated). Yes I did see that urllib3 module is in the python3 site-packages directory (and could be imported successfully in a dummy python session), so the error message was a mystery to me. Without sufficient understanding of salt and qubes internal I couldn’t pursue further.
|
I'm not a salt expert, but the filesystem paths And indeed, I can reproduce the issue when operating on a plain |
@qtc-de Confirmed ( This clues me on why I wasn't able to get the |
The second Also, for the purpose of better understanding |
This looks to be correct diagnosis. |
I can repro this too. My machines have python3-urllib3 and this still happens. |
problematic in ext.tornado
is there a match hostname in ssl? no
So this blows up. |
Replace in salt/ext/tornado/netutil.py line 57 and on:
with
and now it works. |
The quality of the SaltStack code base makes me think it's a miracle this thing even works. I regret betting on this horse years ago. |
I am using I can target a I can't target a
What is the recommended way for developers using Salt to have it working on minimal templates? As I see, the |
@ben-grande I would install |
@marmarek The commit QubesOS/qubes-builder-rpm@fa42621 only seems to apply for future template installs. For users that have already installed the template, can this be applied via an update as a dependency to a qubes package? |
I don't think this is appropriate. It isn't really "required" by any of the packages installed in minimal template. And if one doesn't use salt, it should be possible to remove |
I have added a note to the minimal template documentation about this issue. |
Make the template salt-able by default QubesOS/qubes-issues#8806
I'm wondering, is the installation of |
@aidecoe Change Global prefs |
@ben-grande the @marmarek is Debian supported in |
@aidecoe Sorry, I meant the template of
I am not Marek but |
Yes, that makes sense. I chose debian-12-xfce as my default template on the installation. In this case, I suppose, the installer should make an exception and assign fedora template. |
Please feel free to open a separate issue for that. |
Qubes OS release
4.2.0
fedora-39-minimal template
Brief summary
When targeting a fedora 39 template, run into upstream issue saltstack/salt#65360 . I expect it will be fixed in salt 3007 based on the comments on the issue.
Steps to reproduce
Expected behavior
Actual behavior
Error message:
Workaround
Do the equivalent of
pip3 install backports.ssl_match_hostname
(as mentioned in upstream ticket) or patch salt itself.The text was updated successfully, but these errors were encountered: