Open yangxiaoliang opened 3 years ago
@yangxiaoliang please note that this library was implemented specifically for oVirt and from oVirt's perspective, there's no reason to delete a VMI (because we don't want to remove a running VM) so we never tested it. You can see how oVirt removes VMs here - if similar code doesn't work for VMIs then maybe some of the modifications we did in the generated code in this library is missing for VMIs..
Hi,
I hit some issue when delete VMI through java client, following is my test code snippet:
and the error message is:
seem like the V1DeleteOptions object was not set correctly. I have tried to set the api version to : v1/ V1 / kubevirt.io/v1 and set the kind to VirtualMachineInstance/ virtualmachineinstance, VirtualMachineInstances/virtualmachineinstances , VMI/vmi, but all of them got failed with same error like above, could you help give me some guide or examples on how to delete the vmi via java client ?
P.S. The java client version I am using is : 0.5.0, and the kubevirt version is 0.41.0.
Thanks, Xiaoliang