Skip to content

dbus: fix TestSetUnitProperties wrt systemd >= 252#489

Merged
Luap99 merged 1 commit intocoreos:mainfrom
kolyshkin:fix-fedora-test
Jan 6, 2026
Merged

dbus: fix TestSetUnitProperties wrt systemd >= 252#489
Luap99 merged 1 commit intocoreos:mainfrom
kolyshkin:fix-fedora-test

Conversation

@kolyshkin
Copy link
Collaborator

Since systemd 252, some cgroup v1 unit properties are fully deprecated and are ignored. This includes CPUShares that is used by TestSetUnitProperties. As a result, the test fails.

Reproduced on Fedora 43 with systemd 258:

# systemctl set-property -- '-.mount' CPUShares=1024
D-Bus property CPUShares is deprecated, ignoring assignment: CPUShares=1024
# systemctl show -- -.mount | grep Shares
(no output)

To fix the test failure, replace CPUShares with TasksMax, which is supported since systemd 227 and available for both cgroups v1 and v2.

Since systemd 252, some cgroup v1 unit properties are fully deprecated
and are ignored. This includes CPUShares that is used by
TestSetUnitProperties. As a result, the test fails.

Reproduced on Fedora 43 with systemd 258:

	# systemctl set-property -- '-.mount' CPUShares=1024
	D-Bus property CPUShares is deprecated, ignoring assignment: CPUShares=1024
	# systemctl show -- -.mount | grep Shares
	(no output)

To fix the test failure, replace CPUShares with TasksMax, which is
supported since systemd 227 and available for both cgroups v1 and v2.

Signed-off-by: Kir Kolyshkin <[email protected]>
Copy link
Collaborator

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@Luap99 Luap99 merged commit ea5bd3e into coreos:main Jan 6, 2026
36 of 37 checks passed
@kolyshkin kolyshkin added this to the v22.7.0 milestone Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants