barto
February 29, 2024, 11:06am
1
[irrelevant comment retracted]
barto
February 29, 2024, 12:03pm
3
Thanks @DVM . I’m on R4.1 but the last comment in the Github issue sums it up nicely
Rudd-O commented last week:
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.
barto
March 5, 2024, 1:14pm
4
[irrelevant comment retracted]
DVM
March 5, 2024, 1:22pm
5
That’s more a salt issue than a Qubes issues.
Have you tried this:
opened 10:09AM - 29 Dec 23 UTC
T: bug
C: mgmt
C: Fedora
P: default
diagnosed
affects-4.2
### Qubes OS release
4.2.0
fedora-39-minimal template
### Brief summary
…
When targeting a fedora 39 template, run into upstream issue https://github.com/saltstack/salt/issues/65360 . I expect it will be fixed in salt 3007 based on the comments on the issue.
### Steps to reproduce
1. Install a fedora 39 template (fedora-39-minimal)
2. Try to manage packages using salt
3. Get error about no package called 'backports'
### Expected behavior
1. Install a fedora 39 template
2. Try to manage packages using salt
3. Package installation/removal succeeds
### Actual behavior
Error message:
```
[ERROR ] An un-handled exception was caught by Salt's global exception handler:
ModuleNotFoundError: No module named 'backports'
Traceback (most recent call last):
File "/var/tmp/.root_dd8a91_salt/salt-call", line 27, in <module>
salt_call()
File "/var/tmp/.root_dd8a91_salt/pyall/salt/scripts.py", line 437, in salt_call
import salt.cli.call
File "/var/tmp/.root_dd8a91_salt/pyall/salt/cli/call.py", line 3, in <module>
import salt.cli.caller
File "/var/tmp/.root_dd8a91_salt/pyall/salt/cli/caller.py", line 12, in <module>
import salt.channel.client
File "/var/tmp/.root_dd8a91_salt/pyall/salt/channel/client.py", line 13, in <module>
import salt.crypt
File "/var/tmp/.root_dd8a91_salt/pyall/salt/crypt.py", line 26, in <module>
import salt.payload
File "/var/tmp/.root_dd8a91_salt/pyall/salt/payload.py", line 12, in <module>
import salt.loader.context
File "/var/tmp/.root_dd8a91_salt/pyall/salt/loader/__init__.py", line 15, in <module>
import salt.config
File "/var/tmp/.root_dd8a91_salt/pyall/salt/config/__init__.py", line 107, in <module>
_DFLT_IPC_WBUFFER = int(_gather_buffer_space() * 0.5)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/.root_dd8a91_salt/pyall/salt/config/__init__.py", line 95, in _gather_buffer_space
import salt.grains.core
File "/var/tmp/.root_dd8a91_salt/pyall/salt/grains/core.py", line 30, in <module>
import salt.modules.cmdmod
File "/var/tmp/.root_dd8a91_salt/pyall/salt/modules/cmdmod.py", line 32, in <module>
import salt.utils.templates
File "/var/tmp/.root_dd8a91_salt/pyall/salt/utils/templates.py", line 21, in <module>
import salt.utils.http
File "/var/tmp/.root_dd8a91_salt/pyall/salt/utils/http.py", line 27, in <module>
import salt.ext.tornado.simple_httpclient
File "/var/tmp/.root_dd8a91_salt/pyall/salt/ext/tornado/simple_httpclient.py", line 9, in <module>
from salt.ext.tornado.http1connection import HTTP1Connection, HTTP1ConnectionParameters
File "/var/tmp/.root_dd8a91_salt/pyall/salt/ext/tornado/http1connection.py", line 31, in <module>
from salt.ext.tornado import iostream
File "/var/tmp/.root_dd8a91_salt/pyall/salt/ext/tornado/iostream.py", line 41, in <module>
from salt.ext.tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError, _client_ssl_defaults, _server_ssl_defaults
File "/var/tmp/.root_dd8a91_salt/pyall/salt/ext/tornado/netutil.py", line 57, in <module>
import backports.ssl_match_hostname
ModuleNotFoundError: No module named 'backports'
```
### Workaround
Do the equivalent of `pip3 install backports.ssl_match_hostname` (as mentioned in upstream ticket) or patch salt itself.
What is the current salt version in the management template?
barto
March 5, 2024, 1:24pm
6
I’m on 4.1, as I said. The github issue is strictly about 4.2.
DVM
March 5, 2024, 1:28pm
7
The issue is about salt and fedora 39 using python 3.12.
What is your salt version in the template?
barto
March 5, 2024, 1:50pm
8
[irrelevant comment retracted]
DVM
March 5, 2024, 1:59pm
9
I downloaded and created a new fedora-39-minimal template on my Qubes 4.2 system. I’ve been able to replicate the issue:
ModuleNotFoundError: No module named 'urllib3'
I installed python3-urllib3
in the template, tried again with salt and it worked.
Can you check if you have this package installed in your minimal template?
barto
March 5, 2024, 2:26pm
10
[irrelevant comment retracted]
1 Like
imboxm
March 8, 2024, 10:04am
11
Hello, how to download…fedora 39 ? in what terminal and what command? and how to createa new fedora 39 template ? I am also on qubes 4.2
DVM
March 8, 2024, 10:08am
12
Search for “Qubes Template Manager”, you will get a GUI with all available templates. If you have made changes to the old template and want to keep them, do an in-place upgrade instead.