[libvirt-php] bug in libvirt_domain_change_vcpus()

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

 



Hello everyone,

I think there is a bug in the current implementation of function
libvirt_domain_change_vcpu().
When using this function (with second parameter = 2), I have the
following error :

Error setting maxvcpus=2: (domain_definition):8: Specification mandate
value for attribute curre
  <vcpu>2</vcpu>
--^


If I'm right, the equivalent with 'virsh' binary is 'setvcpus', and
this is working.

If I look into source code
(http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7ce2d01e464f4bd4921b464022ca105bcb4bde88;hb=HEAD#l4199)
it seems this operation is done by rewriting the whole XML.

I think we should use instead C function virDomainSetVcpus
http://libvirt.org/html/libvirt-libvirt.html#virDomainSetVcpus


What do you think ?

Olivier

--
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]