Skip to content

Conversation

@Pearl1594
Copy link
Contributor

Description

This PR allows dedicating backup offerings to domains to be consistent in behaviour with other offerings

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

Screenshots (if appropriate):

How Has This Been Tested?

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

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 54.72313% with 139 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.79%. Comparing base (eedd329) to head (ce0d334).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rg/apache/cloudstack/backup/BackupManagerImpl.java 63.88% 15 Missing and 11 partials ⚠️
...er/src/main/java/com/cloud/utils/DomainHelper.java 0.00% 19 Missing ⚠️
...e/cloudstack/backup/dao/BackupOfferingDaoImpl.java 0.00% 13 Missing ⚠️
...ver/src/main/java/com/cloud/acl/DomainChecker.java 47.61% 4 Missing and 7 partials ⚠️
.../api/command/offering/DomainAndZoneIdResolver.java 78.72% 0 Missing and 10 partials ⚠️
...c/main/java/com/cloud/user/AccountManagerImpl.java 0.00% 10 Missing ⚠️
.../command/admin/backup/ImportBackupOfferingCmd.java 0.00% 7 Missing ⚠️
...che/cloudstack/backup/BackupOfferingDetailsVO.java 75.00% 6 Missing and 1 partial ⚠️
...loudstack/api/response/BackupOfferingResponse.java 0.00% 6 Missing ⚠️
.../command/admin/backup/UpdateBackupOfferingCmd.java 37.50% 3 Missing and 2 partials ⚠️
... and 9 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12194      +/-   ##
============================================
+ Coverage     17.75%   17.79%   +0.03%     
- Complexity    15855    15910      +55     
============================================
  Files          5923     5927       +4     
  Lines        530536   530658     +122     
  Branches      64826    64835       +9     
============================================
+ Hits          94218    94434     +216     
+ Misses       425774   425652     -122     
- Partials      10544    10572      +28     
Flag Coverage Δ
uitests 3.56% <ø> (-0.01%) ⬇️
unittests 18.88% <54.72%> (+0.03%) ⬆️

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.

@Pearl1594 Pearl1594 closed this Dec 5, 2025
@Pearl1594 Pearl1594 reopened this Dec 5, 2025
@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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.

@blueorangutan
Copy link

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

@Pearl1594
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-14922)

@Pearl1594 Pearl1594 closed this Dec 8, 2025
@blueorangutan
Copy link

[SF] Trillian test result (tid-15019)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 53399 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12194-t15019-kvm-ol8.zip
Smoke tests completed. 149 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_03_deploy_and_scale_kubernetes_cluster Failure 25.80 test_kubernetes_clusters.py

@github-actions
Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@RosiKyu
Copy link
Collaborator

RosiKyu commented Jan 7, 2026

@blueorangutan package

@blueorangutan
Copy link

@RosiKyu 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.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 16288

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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.

@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@Pearl1594 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.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 16289

@blueorangutan
Copy link

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

@RosiKyu
Copy link
Collaborator

RosiKyu commented Jan 7, 2026

@blueorangutan test

@blueorangutan
Copy link

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

@RosiKyu
Copy link
Collaborator

RosiKyu commented Jan 7, 2026

@blueorangutan package

@blueorangutan
Copy link

@RosiKyu 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.

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-15133)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 54467 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12194-t15133-kvm-ol8.zip
Smoke tests completed. 149 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_03_deploy_and_scale_kubernetes_cluster Failure 26.92 test_kubernetes_clusters.py

Copy link
Collaborator

@RosiKyu RosiKyu left a comment

Choose a reason for hiding this comment

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

LGTM

Executed Test Cases (all PASSED):

  1. Import Backup Offering with Single Domain Assignment
  2. Import Backup Offering with Multiple Domain Assignment
  3. Import Backup Offering Without Domain (Public)
  4. Import Backup Offering with Duplicate Domain IDs
  5. Import Backup Offering with Invalid Domain UUID
  6. Update Backup Offering Domain Assignment
  7. Update Backup Offering to Public Using 'public' Keyword
  8. Update Backup Offering with Domain-Only Change
  9. Update Backup Offering with Invalid Domain UUID
  10. Update Backup Offering with Multiple Domains (Comma-Separated)
  11. Backup Offerings as Root Admin
  12. Backup Offerings as Domain User - See Only Allowed Offerings
  13. List Backup Offerings as Domain Admin - See Only Allowed Offering
  14. Response Contains Domain Information
  15. Assign VM to Backup Offering - Allowed Domain
  16. Assign VM to Backup Offering - Denied for Other Domain
  17. Create Backup Schedule - Allowed Domain
  18. Create Backup Schedule - Denied for Other Domain
  19. Adhoc Backup - Denied for Other Domain Offering
  20. Filter Child Subdomains in Domain List
  21. Import Backup Offering with Domain Selector
  22. Domain Assignment Displayed in Backup Offering List
  23. Filter Offerings by User Domain
  24. Root Admin Sees All Offerings
  25. Domain Assignment in Offering Details View
  26. Domain Selector Only Visible to Admins
  27. No Domain Update in Edit Form
  28. Backup Offerings Accessible via Service Offerings Menu
  29. Backward Compatibility - Existing Offerings Remain Public
  30. No Regression - Network Offering Domain Updates
  31. No Regression - Disk Offering Domain Updates
  32. Database Schema Migration
  33. Centralized Access Control Check
  34. No Regression - Compute Offering Domain Updates
  35. No Regression - VPC Offering Domain Updates
  36. No Regression - System Offering Domain Updates
  37. Parity with Other Offering Types
  38. Smoketests
  39. Upgrade from previous released version
  40. PR Mergable
  41. Cloudstack Style
  42. Code coverage criteria

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.

4 participants