Skip to content

server: fetch IP of VMs on L2 networks - #10431

Merged
DaanHoogland merged 3 commits into
apache:4.19from
weizhouapache:4.19-fetch-vm-ip-l2-network
May 9, 2025
Merged

server: fetch IP of VMs on L2 networks#10431
DaanHoogland merged 3 commits into
apache:4.19from
weizhouapache:4.19-fetch-vm-ip-l2-network

Conversation

@weizhouapache

@weizhouapacheweizhouapache commented Feb 19, 2025

Copy link
Copy Markdown
Member

Description

This PR fixes an issue with #10376 , and adds the support to get vm IP for VMs on L2 network via qemu-guest-agent

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?

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@codecov

codecovBot commented Feb 19, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 64.58333% with 17 lines in your changes missing coverage. Please review.

Project coverage is 15.17%. Comparing base (f50de89) to head (cf8f2fc).
Report is 53 commits behind head on 4.19.

Files with missing linesPatch %Lines
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java0.00%8 Missing ⚠️
...e/wrapper/LibvirtGetVmIpAddressCommandWrapper.java82.85%2 Missing and 4 partials ⚠️
...ava/com/cloud/agent/api/GetVmIpAddressCommand.java40.00%3 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.19 #10431 +/- ##
=========================================
Coverage 15.16% 15.17% - Complexity 11329 11331 +2 
=========================================
Files 5413 5413 Lines 474782 474811 +29 Branches 57903 57907 +4 =========================================
+ Hits 72010 72032 +22 - Misses 394722 394725 +3 - Partials 8050 8054 +4 
FlagCoverage Δ
uitests4.29% <ø> (ø)
unittests15.89% <64.58%> (+<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.

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@DaanHooglandDaanHoogland added this to the 4.19.3 milestone Feb 20, 2025
@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@Pearl1594

Copy link
Copy Markdown
Contributor

@weizhouapache can you please check if this PR does the same as what #10376 is doing?

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@weizhouapache can you please check if this PR does the same as what #10376 is doing?

As suggested by @NuxRo , I cherry-picked 10376 into this PR so we can test together.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@weizhouapache
weizhouapacheforce-pushed the 4.19-fetch-vm-ip-l2-network branch from dc40a33 to 5f1e11fCompareFebruary 28, 2025 07:32
@yadvryadvr modified the milestones: 4.19.3, 4.20.1Feb 28, 2025
@weizhouapacheweizhouapache changed the title server: fetch IP of VMs on L2 networks[WIP] server: fetch IP of VMs on L2 networksFeb 28, 2025
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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
Copy Markdown

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

@NuxRo

NuxRo commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Looking good so far @weizhouapache !

@weizhouapache
weizhouapache marked this pull request as ready for review March 4, 2025 14:13
@weizhouapacheweizhouapache changed the title [WIP] server: fetch IP of VMs on L2 networksserver: fetch IP of VMs on L2 networksMar 4, 2025
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

Looking good so far @weizhouapache !

thanks for the testing @NuxRo !

@Pearl1594Pearl1594 moved this to In Progress in ACS 4.20.1Mar 17, 2025
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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
Copy Markdown

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

@weizhouapacheweizhouapache linked an issue Mar 29, 2025 that may be closed by this pull request

@NuxRoNuxRo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm

@yadvr

yadvr commented May 9, 2025

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud 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
Copy Markdown

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

@DaanHoogland
DaanHoogland merged commit ea32a1a into apache:4.19May 9, 2025
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in ACS 4.20.1May 9, 2025
@DaanHoogland

Copy link
Copy Markdown
Contributor

(btw merged because @NuxRo stated that he meant he tested it in #10431 (review) , so its his fault)

@DaanHoogland
DaanHoogland deleted the 4.19-fetch-vm-ip-l2-network branch May 9, 2025 08:20
@DaanHooglandDaanHoogland modified the milestones: 4.20.1, 4.19.3May 9, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Autodetect IPs used inside the VM

6 participants

@weizhouapache@blueorangutan@Pearl1594@NuxRo@yadvr@DaanHoogland