-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] file.py _get_flags issue #62676
Comments
The cause is this change in Python 3.11:
which means that |
@OrangeDog were you able to reproduce the difference in practice? Any ideas why I get identical results for 3.10 and 3.11?: # python3.10 --version
Python 3.10.8
# python3.10 -c 'import re; print(re.MULTILINE)'
re.MULTILINE
# python3.11 --version
Python 3.11.0
# python3.11 -c 'import re; print(re.MULTILINE)'
re.MULTILINE |
…1 hosts The Python 3.11 issue upstream: - saltstack/salt#62676 - saltstack/salt#62677 The importlib-metadata issue: - saltstack/salt#62851 - saltstack/salt#62854 Patches have been extracted from pull requests as following: - git clone https://github.com/saltstack/salt - cd salt - git diff b676e6338a7c094cb3335d11f851ac0e12222017^ 45b924bad865a00116d2e045fe71229f2dc3376e -- salt/utils/entrypoints.py > salt-3005.1-importlib-metadata-5-r1.patch - git diff 00352ae6e0ed0b80a75ec65cb925dd31a625010d^ 91efaea4975f37de97a88687d40e54e774151a8b -- salt/modules/file.py | head -n 123 > salt-3005.1-modules-file-python-3.11-host.patch Be sure to call salt-ssh with "--regen-thin" the first time after updating, to not end up running unpatched 3005.1(-r0) code. Closes: https://bugs.gentoo.org/875389 Closes: https://bugs.gentoo.org/883671 Signed-off-by: Sebastian Pipping <sping@gentoo.org>
…1 hosts The Python 3.11 issue upstream: - saltstack/salt#62676 - saltstack/salt#62677 The importlib-metadata issue: - saltstack/salt#62851 - saltstack/salt#62854 Patches have been extracted from pull requests as following: - git clone https://github.com/saltstack/salt - cd salt - git diff b676e6338a7c094cb3335d11f851ac0e12222017^ 45b924bad865a00116d2e045fe71229f2dc3376e -- salt/utils/entrypoints.py > salt-3005.1-importlib-metadata-5-r1.patch - git diff 00352ae6e0ed0b80a75ec65cb925dd31a625010d^ 91efaea4975f37de97a88687d40e54e774151a8b -- salt/modules/file.py | head -n 123 > salt-3005.1-modules-file-python-3.11-host.patch Be sure to call salt-ssh with "--regen-thin" the first time after updating, to not end up running unpatched 3005.1(-r0) code. Closes: https://bugs.gentoo.org/875389 Closes: https://bugs.gentoo.org/883671 Signed-off-by: Sebastian Pipping <sping@gentoo.org>
When is planned next release (3005.2?) with this bug fixed? It makes salt pretty much unusable on systems with Python 3.11 (at least Fedora 37 and Debian bookworm) and new release would help solving this situation. |
@marmarek I agree on unusable, and 3005.1 is near four months old now. Probably asking for 3005.2 needs a dedicated issue to be visible. |
Carry the patch locally, until upstream does new release. For reference: saltstack/salt#62676 Fixes QubesOS/qubes-issues#7891
While salt in dom0 is not affects, it is in Fedora 37. While waiting for new upstream release (and have it packaged in Fedora), push update with the patch directly. saltstack/salt#62676 saltstack/salt#63631 QubesOS/qubes-issues#7891
Fwiw
|
Description
Running a simple salt file state results in failure.
Setup
Tested on a physical machine running Fedora 37, python 3.11, and salt v3005 (installed via the Fedora repo)
Steps to Reproduce the behavior
Create the following file:
Then run
salt-call state.sls dnf-test
This will result in the following error:
Expected behavior
A clear and concise description of what you expected to happen.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: