Skip to content

Introduce configurable timeout to Create NAS backup#12964

Open
abh1sar wants to merge 2 commits intoapache:4.22from
shapeblue:backup-timeout
Open

Introduce configurable timeout to Create NAS backup#12964
abh1sar wants to merge 2 commits intoapache:4.22from
shapeblue:backup-timeout

Conversation

@abh1sar
Copy link
Copy Markdown
Contributor

@abh1sar abh1sar commented Apr 6, 2026

Description

Create backup used to take the default cmds.timeout (7200s) in agent.properties as the timeout.
This might not be enough for large images and slow networks.
Adding a configurable timeout for create backup.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  1. Decreased timeout to 10s
  2. Backup failed
  3. Increased timeout to 300
  4. Backup was taken successfully

How did you try to break this feature and the system with this change?

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.70%. Comparing base (59b6c32) to head (30fe99a).
⚠️ Report is 3 commits behind head on 4.22.

❗ There is a different number of reports uploaded between BASE (59b6c32) and HEAD (30fe99a). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (59b6c32) HEAD (30fe99a)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               4.22   #12964       +/-   ##
=============================================
- Coverage     17.60%    3.70%   -13.91%     
=============================================
  Files          5918      448     -5470     
  Lines        531667    38042   -493625     
  Branches      65001     7038    -57963     
=============================================
- Hits          93617     1409    -92208     
+ Misses       427491    36446   -391045     
+ Partials      10559      187    -10372     
Flag Coverage Δ
uitests 3.70% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@abh1sar
Copy link
Copy Markdown
Contributor Author

abh1sar commented Apr 6, 2026

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@abh1sar a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@@ -211,6 +212,7 @@ public Pair<Boolean, Backup> takeBackup(final VirtualMachine vm, Boolean quiesce
command.setBackupRepoAddress(backupRepository.getAddress());
command.setMountOptions(backupRepository.getMountOptions());
command.setQuiesce(quiesceVM);
command.setTimeout(NASBackupCreateBackupTimeout.value());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abh1sar can this be addressed with the value 'TakeBackupCommand=14400' in commands.timeout global config? if so, we can document it and skip this new timeout config?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sureshanaparti . I'll test with commands.timeout and update

@abh1sar abh1sar changed the base branch from main to 4.22 April 6, 2026 12:57
@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants