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

Delete records of a VM by date using onedb purge-history #6699

Open
3 tasks
OpenNebulaSupport opened this issue Aug 29, 2024 · 0 comments
Open
3 tasks

Delete records of a VM by date using onedb purge-history #6699

OpenNebulaSupport opened this issue Aug 29, 2024 · 0 comments

Comments

@OpenNebulaSupport
Copy link
Collaborator

Description
Add an option to delete history records of a VM giving a date or date range, so not all records are deleted.

Use case
This will be useful for VMs that have too many history records, but it's interesting to preserve some of them in case the user would want to have just the records for the past year / few months, for instance.

Interface Changes
This should be an additional option when using the --id option. The command could be:

  • onedb purge-history --id <ID> --end TIME. It would delete records from the oldest to the given time
  • onedb purge-history --id <ID> --start TIME --end TIME. It would delete records inside the given range

Additional Context
Related to this issue, where it was requested to purge records of a particular VM (already implemented with the --id option).

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants