address warnings in capacity manager
Description
This PR cleans the CapacityManagerImpl class from compiler warning ...
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)
- [x] 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
- [x] Minor
Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [X] Trivial
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?
regression testing only
Codecov Report
:x: Patch coverage is 6.25000% with 30 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 17.49%. Comparing base (f06ac51) to head (bd7bc6a).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...n/java/com/cloud/capacity/CapacityManagerImpl.java | 6.25% | 30 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #11971 +/- ##
=========================================
Coverage 17.48% 17.49%
- Complexity 15552 15555 +3
=========================================
Files 5913 5913
Lines 529650 529585 -65
Branches 64716 64707 -9
=========================================
+ Hits 92629 92635 +6
+ Misses 426576 426504 -72
- Partials 10445 10446 +1
| Flag | Coverage Δ | |
|---|---|---|
| uitests | 3.58% <ø> (ø) |
|
| unittests | 18.55% <6.25%> (+<0.01%) |
:arrow_up: |
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.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@blueorangutan package
@DaanHoogland 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.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15951
@blueorangutan test
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests
[SF] Trillian test result (tid-14943) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 62313 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11971-t14943-kvm-ol8.zip Smoke tests completed. 138 look OK, 12 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 | Failure |
112.02 | test_internal_lb.py |
| test_04_rvpc_internallb_haproxy_stats_on_all_interfaces | Failure |
203.26 | test_internal_lb.py |
| test_uservm_host_control_state | Failure |
16.84 | test_host_control_state.py |
| ContextSuite context=TestHostControlState>:teardown | Error |
28.44 | test_host_control_state.py |
| test_03_deploy_and_scale_kubernetes_cluster | Failure |
45.38 | test_kubernetes_clusters.py |
| test_08_upgrade_kubernetes_ha_cluster | Failure |
136.69 | test_kubernetes_clusters.py |
| test_10_vpc_tier_kubernetes_cluster | Error |
65.08 | test_kubernetes_clusters.py |
| test_12_test_deploy_cluster_different_offerings_per_node_type | Failure |
111.46 | test_kubernetes_clusters.py |
| test_02_native_to_native_vpc_migration | Error |
58.33 | test_migration.py |
| test_01_non_strict_host_anti_affinity | Failure |
91.75 | test_nonstrict_affinity_group.py |
| test_02_non_strict_host_affinity | Error |
33.98 | test_nonstrict_affinity_group.py |
| test_02_L2_persistent_network | Failure |
1.89 | test_persistent_network.py |
| test_03_deploy_and_destroy_VM_and_verify_network_resources_persist | Failure |
21.89 | test_persistent_network.py |
| test_01_vpc_privategw_acl | Failure |
53.55 | test_privategw_acl.py |
| test_02_vpc_privategw_static_routes | Failure |
105.87 | test_privategw_acl.py |
| test_03_vpc_privategw_restart_vpc_cleanup | Error |
401.81 | test_privategw_acl.py |
| test_04_rvpc_privategw_static_routes | Failure |
142.23 | test_privategw_acl.py |
| test_01_single_VPC_iptables_policies | Error |
53.72 | test_routers_iptables_default_policy.py |
| test_03_create_vpc_with_specified_source_nat_ip_address | Error |
49.37 | test_set_sourcenat.py |
| test_01_vpn_usage | Error |
1.10 | test_usage.py |
| test_04_nonsecured_to_secured_vm_migration | Error |
366.19 | test_vm_life_cycle.py |
| test_hostha_enable_ha_when_host_disabled | Error |
1.92 | test_hostha_kvm.py |
| test_hostha_enable_ha_when_host_in_maintenance | Error |
307.08 | test_hostha_kvm.py |
@blueorangutan package
@DaanHoogland 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.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15980
[SF] Trillian test result (tid-14965) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 52007 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11971-t14965-kvm-ol8.zip Smoke tests completed. 146 look OK, 4 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_replace_acl_of_network | Error |
1.47 | test_global_acls.py |
| test_01_host_tags | Failure |
6.30 | test_host_tags.py |
| test_updating_nics_on_two_shared_networks | Error |
1.41 | test_gateway_on_shared_networks.py |
| ContextSuite context=TestGatewayOnSharedNetwork>:teardown | Error |
3.57 | test_gateway_on_shared_networks.py |
| test_02_unsecure_vm_migration | Error |
409.14 | test_vm_life_cycle.py |
| test_02_unsecure_vm_migration | Error |
409.14 | test_vm_life_cycle.py |
| test_03_secured_to_nonsecured_vm_migration | Error |
0.01 | test_vm_life_cycle.py |
| test_04_nonsecured_to_secured_vm_migration | Error |
0.01 | test_vm_life_cycle.py |
[SF] Trillian test result (tid-14974) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 48837 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11971-t14974-kvm-ol8.zip Smoke tests completed. 142 look OK, 8 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_DeployVmAntiAffinityGroup_in_project | Error |
64.31 | test_affinity_groups_projects.py |
| test_DeployVmAntiAffinityGroup | Error |
8.79 | test_affinity_groups.py |
| test_updating_nics_on_two_shared_networks | Error |
1.67 | test_gateway_on_shared_networks.py |
| ContextSuite context=TestGatewayOnSharedNetwork>:teardown | Error |
3.89 | test_gateway_on_shared_networks.py |
| ContextSuite context=TestImportAndUnmanageVolumes>:setup | Error |
0.00 | test_import_unmanage_volumes.py |
| test_03_deploy_and_scale_kubernetes_cluster | Failure |
34.08 | test_kubernetes_clusters.py |
| test_08_upgrade_kubernetes_ha_cluster | Failure |
0.10 | test_kubernetes_clusters.py |
| test_12_test_deploy_cluster_different_offerings_per_node_type | Failure |
67.80 | test_kubernetes_clusters.py |
| test_01_non_strict_host_anti_affinity | Failure |
67.84 | test_nonstrict_affinity_group.py |
| test_02_non_strict_host_affinity | Error |
23.56 | test_nonstrict_affinity_group.py |
| ContextSuite context=TestMigrateVMStrictTags>:setup | Error |
0.00 | test_vm_strict_host_tags.py |
| test_hostha_enable_ha_when_host_in_maintenance | Error |
302.92 | test_hostha_kvm.py |
[SF] Trillian test result (tid-14982) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 54839 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11971-t14982-kvm-ol8.zip Smoke tests completed. 142 look OK, 8 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_DeployVmAntiAffinityGroup_in_project | Error |
73.53 | test_affinity_groups_projects.py |
| test_DeployVmAntiAffinityGroup | Error |
13.90 | test_affinity_groups.py |
| test_replace_acl_of_network | Error |
57.00 | test_global_acls.py |
| ContextSuite context=TestClusterDRS>:setup | Error |
0.00 | test_cluster_drs.py |
| test_03_create_vpc_domain_vpc_offering | Error |
161.66 | test_domain_vpc_offerings.py |
| test_updating_nics_on_two_shared_networks | Error |
1.71 | test_gateway_on_shared_networks.py |
| ContextSuite context=TestGatewayOnSharedNetwork>:teardown | Error |
3.92 | test_gateway_on_shared_networks.py |
| test_01_secure_vm_migration | Error |
133.15 | test_vm_life_cycle.py |
| test_01_secure_vm_migration | Error |
133.16 | test_vm_life_cycle.py |
| test_hostha_enable_ha_when_host_disabled | Error |
5.84 | test_hostha_kvm.py |
| test_hostha_enable_ha_when_host_in_maintenance | Error |
306.07 | test_hostha_kvm.py |
@blueorangutan package
@DaanHoogland 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.
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16054
[SF] Trillian test result (tid-15000) Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8 Total time taken: 52245 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11971-t15000-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.70 | test_kubernetes_clusters.py |
