Describe the bug
The NetworkInterface detachment process is not functioning as expected. After attempting to detach a NetworkInterface, it is successfully removed from the store but remains present in the DomainXML.
To Reproduce
Create a machine with nic.
Detach the nic.
Verify domain machine DomainXML. nic is not getting removed.
Expected behavior
The NetworkInterface should be successfully unplugged from both the store and the DomainXML.
Screenshots
2024-02-05T06:44:55Z ERROR machine-reconciler failed to reconcile machine {"machineID": "0c058844-7cb9-42a6-b988-d6573f870551", "error": "[network interfaces] attach / detach error(s): [[network interface primary] error detaching: internal error: unable to execute QEMU command 'device_del': Device ua-networkinterface-primary is already in the process of unplug]"}
github.com/ironcore-dev/libvirt-provider/pkg/controllers.(*MachineReconciler).processNextWorkItem
/home/sosahu/my-workspace/libvirt-provider/UT/store/libvirt-provider/pkg/controllers/machine_controller.go:300
github.com/ironcore-dev/libvirt-provider/pkg/controllers.(*MachineReconciler).Start.func7
/home/sosahu/my-workspace/libvirt-provider/UT/store/libvirt-provider/pkg/controllers/machine_controller.go:200
Describe the bug The NetworkInterface detachment process is not functioning as expected. After attempting to detach a NetworkInterface, it is successfully removed from the store but remains present in the DomainXML.
To Reproduce
Expected behavior The NetworkInterface should be successfully unplugged from both the store and the DomainXML.
Screenshots