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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Customize MaxRecurringJobRetain #5713

Closed
c3y1huang opened this issue Apr 6, 2023 · 4 comments
Closed

[FEATURE] Customize MaxRecurringJobRetain #5713

c3y1huang opened this issue Apr 6, 2023 · 4 comments
Assignees
Labels
area/setting Global setting or volume setting component/longhorn-manager Longhorn manager (control plane) kind/feature Feature request, new feature
Milestone

Comments

@c3y1huang
Copy link
Contributor

Is your feature request related to a problem? Please describe (馃憤 if you like this request)

Hardcoding the MaxRecurringJobRetain may be inadequate in some cases.

Describe the solution you'd like

Introduce a setting or field to allow customizing the max retaining number.

Describe alternatives you've considered

None

Additional context

longhorn/longhorn-manager#1827

@c3y1huang c3y1huang added the kind/feature Feature request, new feature label Apr 6, 2023
@innobead innobead added this to the v1.5.0 milestone Apr 7, 2023
@innobead innobead added the area/setting Global setting or volume setting label Apr 7, 2023
@innobead innobead added the component/longhorn-manager Longhorn manager (control plane) label Apr 7, 2023
@innobead
Copy link
Member

innobead commented Apr 7, 2023

@mantissahz
Copy link
Contributor

mantissahz commented Aug 24, 2023

Updates:

  1. When the number of snapshots for a volume is up to 250, the recurring job pod will still try to create a new snapshot but it would be blocked about 30 minutes and then fail, and after retrying 3 times, the job status would show it failed.
  2. Keeping snapshots of backups might need to be concerned.
  3. Snapshot space management [FEATURE] Longhorn snapshot space management聽#6563

@longhorn-io-github-bot
Copy link

longhorn-io-github-bot commented Dec 18, 2023

Pre Ready-For-Testing Checklist

  • Where is the reproduce steps/test steps documented?
    The reproduce steps/test steps are at:
  1. Setup a Longhorn system
  2. Set the global setting recurring-job-max-retain to 10
  3. Create a recurring job with the retain number 15 and it will fail.
  4. Create a recurring job with the retain number 8 and it will succeed.
  5. Set the global setting recurring-job-max-retain to 251 and it will fail.
  • Is there a workaround for the issue? If so, where is it documented?
    The workaround is at:

  • Does the PR include the explanation for the fix or the feature?

  • Does the PR include deployment change (YAML/Chart)? If so, where are the PRs for both YAML file and Chart?
    The PR for the YAML change is at:
    The PR for the chart change is at:

  • Have the backend code been merged (Manager, Engine, Instance Manager, BackupStore etc) (including backport-needed/*)?
    The PR is at
    feat: customize MaxRecurringJobRetain聽longhorn-manager#2379

  • Which areas/issues this PR might have potential impacts on?
    Area
    Issues

  • If labeled: require/LEP Has the Longhorn Enhancement Proposal PR submitted?
    The LEP PR is at
    feat(lep): customize maximum recurring job retain聽#6556

  • If labeled: area/ui Has the UI issue filed or ready to be merged (including backport-needed/*)?
    The UI issue/PR is at

  • If labeled: require/doc Has the necessary document PR submitted or merged (including backport-needed/*)?
    The documentation issue/PR is at

  • If labeled: require/automation-e2e Has the end-to-end test plan been merged? Have QAs agreed on the automation test case? If only test case skeleton w/o implementation, have you created an implementation issue (including backport-needed/*)
    The automation skeleton PR is at
    The automation test case PR is at
    The issue of automation test case implementation is at (please create by the template)

  • If labeled: require/automation-engine Has the engine integration test been merged (including backport-needed/*)?
    The engine automation PR is at

  • If labeled: require/manual-test-plan Has the manual test plan been documented?
    The updated manual test plan is at

  • If the fix introduces the code for backward compatibility Has a separate issue been filed with the label release/obsolete-compatibility?
    The compatibility issue is filed at

@innobead innobead changed the title [FEATURE] customize MaxRecurringJobRetain [FEATURE] Customize MaxRecurringJobRetain Dec 20, 2023
@chriscchien
Copy link
Contributor

Verified pass on longhorn master(longhorn-manager 88d986) with test steps

  1. set setting recurring-job-max-retention to 10 and create recurring job with the retain number 15 failed
failed to create recurring job c-ru27cr: admission webhook "validator.longhorn.io" denied the request: retain value should be less than or equal to 10
  1. set setting recurring-job-max-retention to 251 failed
failed to set the setting recurring-job-max-retention with invalid value 251: value 251 of settings recurring-job-max-retention is invalid: the value 251 should be between 1 and 250
  1. Create recurring job with the retain number 8, the recurring job worked well.
  2. test_recurring_job.py worked well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setting Global setting or volume setting component/longhorn-manager Longhorn manager (control plane) kind/feature Feature request, new feature
Projects
None yet
Development

No branches or pull requests

5 participants