Skip to content

fix listPublicIpAddresses crash on shared networks with a virtual router - #14301

Closed
Damans227 wants to merge 1 commit into
apache:mainfrom
Damans227:nl/issue-14248
Closed

Damans227 wants to merge 1 commit into
apache:mainfrom
Damans227:nl/issue-14248

Conversation

@Damans227

Copy link
Copy Markdown
Collaborator

Fixes #14248

Listing IPs on a shared network with forvirtualnetwork=false sometimes fails with a 530 and "this.instanceId is null". The virtual router has two NIC rows for its IP on a shared network: a placeholder with no VM attached, and the real one. The lookup could return either, and when it picked the placeholder the router branch tried to read its missing VM id and crashed. This makes the lookup skip placeholder NICs, so the router's real NIC is always used.

@Damans227

Copy link
Copy Markdown
Collaborator Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Damans227 a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.91%. Comparing base (1a48a87) to head (ba56a71).

Files with missing lines Patch % Lines
server/src/main/java/com/cloud/api/ApiDBUtils.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14301      +/-   ##
============================================
- Coverage     19.91%   19.91%   -0.01%     
  Complexity    20199    20199              
============================================
  Files          6373     6373              
  Lines        577230   577233       +3     
  Branches      70696    70696              
============================================
- Hits         114950   114946       -4     
- Misses       449713   449719       +6     
- Partials      12567    12568       +1     
Flag Coverage Δ
uitests 3.71% <ø> (ø)
unittests 21.18% <25.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan

Copy link
Copy Markdown

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

@Damans227

Copy link
Copy Markdown
Collaborator Author

closing, mitch already has #14249 up for this

@Damans227 Damans227 closed this Oct 4, 2026
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.

listPublicIpAddresses NullPointerException on shared networks with a VR (4.22)

2 participants