Re: [libvirt-php] bug in libvirt_domain_change_vcpus()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/10/2013 10:09 AM, Daniel P. Berrange wrote:
> On Mon, Sep 09, 2013 at 06:51:54PM +0200, Michal Novotny wrote:
>> Hi Olivier,
>> this is not really a bug as it's intended. The
>> libvirt_domain_change_vcpus() is not the same as (yet unimplemented)
>> virDomainSetVcpus() API so it's not bug. I realize that naming could be
>> a little confusing so if you like, feel free to rename
>> libvirt_domain_change_vcpus() to libvirt_domain_xml_change_vcpus() as
>> this API should be used to change number of vCPUS in the domain XML
>> itself and implement libvirt_domain_set_vcpus() calling real
>> virDomainSetVcpus() API function.
> That function is also buggy in that it will silently turn a transient
> guest into a persistent guest, which is almost certainly not what a
> caller would expect
>
> Daniel

Ok, I guess dropping libvirt_domain_xml_change_vcpus() and implementing
libvirt_domain_xml_set_vcpus() using the virDomainSetVcpus() API
function is much better.

Thanks,
Michal

-- 
Michal Novotny <minovotn@xxxxxxxxxx>, RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]