
As shown in the figure above, the main process for deleting a virtual machine is as follows:
Delete the virtual machine in the AOC UI.
AOC calls the AVE API to delete the virtual machine and AVE creates a task.
AVE asynchronously processes the virtual machine deletion task:
AVE clears the virtual machine's resources on the host and unplugs the vNICs from the VPC OVS bridge.
AVE clears the virtual machine metadata:
Calls the VPC controller API to delete the vNICs by their vNIC IDs.
VPC controller deletes the vNICs and releases the IP and other associated resources.
VPC agent detects the port unplug event on the VPC bridge and clears the vNIC-related configurations, including:
Clears the local configuration associated with the port, such as VPC, VPC subnet, security policy, and route table.
Based on the vNIC IDs and VPC ID of the port, removes the host and TEP IP for the vNICs.