cloudstack
cloudstack copied to clipboard
[Veeam] disable jobs but keep backups
Description
Using the VMWare hypervisor, with the Veeam plugin active, it is not possible to remove the VM from its Backup Offering without removing its backups. To resolve this limitation, a new parameter has been added to the removeVirtualMachineFromBackupOffering API to allow users to disable the job but keep Veeam backups. So, when removing a VM from a Backup Offering, it is possible to pass the forced parameter to true, which will remove the job and the backups. Otherwise, the job will just be disabled and the backups will be kept.
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)
- [x] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
- [ ] Major
- [x] Minor
How Has This Been Tested?
It was tested in a local lab:
- I created a new VM and attached this VM to a Backup Offering;
- I make some manual backups;
- I removed this VM from the backup offering, without using the
forceoption as false, and checked if, in Veeam, the job was still there, in the disabled state, and if the backups were still stored too; - I repeat this process, but using true in
forceoption and check if the backups and job are deleted in Veeam.
Found UI changes, kicking a new UI QA build @blueorangutan ui
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.
UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6589 (SL-JID-2033)
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
Found UI changes, kicking a new UI QA build @blueorangutan ui
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.
UI build: :heavy_check_mark: Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6589 (SL-JID-2068)
@blueorangutan package
@DaanHoogland a 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.
Packaging result: :heavy_multiplication_x: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 3904
Packaging result: :heavy_multiplication_x: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 3908
Packaging result: :heavy_multiplication_x: el7 :heavy_check_mark: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 3914
Packaging result: :heavy_multiplication_x: el7 :heavy_multiplication_x: el8 :heavy_multiplication_x: debian :heavy_check_mark: suse15. SL-JID 3918
Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3937
@blueorangutan test matrix
@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests
Trillian test result (tid-4642) Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7 Total time taken: 36946 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6589-t4642-xenserver-71.zip Smoke tests completed. 101 look OK, 0 have errors Only failed tests results shown below:
| Test | Result | Time (s) | Test File |
|---|
Trillian test result (tid-4643) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 40253 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6589-t4643-kvm-centos7.zip Smoke tests completed. 100 look OK, 1 have errors Only failed tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_08_upgrade_kubernetes_ha_cluster | Failure |
631.70 | test_kubernetes_clusters.py |
Trillian test result (tid-4644) Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7 Total time taken: 44490 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6589-t4644-vmware-65u2.zip Smoke tests completed. 100 look OK, 1 have errors Only failed tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_01_unmanage_vm_cycle | Error |
46.26 | test_vm_lifecycle_unmanage_import.py |
@blueorangutan test centos7 vmware-65u2
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests
Trillian Build Failed (tid-4664)
Trillian Build Failed (tid-4665)
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
Trillian test result (tid-4669) Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7 Total time taken: 42303 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6589-t4669-vmware-65u2.zip Smoke tests completed. 99 look OK, 2 have errors Only failed tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_08_upgrade_kubernetes_ha_cluster | Failure |
607.06 | test_kubernetes_clusters.py |
| test_01_unmanage_vm_cycle | Error |
46.38 | test_vm_lifecycle_unmanage_import.py |
Codecov Report
Attention: Patch coverage is 40.55944% with 85 lines in your changes are missing coverage. Please review.
Project coverage is 23.23%. Comparing base (
e44c17e) to head (8de0ba0).
Additional details and impacted files
@@ Coverage Diff @@
## main #6589 +/- ##
============================================
- Coverage 30.93% 23.23% -7.70%
+ Complexity 33753 23599 -10154
============================================
Files 5404 5234 -170
Lines 380309 355809 -24500
Branches 55507 51239 -4268
============================================
- Hits 117658 82686 -34972
- Misses 247041 261163 +14122
+ Partials 15610 11960 -3650
| Flag | Coverage Δ | |
|---|---|---|
| simulator-marvin-tests | 24.91% <40.55%> (+0.36%) |
:arrow_up: |
| uitests | 4.34% <ø> (ø) |
|
| unit-tests | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.
@SadiJr can you look at the comments and the conflicts?
@SadiJr will you address the comments as well?