Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup alerting and logging error in BGPServiceImpl #10252

Open
wants to merge 1 commit into
base: 4.20
Choose a base branch
from

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.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 16.13%. Comparing base (96b757c) to head (9194370).

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 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #10252   +/-   ##
=========================================
  Coverage     16.13%   16.13%           
  Complexity    12972    12972           
=========================================
  Files          5639     5639           
  Lines        494297   494298    +1     
  Branches      59908    59909    +1     
=========================================
+ Hits          79773    79774    +1     
+ Misses       405698   405697    -1     
- Partials       8826     8827    +1     
Flag Coverage Δ
uitests 4.02% <ø> (ø)
unittests 16.98% <33.33%> (+<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.

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants