Skip to content

Conversation

@vishesh92
Copy link
Member

@vishesh92 vishesh92 commented Jan 23, 2025

Description

Fixes:

  • NPE when dcId is null or 0L on sending an alert.
  • Exception during logging in BGPServiceImpl
Generated summary

This pull request includes several changes to the AlertManagerImpl and BGPServiceImpl classes to improve code clarity and functionality. The most important changes involve the handling of data center IDs and the logging of AS number allocations.

Improvements to AlertManagerImpl:

Improvements to BGPServiceImpl:

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
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

codecov bot commented Jan 23, 2025

Codecov Report

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

Project coverage is 15.99%. Comparing base (96b757c) to head (f3e28fe).
Report is 74 commits behind head on 4.20.

Files with missing lines Patch % Lines
...er/src/main/java/com/cloud/bgp/BGPServiceImpl.java 0.00% 3 Missing ⚠️
...rc/main/java/com/cloud/alert/AlertManagerImpl.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10252      +/-   ##
============================================
- Coverage     16.13%   15.99%   -0.15%     
- Complexity    12972    13080     +108     
============================================
  Files          5639     5649      +10     
  Lines        494297   495623    +1326     
  Branches      59908    60003      +95     
============================================
- Hits          79773    79255     -518     
- Misses       405698   407519    +1821     
- Partials       8826     8849      +23     
Flag Coverage Δ
uitests 4.01% <ø> (-0.02%) ⬇️
unittests 16.82% <0.00%> (-0.16%) ⬇️

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.

@vishesh92 vishesh92 force-pushed the fixup-logging-and-alerting branch from 51f7677 to 9194370 Compare January 23, 2025 10:40
@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

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

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

@blueorangutan
Copy link

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

@vishesh92
Copy link
Member Author

@blueorangutan test

@apache apache deleted a comment from blueorangutan Jan 24, 2025
@apache apache deleted a comment from blueorangutan Jan 24, 2025
@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-12180)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 48495 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10252-t12180-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

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@hsato03 hsato03 mentioned this pull request Feb 3, 2025
13 tasks
@weizhouapache
Copy link
Member

@DaanHoogland
can you review this ?

Copy link
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.

code looks good, are there any tests, unit or integration, that cover this bit, @vishesh92 ?

@vishesh92
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@vishesh92
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@DaanHoogland DaanHoogland added this to the 4.20.1 milestone Feb 13, 2025
Co-authored-by: dahn <daan.hoogland@gmail.com>
@vishesh92
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@Pearl1594
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

smoke test results look good

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_06_purge_expunged_vm_background_task Failure 388.39 test_purge_expunged_vms.py

Copy link
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

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

code LGTM

@Pearl1594 Pearl1594 merged commit 6a3314c into apache:4.20 Feb 18, 2025
24 of 26 checks passed
@Pearl1594 Pearl1594 deleted the fixup-logging-and-alerting branch February 18, 2025 14:23
@Pearl1594 Pearl1594 moved this to Done in ACS 4.20.1 Mar 17, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
* Fixup alerting and logging error in BGPServiceImpl

* Update unit tests

* Apply suggestions from code review

Co-authored-by: dahn <daan.hoogland@gmail.com>

---------

Co-authored-by: dahn <daan.hoogland@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants