cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Add logs for storage pools reordering

Open julien-vaz opened this issue 9 months ago • 16 comments

Description

Since the storage pool reordering process was lacking logs for troubleshooting, some debug level log messages were added and trace level log messages were changed to the debug level. Also, the log messages were rewritten according to the new Log4j2 syntax.

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)
  • [ ] build/CI
  • [ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [x] Minor

How Has This Been Tested?

  1. A volume was created;
  2. Its disk offering was changed;
  3. It was verified that the log messages were properly being displayed.

julien-vaz avatar Feb 18 '25 14:02 julien-vaz

Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) Here are some useful points:

  • In case of a new feature add useful documentation (raise doc PR at https://github.com/apache/cloudstack-documentation)
  • Be patient and persistent. It might take some time to get a review or get the final approval from the committers.
  • Pay attention to the quality of your code, ensure tests are passing and your PR doesn't have conflicts.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Issues, Mailing list and Slack.
  • Be sure to read the CloudStack Coding Conventions. Apache CloudStack is a community-driven project and together we are making it better 🚀. In case of doubts contact the developers at: Mailing List: [email protected] (https://cloudstack.apache.org/mailing-lists.html) Slack: https://apachecloudstack.slack.com/

boring-cyborg[bot] avatar Feb 18 '25 14:02 boring-cyborg[bot]

Codecov Report

:x: Patch coverage is 20.00000% with 24 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 16.57%. Comparing base (fa85a75) to head (b69581a). :warning: Report is 332 commits behind head on main.

Files with missing lines Patch % Lines
...torage/allocator/AbstractStoragePoolAllocator.java 20.00% 24 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10419      +/-   ##
============================================
- Coverage     16.58%   16.57%   -0.01%     
- Complexity    13870    13987     +117     
============================================
  Files          5719     5745      +26     
  Lines        507194   510845    +3651     
  Branches      61573    62136     +563     
============================================
+ Hits          84093    84697     +604     
- Misses       413681   416676    +2995     
- Partials       9420     9472      +52     
Flag Coverage Δ
uitests 3.91% <ø> (-0.06%) :arrow_down:
unittests 17.47% <20.00%> (+0.02%) :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.

codecov[bot] avatar Feb 18 '25 15:02 codecov[bot]

Alright, I've just changed the level of logs on reordering methods, @DaanHoogland

julien-vaz avatar Mar 05 '25 16:03 julien-vaz

@blueorangutan package

julien-vaz avatar Mar 06 '25 17:03 julien-vaz

@julien-vaz 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 avatar Mar 06 '25 17:03 blueorangutan

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

blueorangutan avatar Mar 06 '25 18:03 blueorangutan

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

github-actions[bot] avatar May 16 '25 16:05 github-actions[bot]

@julien-vaz could you fix the conflicts?

JoaoJandre avatar Jun 02 '25 20:06 JoaoJandre

@julien-vaz could you fix the conflicts?

Sure!

julien-vaz avatar Jun 04 '25 17:06 julien-vaz

@blueorangutan package

sureshanaparti avatar Jun 05 '25 09:06 sureshanaparti

@sureshanaparti 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 avatar Jun 05 '25 09:06 blueorangutan

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

blueorangutan avatar Jun 05 '25 11:06 blueorangutan

@blueorangutan test

DaanHoogland avatar Jun 09 '25 12:06 DaanHoogland

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

blueorangutan avatar Jun 09 '25 13:06 blueorangutan

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

Test Result Time (s) Test File

blueorangutan avatar Jun 10 '25 05:06 blueorangutan

@sureshanaparti , do you think we need anymore testing on this? (/me not convinced)

DaanHoogland avatar Jun 11 '25 17:06 DaanHoogland

I've just built the packages locally, so I'm triggering the Blue Orangutan again.

julien-vaz avatar Jun 23 '25 14:06 julien-vaz

@blueorangutan package

julien-vaz avatar Jun 23 '25 14:06 julien-vaz

@julien-vaz 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 avatar Jun 23 '25 14:06 blueorangutan

I've just built the packages locally, so I'm triggering the Blue Orangutan again.

why do you think this is needed @julien-vaz ?

DaanHoogland avatar Jun 23 '25 14:06 DaanHoogland

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

blueorangutan avatar Jun 23 '25 15:06 blueorangutan

I've just built the packages locally, so I'm triggering the Blue Orangutan again.

why do you think this is needed @julien-vaz ?

Because the debian build has failed previously

julien-vaz avatar Jul 02 '25 17:07 julien-vaz

why do you think this is needed @julien-vaz ?

Because the debian build has failed previously

ok, nothing related to your changes but now you asked for it ;) @blueorangutan test ubuntu22 kvm-ubuntu22 keepEnv

DaanHoogland avatar Jul 02 '25 18:07 DaanHoogland

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

blueorangutan avatar Jul 02 '25 18:07 blueorangutan

[SF] Trillian test result (tid-13665) Environment: kvm-ubuntu22 (x2), Advanced Networking with Mgmt server u22 Total time taken: 61144 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10419-t13665-kvm-ubuntu22.zip Smoke tests completed. 141 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Jul 03 '25 12:07 blueorangutan

sorry @julien-vaz , I did some greps on the logs and it all looks fine.

DaanHoogland avatar Jul 03 '25 13:07 DaanHoogland

@blueorangutan package

DaanHoogland avatar Jul 14 '25 05:07 DaanHoogland

@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 avatar Jul 14 '25 05:07 blueorangutan

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

blueorangutan avatar Jul 14 '25 06:07 blueorangutan

@blueorangutan package

rosi-shapeblue avatar Aug 17 '25 10:08 rosi-shapeblue