Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Automatically cleanup systems which did not contact RMT since n days #929

Open
felixsch opened this issue Sep 13, 2022 · 3 comments
Labels
enhancement Usability improvements or new feature requests.

Comments

@felixsch
Copy link
Contributor

Currently RMT does not cleanup any systems. Therefore manual interaction is required to cleanup systems, which can be really hard depending on the use case.

Idea: Implement a logic which removes all systems from RMT which did not contact in n days. This is possible now, since 'SUSEConnect' and SUSEConnect-ng do send a keepalive if they are active (and not disabled).

By default this feature should be disabled and only be explicitly enabled via /etc/rmt.conf.

@felixsch felixsch added the enhancement Usability improvements or new feature requests. label Sep 13, 2022
@rjschwei
Copy link
Member

AS a note, on systems that have many registrations such a feature may lead the system to run out of memory, depending on the implementation of course.

At present the implementation via the command line, i.e. rmt-cli systems purge -b .... appears to collect the systems to be removed, at least when one does not run with --no-confirm and that list of collected systems eventually kills the the system as it runs out of memory. Any implementation should remove the system when it is found rather than collecting data in memory.

@digitaltom digitaltom changed the title Feature: Cleanup systems which did not contact RMT after n days Feature: Cleanup systems which did not contact RMT since n days Nov 14, 2022
@ngetahun
Copy link
Contributor

@digitaltom @felixsch What is the status of this issue? I believe the feature has been implemented in rmt.

@digitaltom
Copy link
Member

I think Felix means something like a daily running job, that cleans up outdated systems constantly. I don't think we have this yet. Maybe let's adapt the title to make this more clear?

@felixsch felixsch changed the title Feature: Cleanup systems which did not contact RMT since n days Feature: Automatically cleanup systems which did not contact RMT since n days Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Usability improvements or new feature requests.
Projects
None yet
Development

No branches or pull requests

4 participants