Unable to Remove the VM from RHEVM manager 3.1 as well as from RHEVM shell
Respected Sir/Madam
I am unable to remove the vms from rhevm 3.1.4 manager UI as well as from rhevm shell
By giving following commands
# remove vm "vmname" --async
as well as
# remove vm "vmname" force
its giving the following error
error:
status: 400
reason: Bad Request
detail:
Please respond ASAP
Responses
Hi,
What is the status of the vm from RHEVM webUI?
Can you paste output of:
---
# show vm <vmname> --show-all
---
Also, what message you are getting under event tab when you try to delete the vm from RHEVM webUI?
Regards,
Pratik Bandarkar.
Hi Pratik,
Glad to here that, you were able to delete the vm.
>>i have observed that the disk lvm is get deleted from hypervisor host but the entry for the disk is still available in RHEV Manager and it available in attached disk.
>>>So how to remove that unattached disk
From above comment it seems to be the lv is not present in bankend storage. But, the disk is there in database. If this is the case then, we will need to update RHEVM database to remove the disk entry. I will suggest you to open service request and provide Logcollecotor. So that, we can have a look and provide further action plan. Also, mention disk name and the timestamp when you deleted the vm.
We've experienced several of these due to failed virt-v2v's. The only way to resolve is to run a couple of simple SQL updates against the backend database to remove the spurious entries. The GSS will be able to help you with that. I wouldn't attempt it without their input though ...and do ensure you backup the database prior to making the changes !
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
