GitHub user fitati opened a pull request:

    https://github.com/apache/libcloud/pull/106

    Update libvirt_driver.py

    in the management of virtual machines with libvirt, a machine has stopped 
ID = -1 and therefore we can never recover a blocked field through its ID, the 
solution is to look up the domain by its name or by its UUID, the solution I 
have used is the search domain with the name, 
    according to :
    http://libvirt.org/html/libvirt-libvirt.html#virDomainLookupByID
    virDomainLookupByID
    virDomainPtr        virDomainLookupByID(virConnectPtr conn, int id)
    Try to find a domain based on the hypervisor ID number Note that this won't 
work for inactive domains which have an ID of -1, in that case a lookup based 
on the Name or UUId need to be done instead

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fitati/libcloud patch-2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/106.patch

----
commit 0c82d576de71210a181b7b693aaf9c47d192bc69
Author: Fitati_Aymen <[email protected]>
Date:   2013-05-15T20:36:14Z

    Update libvirt_driver.py
    
    in the management of virtual machines with libvirt, a machine has stopped 
ID = -1 and therefore we can never recover a blocked field through its ID, the 
solution is to look up the domain by its name or by its UUID, the solution I 
have used is the search domain with the name, 
    according to :
    http://libvirt.org/html/libvirt-libvirt.html#virDomainLookupByID
    virDomainLookupByID
    virDomainPtr        virDomainLookupByID     (virConnectPtr conn,
                                         int id)
    Try to find a domain based on the hypervisor ID number Note that this won't 
work for inactive domains which have an ID of -1, in that case a lookup based 
on the Name or UUId need to be done instead

----

Reply via email to