Skip to content

Normalize FileserverUpdate process title casing - #70111

Open
dwoz wants to merge 2 commits into
saltstack:3006.xfrom
dwoz:dwoz/fix/fileserverupdate-name-consistency
Open

Normalize FileserverUpdate process title casing#70111
dwoz wants to merge 2 commits into
saltstack:3006.xfrom
dwoz:dwoz/fix/fileserverupdate-name-consistency

Conversation

@dwoz

@dwoz dwoz commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

FileserverUpdate was registered with the ProcessManager under the name FileServerUpdate (capital S) via an explicit name= kwarg, while the class name uses lowercase s. When the process is respawned, ProcessManager falls back to the class name, so the initial fork gets the title FileServerUpdate and any respawn gets FileserverUpdate — the same logical process ends up with two different titles across its lifetime.

Impact: breaks grep/pgrep based monitoring, log-to-process correlation, and is confusing to operators. This fix normalizes every occurrence (class registration, log message, and log-assertion test) to the canonical class-name casing FileserverUpdate.

Test plan

  • tests/pytests/integration/_logging/test_multiple_processes_logging.py still matches on the normalized name.
  • ps on a running master shows FileserverUpdate both before and after a respawn.

The FileserverUpdate class in salt/master.py was registered with the
ProcessManager under the name ``FileServerUpdate`` (capital S) via an
explicit ``name=`` kwarg, while the class name itself uses a lowercase
``s``. Because ProcessManager falls back to the class name when
respawning a process, the initial fork got the process title
``FileServerUpdate`` and any respawn got ``FileserverUpdate``, so a
single logical process ended up with two different titles depending on
its lifecycle. The log message emitted when applying the fileserver
niceness used the capital-S form as well. Normalize every occurrence to
``FileserverUpdate`` to match the class name so process listings,
grep/pgrep based monitoring, and log-to-process correlation are
consistent across the process lifetime.
@dwoz
dwoz requested a review from a team as a code owner August 22, 2026 07:45
@dwoz dwoz added the test:full Run the full test suite label Aug 22, 2026
@dwoz dwoz added this to the Sulphur v3006.28 milestone Aug 22, 2026
Rename the placeholder changelog snippet to use PR saltstack#70111.
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.

1 participant