Skip to content

gw: annotate cvmfs_receiver process with lease path#4065

Open
orbaps wants to merge 2 commits into
cvmfs:develfrom
orbaps:devel
Open

gw: annotate cvmfs_receiver process with lease path#4065
orbaps wants to merge 2 commits into
cvmfs:develfrom
orbaps:devel

Conversation

@orbaps

@orbaps orbaps commented Jan 21, 2026

Copy link
Copy Markdown

This PR addresses issue #3399 by adding an optional -l argument to the cvmfs_receiver process.

Description

The cvmfs_receiver process is spawned by the gateway. This change passes the lease path as an unused -l command-line argument to the receiver process. This allows administrators to easily identify which receiver process corresponds to which lease path using standard process listing tools, aiding in debugging and monitoring.

Changes

  • cvmfs/receiver/receiver.cc: Updated argument parsing to accept an optional -l flag.
  • gateway/internal/gateway/receiver/pool.go: Updated the worker pool to extract the lease path from the task and pass it to the receiver process.

Testing

  • Verified that the gateway compiles and tests pass.
  • The extra argument is ignored by the receiver logic, ensuring no side effects on functionality.

Fixes #3399

google-labs-jules Bot and others added 2 commits January 21, 2026 13:17
The cvmfs_receiver process is now spawned with an additional '-l <lease_path>'
argument. This argument is ignored by the receiver logic but serves to
identify the process in system process listings (e.g., ps aux), facilitating
debugging and monitoring.

Fixes cvmfs#3399
…407394230612695521

gw: annotate cvmfs_receiver process with lease path
@cernvm-bot

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@vvolkl vvolkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this is a very straightforward solution, and is a nice improvement. I'm wondering though if we can use one of the methods discussed here to annotate the process name without introducing spurious arguments.

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.

RFE: Gateway quality-of-life improvement -- annotate cvmfs_receiver process

3 participants