Skip to content

API: Fix missing keys in listZonesMetrics response#9419

Merged
yadvr merged 2 commits intoapache:4.19from
shapeblue:fix-zones-metrics-response
Jul 29, 2024
Merged

API: Fix missing keys in listZonesMetrics response#9419
yadvr merged 2 commits intoapache:4.19from
shapeblue:fix-zones-metrics-response

Conversation

@vishesh92
Copy link
Copy Markdown
Member

Description

This PR fixes #9379
Fix missing keys in listZonesMetrics.

We use BeanUtils.copyProperties to copy the properties of ZoneResponse to ZoneMetricsResponse. Fields with missing getters are skipped from the response because of this.

BeanUtils.copyProperties(metricsResponse, zoneResponse);

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

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

@vishesh92
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@vishesh92 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
Copy link
Copy Markdown

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 123 lines in your changes missing coverage. Please review.

Project coverage is 15.07%. Comparing base (3faf7cd) to head (b3a2085).
Report is 2 commits behind head on 4.19.

Files Patch % Lines
...g/apache/cloudstack/api/response/HostResponse.java 0.00% 58 Missing ⚠️
...pache/cloudstack/api/response/ClusterResponse.java 0.00% 25 Missing ⚠️
...g/apache/cloudstack/api/response/ZoneResponse.java 0.00% 15 Missing ⚠️
...e/cloudstack/api/response/StoragePoolResponse.java 0.00% 9 Missing ⚠️
...apache/cloudstack/api/response/VolumeResponse.java 0.00% 6 Missing ⚠️
...udstack/api/response/ManagementServerResponse.java 0.00% 3 Missing ⚠️
...apache/cloudstack/api/response/UserVmResponse.java 0.00% 3 Missing ⚠️
.../java/com/cloud/api/query/dao/HostJoinDaoImpl.java 0.00% 2 Missing ⚠️
...src/main/java/com/cloud/api/ApiResponseHelper.java 0.00% 1 Missing ⚠️
...com/cloud/api/query/dao/DataCenterJoinDaoImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##               4.19    #9419     +/-   ##
===========================================
  Coverage     15.07%   15.07%             
- Complexity    11169    11172      +3     
===========================================
  Files          5405     5405             
  Lines        472677   472776     +99     
  Branches      60822    58920   -1902     
===========================================
+ Hits          71266    71290     +24     
- Misses       393484   393556     +72     
- Partials       7927     7930      +3     
Flag Coverage Δ
uitests 4.27% <ø> (ø)
unittests 15.79% <0.00%> (+<0.01%) ⬆️

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.

@blueorangutan
Copy link
Copy Markdown

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

@vishesh92 vishesh92 force-pushed the fix-zones-metrics-response branch from 8a93977 to b211c17 Compare July 19, 2024 10:56
@yadvr yadvr added this to the 4.19.2.0 milestone Jul 19, 2024
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jul 19, 2024

@vishesh92 LGTM didn't test it, can you raise this for 4.19 branch?

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@github-actions
Copy link
Copy Markdown

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

@vishesh92 vishesh92 force-pushed the fix-zones-metrics-response branch from b211c17 to 1cc2854 Compare July 19, 2024 12:02
@vishesh92
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@vishesh92 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
Copy Markdown

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

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Jul 22, 2024

@vishesh92 also worth checking for list APIs & list metrics APIs for cluster and host? (and may VM and volumes)?

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-10930)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 54045 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9419-t10930-kvm-centos7.zip
Smoke tests completed. 130 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_04_nonsecured_to_secured_vm_migration Error 427.38 test_vm_life_cycle.py
test_05_rvpc_multi_tiers Failure 509.72 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 509.74 test_vpc_redundant.py

@vishesh92
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@vishesh92 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
Copy Markdown

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

@vishesh92
Copy link
Copy Markdown
Member Author

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_01_secure_vm_migration Error 134.40 test_vm_life_cycle.py
test_01_secure_vm_migration Error 134.40 test_vm_life_cycle.py

Copy link
Copy Markdown
Member

@yadvr yadvr left a comment

Choose a reason for hiding this comment

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

LGTM, the changes are only (a) getters, (b) typo fixes and (c) Boolean -> boolean

@yadvr yadvr merged commit f0ba905 into apache:4.19 Jul 29, 2024
@yadvr yadvr deleted the fix-zones-metrics-response branch July 29, 2024 05:24
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Aug 22, 2024
This PR fixes apache#9379
Fix missing keys in listZonesMetrics.

We use BeanUtils.copyProperties to copy the properties of ZoneResponse to ZoneMetricsResponse. Fields with missing getters are skipped from the response because of this.
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.

Zone UI view does not show SG & local storage details

4 participants