Skip to content

Log4j2 refactor cloud engine orchestration module#8742

Merged
DaanHoogland merged 9 commits intoapache:mainfrom
scclouds:log4j2-refactor-cloud-engine-orchestration-module
Apr 24, 2024
Merged

Log4j2 refactor cloud engine orchestration module#8742
DaanHoogland merged 9 commits intoapache:mainfrom
scclouds:log4j2-refactor-cloud-engine-orchestration-module

Conversation

@KlausDornsbach
Copy link
Copy Markdown
Contributor

Description

With the new version of Log4j there is some space for improving log readability using the new features. This PR refactors the logs from the cloud-orchestration module.

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

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

I have done some operations on cloudstack to induce the generation of the logs
No problems or changes to the log output were found

@KlausDornsbach KlausDornsbach marked this pull request as ready for review March 4, 2024 15:27
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 27.91328% with 266 lines in your changes are missing coverage. Please review.

Project coverage is 30.80%. Comparing base (6dc3d06) to head (f323822).
Report is 1 commits behind head on main.

Files Patch % Lines
...cloud/agent/manager/ClusteredAgentManagerImpl.java 7.89% 105 Missing ⚠️
...java/com/cloud/agent/manager/AgentManagerImpl.java 21.34% 70 Missing ⚠️
...stack/engine/orchestration/VolumeOrchestrator.java 30.35% 39 Missing ⚠️
...ain/java/com/cloud/agent/manager/AgentAttache.java 31.81% 14 Missing and 1 partial ⚠️
...va/com/cloud/agent/manager/DirectAgentAttache.java 47.61% 11 Missing ⚠️
...com/cloud/agent/manager/ClusteredAgentAttache.java 0.00% 9 Missing ⚠️
...tack/engine/orchestration/NetworkOrchestrator.java 83.33% 5 Missing ⚠️
...ack/engine/orchestration/DataMigrationUtility.java 0.00% 3 Missing ⚠️
...tack/engine/orchestration/StorageOrchestrator.java 0.00% 3 Missing ⚠️
...a/com/cloud/agent/manager/SynchronousListener.java 33.33% 1 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8742      +/-   ##
============================================
+ Coverage     30.69%   30.80%   +0.11%     
- Complexity    33463    33528      +65     
============================================
  Files          5397     5397              
  Lines        379397   379186     -211     
  Branches      55363    55175     -188     
============================================
+ Hits         116442   116825     +383     
+ Misses       247437   246935     -502     
+ Partials      15518    15426      -92     
Flag Coverage Δ
simulator-marvin-tests 24.27% <27.37%> (+0.07%) ⬆️
uitests 4.34% <ø> (ø)
unit-tests 16.89% <1.08%> (+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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 8, 2024

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

@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.

@JoaoJandre JoaoJandre self-requested a review March 20, 2024 12:50
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 27.91328% with 266 lines in your changes are missing coverage. Please review.

Project coverage is 30.80%. Comparing base (a5508ac) to head (f323822).
Report is 585 commits behind head on main.

❗ Current head f323822 differs from pull request most recent head 2e2ec00. Consider uploading reports for the commit 2e2ec00 to get more accurate results

Files Patch % Lines
...cloud/agent/manager/ClusteredAgentManagerImpl.java 7.89% 105 Missing ⚠️
...java/com/cloud/agent/manager/AgentManagerImpl.java 21.34% 70 Missing ⚠️
...stack/engine/orchestration/VolumeOrchestrator.java 30.35% 39 Missing ⚠️
...ain/java/com/cloud/agent/manager/AgentAttache.java 31.81% 14 Missing and 1 partial ⚠️
...va/com/cloud/agent/manager/DirectAgentAttache.java 47.61% 11 Missing ⚠️
...com/cloud/agent/manager/ClusteredAgentAttache.java 0.00% 9 Missing ⚠️
...tack/engine/orchestration/NetworkOrchestrator.java 83.33% 5 Missing ⚠️
...ack/engine/orchestration/DataMigrationUtility.java 0.00% 3 Missing ⚠️
...tack/engine/orchestration/StorageOrchestrator.java 0.00% 3 Missing ⚠️
...a/com/cloud/agent/manager/SynchronousListener.java 33.33% 1 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@              Coverage Diff              @@
##               main    #8742       +/-   ##
=============================================
+ Coverage     13.17%   30.80%   +17.63%     
- Complexity     9214    33528    +24314     
=============================================
  Files          2725     5397     +2672     
  Lines        258235   379186   +120951     
  Branches      40249    55175    +14926     
=============================================
+ Hits          34013   116825    +82812     
- Misses       219913   246935    +27022     
- Partials       4309    15426    +11117     
Flag Coverage Δ
simulator-marvin-tests 24.27% <27.37%> (?)
uitests 4.34% <ø> (?)
unit-tests 16.89% <1.08%> (?)

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.

Comment thread engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java Outdated
Comment thread engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java Outdated
Comment thread engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java Outdated
Copy link
Copy Markdown
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

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

CLGTM, hope I didn't miss anything 😅

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@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.

@DaanHoogland
Copy link
Copy Markdown
Contributor

CLGTM, hope I didn't miss anything 😅

that you'll have to test ;)

the build fails @KlausDornsbach in engine according to https://github.com/apache/cloudstack/actions/runs/8757275560/job/24037204263?pr=8742#step:7:17606 , afraid you'll have to take another look :(

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@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.

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland 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-9971)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 51722 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8742-t9971-kvm-centos7.zip
Smoke tests completed. 127 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_events_resource Error 302.27 test_events_resource.py
test_01_events_resource Error 302.29 test_events_resource.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 90.14 test_network_permissions.py
ContextSuite context=TestNetworkPermissions>:teardown Error 1.38 test_network_permissions.py

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 and smoke tests pass

@DaanHoogland DaanHoogland merged commit e330d76 into apache:main Apr 24, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
@DaanHoogland DaanHoogland added this to the 4.20.0.0 milestone May 7, 2024
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.

5 participants