[one-users] VM running on multiple hosts
Steven Timm
timm at fnal.gov
Thu Jun 26 07:42:08 PDT 2014
We have also seen this behavior in OpenNebula 3.2.
It appears that the failure mode occurs because the onevm delete
(or shutdown or migrate)
doesn't correctly verify that the virtual machine has gone away.
It sends the acpi terminate signal to the virtual machine
but if that fails, the VM will keep running. There is no
signal sent to libvirt to kill the machine regardless.
OpenNebula
deletes the disk.0 from underneath it but that doesn't stop
the vm from running, it stays running on the deleted file handle.
On the plus side, I once was able to recover the full disk image
of a VM that shouldn't have been deleted, that way, by going
to the /proc file system and dd'ing from the still-open file
handle of the process.
We've written a set of utilities to check the consistency
of the leases database with what is actually running on the cloud,
and alert us if there are any differences.
Steve Timm
On Thu, 26 Jun 2014, Milos Kozak wrote:
> Hi, I would like to add that I have experienced it few times with ONE 3.8..
>
> On 6/26/2014 9:34 AM, Robert Tanase wrote:
>> Hi all,
>>
>> We are using Opennebula 4.2 system with several hosts ( KVM +
>> network storage) .
>>
>> Recently we have discovered, by having disk r/w issues on a VM, that
>> after a delete - recreate action, specific VM is running on two
>> different hosts: the old placement host and the new placement host.
>>
>> We are using the hooks system for host failure and a cron job at 5
>> minutes which is (re)deploying pending machines on available running
>> hosts.
>>
>> By checking oned log files we couldn't find any abnormal behavior
>> and we are stuck.
>>
>> Please guide us to find the root cause of this issue if is possible.
>>
>> --
>> Thank you,
>> Robert Tanase
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
------------------------------------------------------------------
Steven C. Timm, Ph.D (630) 840-8525
timm at fnal.gov http://home.fnal.gov/~timm/
Fermilab Scientific Computing Division, Scientific Computing Services Quad.
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
More information about the Users
mailing list