Skip to content

[Bug]: cgroup2 support broken on up-to-date systems #8558

@sfayer

Description

@sfayer

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

When running DIRAC pilot on up-to-date EL9.8 with HTCondor25-LTS, the cgroup creation fails despite cgroup delegation being enabled (log entry from a real LHCb pilot this morning):

2026-06-01T10:50:37,629177Z WorkloadManagement/JobAgent/WorkloadManagement/JobAgent INFO: CGroup2 support unavailable: Permission denied creating sub-cgroup 'dirac_pilot_737772'

Steps to Reproduce

No response

Expected Behavior

No response

Actual Behavior

No response

Environment

No response

Relevant Log Output

Additional Context

This seems to be caused by an extra "scope" level being added by something which wasn't there before; the "slice" directory is the job-writable one:

/sys/fs/cgroup/system.slice/htcondor/_condor_slot1_11@myhost.slice/_condor_slot1_11@myhost.scope

I think the most reliable way to fix this is going to be to modify the code to iterate up through the paths in the cgroup tree looking for one which it can write to (and giving up if it gets to the root). It shouldn't look for ".slice" specifically as that may not be portable to all systems.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions