#9231 /run/ipa/ccaches uses all available tmpfs space
Closed: fixed by frenaud. Opened by ospifi.

Issue

ipa-ccache-sweeper.timer doesn't trigger service to cleanup /run/ipa/ccaches every 12 hours by removing entries older than one day. The systemd timer is configured in a way it doesn't trigger unless user manually starts the service or enables the service on startup.

Our CI makes about 15 000 logins via the JSON-RPC during a normal development day which creates a 4-6 kB ccache file on each login and eventually eats around a gigabytes a week.

Steps to Reproduce

  1. Login via web UI or JSON-RPC
  2. Observe a new file in path /run/ipa/ccaches (ie. selenium@EXAMPLE.COM-zztvgw)

Actual behavior

ccache file is never deleted

Expected behavior

ccache file is deleted after ~24h

Version/Release/Distribution

RHEL 8 derivate with
ipa-server-4.9.8-7
ipa-client-4.9.8-7
389-ds-base-1.4.3.28-7
pki-ca-10.12.0-2
krb5-server-1.18.2-14.el8


Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6430

master:

  • fa85301895ce2fb7b80aea707fb2a419f046d969 Fix ipa-ccache-sweeper activation timer and clean up service file

ipa-4-10:

  • f6a661bdaf0560eac99ca63ffb25ec739281a19a Fix ipa-ccache-sweeper activation timer and clean up service file

ipa-4-9:

  • 358924455d87b67db6cd743f3cfe15522b4c0d91 Fix ipa-ccache-sweeper activation timer and clean up service file

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata