Skip to content

runc update: systemd v2 driver ignores --cpu-quota if period was not set #2463

@kolyshkin

Description

@kolyshkin

Repro:

# make sure no quota/period set in config.json
runc run -d --console-socket $CONSOLE_SOCKET test_update
# update the quota alone, no old values were set
runc update --cpu-quota 30000 test_update
# check the systemd value
systemctl show --property CPUQuotaPerSecUSec runc-cgroups-integration-test.scope
infinity

It should be 300ms not infinity.

This bug was always there because we weren't checking systemd values in our int tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions