-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Veeam: set backed_volumes for each backup #9898
base: main
Are you sure you want to change the base?
Conversation
@blueorangutan package |
@weizhouapache 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9898 +/- ##
============================================
- Coverage 15.81% 15.80% -0.01%
Complexity 12580 12580
============================================
Files 5627 5627
Lines 492260 492261 +1
Branches 63955 60364 -3591
============================================
- Hits 77832 77825 -7
- Misses 405905 405913 +8
Partials 8523 8523
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
for existing backups without backed_volumes, do you have any idea how to proceed ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually think the actual issue is with the UI also - in case of historic backups where backup volume details is maintained on the vm (not backup):
Where in here, it gets from the backups table alone.
The backend has the logic in place to pick from the backup volumes from the VMs if there's none on the backup -
cloudstack/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
Lines 627 to 629 in 8af08dd
List<Backup.VolumeInfo> backupVolumes = CollectionUtils.isNullOrEmpty(backup.getBackedUpVolumes()) ? | |
vm.getBackupVolumeList() : backup.getBackedUpVolumes(); | |
List<VolumeVO> vmVolumes = volumeDao.findByInstance(vm.getId()); |
OK, that's great ! |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11517 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Backups list volumes.
Restore volume and attach works.
Description
This PR should fix #9897
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?