Skip to content

Remove orphaned genesis utility modules (refs #57990)#69237

Open
ggiesen wants to merge 1 commit into
saltstack:masterfrom
ggiesen:fix-57990-remove-orphaned-genesis-utils
Open

Remove orphaned genesis utility modules (refs #57990)#69237
ggiesen wants to merge 1 commit into
saltstack:masterfrom
ggiesen:fix-57990-remove-orphaned-genesis-utils

Conversation

@ggiesen
Copy link
Copy Markdown
Contributor

@ggiesen ggiesen commented May 27, 2026

What does this PR do?

Removes three orphaned utility modules and a stale test:

  • salt/utils/kickstart.py
  • salt/utils/preseed.py
  • salt/utils/yast.py
  • tests/unit/utils/test_kickstart.py

These utilities were only ever consumed by the genesis execution module, which was moved out of Salt core to a community extension (#65970 / dc526dc, "Remove community extensions from Salt codebase"). The util modules were left behind. A repo-wide search confirms nothing in salt/ imports salt.utils.kickstart, salt.utils.preseed or salt.utils.yast anymore -- the only remaining reference was the test_kickstart.py unit test, which is removed here as well.

What issues does this PR fix or reference?

Refs #57990, #57991

Both issues are genesis.mksls kickstart-parsing bugs in salt.utils.kickstart: #57990 (parse_keyboard declared the legacy keyboard layout as a required positional, so modern keyboard --vckeymap=... --xlayouts=... lines made argparse exit) and #57991 (parse_network didn't recognize the --no-activate option). genesis is gone from core, so standalone fixes are recorded on each issue for anyone reviving genesis as an extension; this PR removes the now-unreachable code rather than patching it.

Previous Behavior

salt/utils/{kickstart,preseed,yast}.py shipped in core with no remaining importers after the genesis module was removed.

New Behavior

The orphaned modules and their stale test are gone.

Merge requirements satisfied?

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

  • Docs
  • Changelog - changelog/57990.removed.md
  • Tests written/updated - removes the now-obsolete tests/unit/utils/test_kickstart.py; no new tests apply to a code removal

Commits signed with GPG?

No

salt.utils.kickstart, salt.utils.preseed and salt.utils.yast were only
used by the genesis execution module, which was moved out to a community
extension in 65970 ("Remove community extensions from Salt codebase").
The util modules were left behind with no remaining consumers, so remove
them along with the now-stale test_kickstart.py.

The genesis.mksls keyboard-parsing bug reported in saltstack#57990 lived in
salt.utils.kickstart.parse_keyboard; the fix is recorded on that issue for
anyone reviving genesis as an extension.
@dwoz
Copy link
Copy Markdown
Contributor

dwoz commented May 27, 2026

@ggiesen Should this be against 3008.x? It's too late for 3008.0 but if this is fixing a bug it can go into 3008.1

@ggiesen
Copy link
Copy Markdown
Contributor Author

ggiesen commented May 27, 2026

@dwoz this one isn't a bug fix - it removes the orphaned salt.utils.kickstart/preseed/yast modules left behind after the genesis execution module was removed in 3008.0. They can't go to 3006.x/3007.x (genesis still ships there and imports them), and as a removal rather than a fix it belongs in the next feature release (master) rather than a 3008.1 patch. Keeping it on master for now - happy to retarget to 3008.x if you'd rather tidy the 3008 line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants