Skip to content

[AI Generated] BugFix: Restart KVP daemon after tool installation in verify_kvp#4391

Merged
LiliDeng merged 1 commit intomainfrom
bugfix/kvp-daemon-restart-after-tool-install_250326_113855
Mar 26, 2026
Merged

[AI Generated] BugFix: Restart KVP daemon after tool installation in verify_kvp#4391
LiliDeng merged 1 commit intomainfrom
bugfix/kvp-daemon-restart-after-tool-install_250326_113855

Conversation

@johnsongeorge-w
Copy link
Copy Markdown
Collaborator

Summary

Installing KvpClient on arm64 triggers gcc installation via apt-get, which can update the hyperv-daemons package and stop the KVP daemon. The test then fails at step 3 (verify daemon running) because the daemon PID no longer exists.

Added a service check after KvpClient tool installation that detects if the KVP daemon was stopped and restarts it before PID verification.

Validation Results

Image VM Size Result
Debian debian-12 12-arm64 0.20260225.2399 Standard_D2pds_v5 FAILED (before fix)
Debian debian-12 12-arm64 0.20260225.2399 Standard_D2pds_v5 PASSED (after fix)

…verify_kvp

Installing KvpClient on arm64 triggers gcc installation via apt-get,
which can update the hyperv-daemons package and stop the KVP daemon.
The test then fails when checking /proc/<pid>/fd because the daemon
PID no longer exists. Added a service check and restart after tool
installation to ensure the daemon is running before PID verification.
Copilot AI review requested due to automatic review settings March 25, 2026 18:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ensures the Hyper-V KVP daemon is running after KvpClient installation (which may update hyperv-daemons on arm64 and stop the daemon), preventing verify_kvp from failing later when validating the daemon PID.

Changes:

  • Import Service tool in the KVP test suite.
  • After KvpClient acquisition/installation, detect the KVP daemon service and restart it if it’s not running.

Comment thread lisa/microsoft/testsuites/core/kvp.py
Comment thread lisa/microsoft/testsuites/core/kvp.py
@LiliDeng LiliDeng merged commit f5f74b1 into main Mar 26, 2026
62 checks passed
@LiliDeng LiliDeng deleted the bugfix/kvp-daemon-restart-after-tool-install_250326_113855 branch March 26, 2026 01:34
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.

3 participants