Skip to content

Don't allow assign VM to backup offering for VM with encrypted volumes#13229

Open
sureshanaparti wants to merge 1 commit into
apache:4.22from
shapeblue:dont-allow-assign-backup-offering-for-vm-with-encrypted-volumes
Open

Don't allow assign VM to backup offering for VM with encrypted volumes#13229
sureshanaparti wants to merge 1 commit into
apache:4.22from
shapeblue:dont-allow-assign-backup-offering-for-vm-with-encrypted-volumes

Conversation

@sureshanaparti
Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti commented May 25, 2026

Description

This PR does't allow assign VM to backup offering for VM with encrypted volumes.

Fixes #13197

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?

  • Deploy VM with compute / disk offering with encrypted set to true.
  • Create a backup offering.
  • Assign backup offering to the VM above.

When tried to create backup without a backup offering assigned, it fails with "VM has not backup offering configured, cannot create backup"

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

@sureshanaparti sureshanaparti linked an issue May 25, 2026 that may be closed by this pull request
@sureshanaparti sureshanaparti added this to the 4.22.2 milestone May 25, 2026
@sureshanaparti
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 17.67%. Comparing base (21b2025) to head (3e0894d).

Files with missing lines Patch % Lines
...rg/apache/cloudstack/backup/BackupManagerImpl.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #13229      +/-   ##
============================================
- Coverage     17.67%   17.67%   -0.01%     
+ Complexity    15792    15790       -2     
============================================
  Files          5922     5922              
  Lines        533165   533170       +5     
  Branches      65208    65210       +2     
============================================
- Hits          94242    94223      -19     
- Misses       428276   428301      +25     
+ Partials      10647    10646       -1     
Flag Coverage Δ
uitests 3.69% <ø> (ø)
unittests 18.74% <80.00%> (-0.01%) ⬇️

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.

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

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.

Don't allow NAS backup for vm with encrypted volumes

3 participants