Skip to content

Re-reserve released NICs when a VM resyncs to Running to restore nics_count - #14460

Draft
Pearl1594 wants to merge 1 commit into
4.22from
ghi14177-nic-reconcile-4.22
Draft

Pearl1594 wants to merge 1 commit into
4.22from
ghi14177-nic-reconcile-4.22

Conversation

@Pearl1594

@Pearl1594 Pearl1594 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes: #14177

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

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?

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 18.07%. Comparing base (345db51) to head (99d9c27).

Files with missing lines Patch % Lines
...tack/engine/orchestration/NetworkOrchestrator.java 0.00% 16 Missing ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.22   #14460   +/-   ##
=========================================
  Coverage     18.07%   18.07%           
- Complexity    16357    16361    +4     
=========================================
  Files          5937     5937           
  Lines        537029   537058   +29     
  Branches      65833    65836    +3     
=========================================
+ Hits          97043    97054   +11     
- Misses       428901   428919   +18     
  Partials      11085    11085           
Flag Coverage Δ
uitests 4.04% <ø> (ø)
unittests 19.14% <0.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.


private void reconcileNicsForRunningVm(final VMInstanceVO vm) {
final VMInstanceVO runningVm = _vmDao.findById(vm.getId());
if (runningVm == null || runningVm.getType() != VirtualMachine.Type.User || runningVm.getState() != State.Running || runningVm.getHostId() == null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does the issue impact DomainRouter ?

This branch has not been deployed

No deployments
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.

NetworkGarbageCollector releases a network's VLAN while it still has live NICs

2 participants