[Users] python SDK remove VM once the storage is formatted/detached.
Itamar Heim
iheim at redhat.com
Mon Jan 6 16:51:10 UTC 2014
On 01/05/2014 11:55 PM, karthik S wrote:
> When the storage is formatted, the storage Domain gets down status.
>
> From UI, when I tried to deactivate the storage domain from the
> datacenter, I was asked to remove all the removes first. I could not
> remove the VM because the storage domain is in down state. I could not
> remove the storage domain (System >> storage domain>> "Remove" ) too.
> The remove option remained disabled.
>
> I could only "destory" the storage domain. The storage domain was
> destroyed, but the vm which were in "Not Responding" status are still
> seen. The destory storaged domain did not destory the vms.
>
> All the above were done using UI. Not sure using ovirtsdk would have
> made any diffrence.
>
> Now the only option I have is to remove the stale vms ("?" vms) by
> getting into database.
>
> May be an option in the UI to "remove VM from inventory/database" (and
> also ovirtsdk implemention of it).
> If there is no existing solution, I can file a bug/ RFE ?
>
Allon - thoughts on the above flow?
> -Karthik
>
>
>
>
>
> On Sun, Jan 5, 2014 at 10:52 AM, Itamar Heim <iheim at redhat.com
> <mailto:iheim at redhat.com>> wrote:
>
> On 01/04/2014 10:50 PM, karthik S wrote:
>
>
> Is there a way to remove VMs entries from rhev manager using python
> ovirt-sdk "once the storage becomes unavailble" . - Something
> equivalent
> to "Remove from Inventory" in Vmware vsphere. ?
>
> Currently I get into the postgres db and delete the entries,
> manually.
>
>
> did you try removing the missing storage domain from the system?
>
>
> -Karthik
>
>
>
>
>
> _________________________________________________
> Users mailing list
> Users at ovirt.org <mailto:Users at ovirt.org>
> http://lists.ovirt.org/__mailman/listinfo/users
> <http://lists.ovirt.org/mailman/listinfo/users>
>
>
>
More information about the Users
mailing list