Skip to content

Comments

feat: add hyperVVmId and hostNodeIpAddress to VirtualMachine proto#419

Open
jocardeMSFT wants to merge 1 commit intomainfrom
users/jocarde/vm-get-all
Open

feat: add hyperVVmId and hostNodeIpAddress to VirtualMachine proto#419
jocardeMSFT wants to merge 1 commit intomainfrom
users/jocarde/vm-get-all

Conversation

@jocardeMSFT
Copy link
Contributor

Summary

Problem Statement

During every VM reconcile, the moc-operator makes 4 separate gRPC calls (~7 round-trips) to retrieve host info that could be returned in a single enriched VM Get response.

Proposed Solution

  • Add hyperVVmId (field 23) and hostNodeIpAddress (field 24) fields to the VirtualMachine protobuf message
  • These fields allow the cloudagent to return enriched data in the standard Get response, eliminating the need for separate GetHyperVVmId and GetHostNodeIpAddress RPCs
  • Existing fields and RPCs are unchanged for backward compatibility

Testing Complete

  • make generate regenerates protobuf code successfully
  • make unittest passes
  • Manual testing pending

Add fields to the cloudagent VirtualMachine proto so that a single
Invoke(GET) can return hyperVVmId and hostNodeIpAddress alongside the
existing nodeName, eliminating the need for separate GetHyperVVmId,
GetHostNodeName, and GetHostNodeIpAddress RPCs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants