salt
salt copied to clipboard
DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement
Hello, I have a virtual machine with Ubuntu 22.04 on an ESXI host.
I use Uyuni as a patch management server and on some virtual systems I have the problem that the venv-salt-minion shows me errors: $ sudo systemctl status venv-salt-minion.service
● venv-salt-minion.service - The venvjailed Salt Minion
Loaded: loaded (/lib/systemd/system/venv-salt-minion.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2024-04-30 08:37:51 CEST; 1 week 6 days ago
Main PID: 6187 (python.original)
Tasks: 5 (limit: 19048)
Memory: 62.8M
CPU: 41min 51.709s
CGroup: /system.slice/venv-salt-minion.service
├─6187 /usr/lib/venv-salt-minion/bin/python.original /usr/lib/venv-salt-minion/bin/salt-minion
└─6198 /usr/lib/venv-salt-minion/bin/python.original /usr/lib/venv-salt-minion/bin/salt-minion
Mai 02 11:22:18 v0091 salt-minion[23665]: /usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/x509.py:212: DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement>
Mai 02 11:22:18 v0091 salt-minion[23665]: salt.utils.versions.warn_until(
Mai 02 11:28:36 v0091 salt-minion[24365]: /usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/x509.py:212: DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement>
Mai 02 11:28:36 v0091 salt-minion[24365]: salt.utils.versions.warn_until(
Notice: journal has been rotated since unit was started, output may be incomplete.
$ sudo venv-salt-minion --version
venv-salt-minion 3006.0 (Sulfur)
Via uyuni i spreading this repo: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2204-Uyuni-Client-Tools/xUbuntu_22.04/amd64/
I am not sure how I should and can interpret this message. What should I do here?
Thank you all for spendung your time
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
- Community Wiki
- Salt’s Contributor Guide
- Join our Community Slack
- IRC on LiberaChat
- Salt Project YouTube channel
- Salt Project Twitch channel
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
You should migrate to x509_v2
. If not wrong x509
will be removed in version 3008 and x509_v2
will become default one.
To switch/activate follow this documentation.
If x509 is removed with version 3008 and x509_v2 becomes standard, can I leave it as it is until then and the change will take effect without intervention or will there have to be manual intervention in any case?
I'll recommend you to manually switch as there are some breaking changes before upgrading salt to 3008
.
It will not be nice if all of your stuff stops working during the upgrade. However, until then, it's up to you if you want to use v1 or v2, but if you go with v2, be sure that you're running at least v3006.4
as there are major fixes in 3006.3/4 related to x509 modules.
I found a simple way, maybe anybody tell me: Thats okay or: Thats creepy..dont do that Before: sudo systemctl status venv-salt-minion.service
Okt 07 16:01:52 v0124 salt-minion[22995]: /usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/x509.py:212: DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement>
Okt 07 16:01:52 v0124 salt-minion[22995]: salt.utils.versions.warn_until(
Okt 07 16:03:10 v0124 salt-minion[31766]: /usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/x509.py:212: DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement>
Okt 07 16:03:10 v0124 salt-minion[31766]: salt.utils.versions.warn_until(
Okt 07 16:03:14 v0124 salt-minion[35748]: /usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/x509.py:212: DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement>
Okt 07 16:03:14 v0124 salt-minion[35748]: salt.utils.versions.warn_until(
I create a new file here: sudo nano /etc/venv-salt-minion/minion.d/x509_v2.conf And put in
features:
x509_v2: true
sudo systemctl restart venv-salt-minion
● venv-salt-minion.service - The venvjailed Salt Minion
Loaded: loaded (/lib/systemd/system/venv-salt-minion.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/venv-salt-minion.service.d
└─10-TMPDIR.conf
Active: active (running) since Mon 2024-10-07 16:06:41 CEST; 54s ago
Main PID: 36303 (python.original)
Tasks: 5 (limit: 9343)
Memory: 56.8M
CPU: 4.505s
CGroup: /system.slice/venv-salt-minion.service
├─36303 /usr/lib/venv-salt-minion/bin/python.original /usr/lib/venv-salt-minion/bin/salt-minion
└─36314 /usr/lib/venv-salt-minion/bin/python.original /usr/lib/venv-salt-minion/bin/salt-minion
Okt 07 16:06:41 v0124 systemd[1]: Started The venvjailed Salt Minion.