Skip to content

[Veeam] Don't interrupt backup syncronization - #7225

Merged
shwstppr merged 7 commits into
apache:mainfrom
scclouds:veeam-dont-interrupt-backup-sincronization
Oct 5, 2023
Merged

[Veeam] Don't interrupt backup syncronization#7225
shwstppr merged 7 commits into
apache:mainfrom
scclouds:veeam-dont-interrupt-backup-sincronization

Conversation

@SadiJr

@SadiJr SadiJr commented Feb 14, 2023

Copy link
Copy Markdown
Contributor

Description

When ACS  is synchronizing the Veeam backups, if one backup fails in this process, all the other backups are skipped and ignored. This behavior is fixed by this PR; if one backup fails in syncronization, only this backup is skipped, and the others continue the process.

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)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

It was tested in a local lab:

  1. I created two VMs, added these VMs to one backup offering, and made two manual backups;
  2. I renamed the backup in Veeam of one of then;
  3. Before, ACS failed in the syncronization process because the first backup failed to syncronize;
  4. Now, the ACS doesn't interrupt the synchronization process of the rest of the backups.

@codecov

codecov Bot commented Feb 14, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7225 (e344588) into main (45616aa) will increase coverage by 0.11%.
Report is 8 commits behind head on main.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main    #7225      +/-   ##
============================================
+ Coverage     29.16%   29.28%   +0.11%     
- Complexity    30377    30516     +139     
============================================
  Files          5100     5100              
  Lines        358273   359113     +840     
  Branches      52304    52593     +289     
============================================
+ Hits         104496   105161     +665     
- Misses       239406   239540     +134     
- Partials      14371    14412      +41     
Flag Coverage Δ
simulator-marvin-tests 25.34% <0.00%> (+0.14%) ⬆️
uitests 4.87% <ø> (ø)
unit-tests 14.42% <0.00%> (+0.01%) ⬆️

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

Files Changed Coverage Δ
...rg/apache/cloudstack/backup/BackupManagerImpl.java 39.08% <0.00%> (-0.33%) ⬇️

... and 39 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment thread server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java Outdated
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@apache apache deleted a comment from blueorangutan May 23, 2023
@apache apache deleted a comment from blueorangutan May 23, 2023
@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] 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
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6118

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test rocky8 vmware-70u2

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u2) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-6569)

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6571)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 26891 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7225-t6571-vmware-70u3.zip
Smoke tests completed. 86 look OK, 0 have errors, 24 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
all_test_safe_shutdown Skipped --- test_safe_shutdown.py
all_test_metrics_api Skipped --- test_metrics_api.py
all_test_outofbandmanagement Skipped --- test_outofbandmanagement.py
all_test_outofbandmanagement_nestedplugin Skipped --- test_outofbandmanagement_nestedplugin.py
all_test_routers_iptables_default_policy Skipped --- test_routers_iptables_default_policy.py
all_test_secondary_storage Skipped --- test_secondary_storage.py
all_test_service_offerings Skipped --- test_service_offerings.py
all_test_storage_policy Skipped --- test_storage_policy.py
all_test_templates Skipped --- test_templates.py
all_test_update_security_group Skipped --- test_update_security_group.py
all_test_usage_events Skipped --- test_usage_events.py
all_test_vm_autoscaling Skipped --- test_vm_autoscaling.py
all_test_vm_deployment_planner Skipped --- test_vm_deployment_planner.py
all_test_vm_life_cycle Skipped --- test_vm_life_cycle.py
all_test_vm_lifecycle_unmanage_import Skipped --- test_vm_lifecycle_unmanage_import.py
all_test_vm_snapshot_kvm Skipped --- test_vm_snapshot_kvm.py
all_test_vm_snapshots Skipped --- test_vm_snapshots.py
all_test_volumes Skipped --- test_volumes.py
all_test_vpc_ipv6 Skipped --- test_vpc_ipv6.py
all_test_vpc_redundant Skipped --- test_vpc_redundant.py
all_test_vpc_router_nics Skipped --- test_vpc_router_nics.py
all_test_vpc_vpn Skipped --- test_vpc_vpn.py
all_test_host_maintenance Skipped --- test_host_maintenance.py
all_test_hostha_kvm Skipped --- test_hostha_kvm.py

@DaanHoogland DaanHoogland added this to the 4.19.0.0 milestone Jun 22, 2023

@harikrishna-patnala harikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code LGTM

@DaanHoogland DaanHoogland left a comment

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.

clgtm, will trust the users to approve with testing

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@GutoVeronezi

Copy link
Copy Markdown
Contributor

@blueorangutan package

@DaanHoogland @harikrishna-patnala could we run another round of tests? Seems that we had a problem with blueorangutan in the last run.

@blueorangutan

Copy link
Copy Markdown

@GutoVeronezi a [SF] Jenkins job has been kicked to build packages. It will be bundled with@DaanHoogland @harikrishna-patnala could we run another round of tests? Seems that we had a problem with blueorangutan in the last run. SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-7520)

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@SadiJr

SadiJr commented Sep 11, 2023

Copy link
Copy Markdown
Contributor Author

@DaanHoogland @harikrishna-patnala @GutoVeronezi could we run another round of tests? Seems that we had a problem with blueorangutan in the last run.

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] 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
Copy Markdown

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

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7671)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 81177 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7225-t7671-vmware-70u3.zip
Smoke tests completed. 109 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_02_list_cpvm_vm Failure 0.04 test_ssvm.py
test_04_cpvm_internals Failure 0.04 test_ssvm.py
test_02_upgrade_kubernetes_cluster Failure 610.95 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 714.53 test_kubernetes_clusters.py
test_list_vms_metrics_admin Error 3622.54 test_metrics_api.py
test_list_vms_metrics_history Error 7.96 test_metrics_api.py
test_list_volumes_metrics_history Error 3624.53 test_metrics_api.py
test_01_deploy_vm_on_specific_host Error 4.39 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 12.55 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 3603.97 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 4.46 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 12.63 test_vm_deployment_planner.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

insanity:
@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7690)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 49462 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7225-t7690-vmware-70u3.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@shwstppr

shwstppr commented Oct 5, 2023

Copy link
Copy Markdown
Contributor

Merging based on reviews and smoke test results

@shwstppr
shwstppr merged commit 4c59dea into apache:main Oct 5, 2023
@SadiJr
SadiJr deleted the veeam-dont-interrupt-backup-sincronization branch October 10, 2023 19:03
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.

7 participants