Skip to content

Conversation

@alexandru-bagu
Copy link
Contributor

@alexandru-bagu alexandru-bagu commented Mar 29, 2025

Description

This PR fixes #10640

The main solution for the issue here would be to make sure that we are getting the IP for the correct NIC which we can do based on the MAC of the NIC. Additionally, a null IP is also a valid response because a NIC can have no IP assigned.

It's up for discussion whether we should pull any IP even if it does not match the network subnet because the user can in fact use the NIC with another subnet as well, but that is not necessarily relevant to this issue.

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?

I am in the process of testing on my dev environment then going to push in prod once I am happy with the results.

How did you try to break this feature and the system with this change?

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.

overall looks good

A related pr for l2 network #10431

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

@alexandru-bagu
Copy link
Contributor Author

overall looks good

A related pr for l2 network #10431

Interesting. I see your PR has more changes than this PR. Feel free to grab my code for VMware and close this PR.

@blueorangutan
Copy link

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

@codecov
Copy link

codecov bot commented Mar 29, 2025

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.17%. Comparing base (36cfd76) to head (cddab12).
⚠️ Report is 8 commits behind head on 4.20.

Files with missing lines Patch % Lines
...oud/hypervisor/vmware/resource/VmwareResource.java 0.00% 11 Missing ⚠️
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #10641   +/-   ##
=========================================
  Coverage     16.17%   16.17%           
+ Complexity    13296    13295    -1     
=========================================
  Files          5656     5656           
  Lines        498219   498253   +34     
  Branches      60451    60462   +11     
=========================================
+ Hits          80579    80585    +6     
- Misses       408672   408697   +25     
- Partials       8968     8971    +3     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) ⬇️
unittests 17.02% <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 Sentry.
📢 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.

@weizhouapache weizhouapache linked an issue Mar 29, 2025 that may be closed by this pull request
@Pearl1594 Pearl1594 added this to the 4.21.0 milestone Apr 3, 2025
@weizhouapache weizhouapache self-assigned this Apr 10, 2025
@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.

@weizhouapache weizhouapache changed the title match nic mac for ip address fetch VMware: match nic mac for ip address fetch Apr 17, 2025
@blueorangutan
Copy link

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

@weizhouapache weizhouapache changed the base branch from main to 4.20 April 25, 2025 06:27
@weizhouapache weizhouapache changed the base branch from 4.20 to main April 25, 2025 06:27
@weizhouapache
Copy link
Member

@alexandru-bagu
can you rebase with 4.20 branch so it will be included into 4.20.1.0 release ?

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

@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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15255

@weizhouapache
Copy link
Member

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

@blueorangutan test ol8 vmware-80u3

@blueorangutan
Copy link

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-80u3) has been kicked to run smoke tests

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

verified OK on both

  • shared network without services (QuickCloud with no services) and
  • L2 networks

tested with ubuntu cloud image

  • assigned Ip manually
image
  • waited a while
image
  • reboot the vm, the assigned IP is gone, the IP field is empty
image
  • assigned another IP inside the vm
image
  • new IP is fetched
image

@blueorangutan
Copy link

[SF] Trillian test result (tid-14506)
Environment: vmware-80u3 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 100089 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10641-t14506-vmware-80u3.zip
Smoke tests completed. 138 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_deploy_more_vms_than_limit_allows Error 216.66 test_deploy_vms_in_parallel.py
test_01_deployVMInSharedNetwork Failure 679.90 test_network.py
test_02_list_snapshots_with_removed_data_store Error 12.72 test_snapshots.py
test_02_list_snapshots_with_removed_data_store Error 12.73 test_snapshots.py

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

clgtm

@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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15272

@weizhouapache
Copy link
Member

@blueorangutan test ol8 vmware-80u3

@blueorangutan
Copy link

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-80u3) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-14514)
Environment: vmware-80u3 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 74810 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10641-t14514-vmware-80u3.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_01_scale_vm Error 1.59 test_scale_vm.py
test_02_scale_vm_negative_offering_disable_scaling Error 1.40 test_scale_vm.py
test_03_scale_vm_negative_vm_disable_scaling Error 1.41 test_scale_vm.py
test_04_scale_vm_with_user_account Error 11.64 test_scale_vm.py

@weizhouapache weizhouapache merged commit 8e4dc0a into apache:4.20 Oct 4, 2025
25 of 26 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 17, 2025
sandeeplocharla pushed a commit to NetApp/cloudstack that referenced this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Autodetect IPs used inside the VM [VMware] Nics for routers or guest networks lose their IP on VM reboot

7 participants