Skip to content

Conversation

@tacerus
Copy link
Contributor

@tacerus tacerus commented Oct 16, 2025

What does this PR do?

Complete #67788 to remove spwd on Linux. Solaris parts are not touched as they already have compatibility for systems without spwd.

What issues does this PR fix or reference?

#67119

Previous Behavior

user module would fail with NameError: name 'spwd' is not defined on Python 3.13.

New Behavior

user module works again.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@tacerus
Copy link
Contributor Author

tacerus commented Oct 16, 2025

Test failures appear not related to my patch, but let me know if I missed something.

@tacerus tacerus mentioned this pull request Oct 18, 2025
3 tasks
m-czernek added a commit to openSUSE/salt that referenced this pull request Oct 30, 2025
@twangboy twangboy added the test:full Run the full test suite label Oct 31, 2025
Vaelatern and others added 2 commits October 31, 2025 12:23
Module deprecated and no longer shipped with Python 3.13.

Co-authored-by: Toyam Cox <Vaelatern@voidlinux.org>
Co-authored-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
meaksh added a commit to openSUSE/salt that referenced this pull request Nov 7, 2025
* Do not use ConfigParser.readfp in nilrt_ip module

* Use external tornado with newest Python

* Migrate batch_async to external tornado

* Mutating locals is unsupported in Py >=3.13

* modules/tls.py: Use cryptography for create_pkcs12

* modules/x509: Use cryptography for create_crl

* Remove use of spwd, removed module in py3.13

* Fix issues around closing IOLoop

* Fix error if future is already done

* Fix io_loop closing in tpc.py and http.py

Partial cherry-pick of c4677c6

* Remove unexpected callback keyword

* Fix fileclient inability to download a file

* Remove mentions of StackContext

* Ensure current_ioloop works for vendored and ext tornado

* Fix test_linux_shadow tests

Cherry-pick of saltstack/salt#68402

* Test saltnado fail fix

* Fix test_base_api_handler test

* Fix tests_webhook_handler test

* Fix salt fileclient for old and new tornado

* Raise Python version for vendored tornado

* Add compatibility with StackContext

* Implement fixme in tls

* Apply cosmetic suggestion

Co-authored-by: Victor Zhestkov <vzhestkov@suse.com>

---------

Co-authored-by: Alexander Graul <agraul@suse.com>
Co-authored-by: Toyam Cox <Vaelatern@voidlinux.org>
Co-authored-by: Pablo Suárez Hernández <psuarezhernandez@suse.com>
Co-authored-by: Victor Zhestkov <vzhestkov@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Salt relies on spwd module, deprecated in 3.11 and removed in 3.13

3 participants