DeprecationWarning: The x509 modules are deprecated. Please migrate to the replacement
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with salt/states/x509.py at line 212 and reproduce the warning in the reported venv-salt-minion 3006.0 environment. Trace the deprecated x509 usage to identify the stated replacement, then verify that the warning is resolved without changing the minion's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, ubuntu
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100