Bug 784932

Summary: virDomainGetVcpus - returns libvir: Remote error : vCPU count exceeds maximum: 4216710 > 2048
Product: [Fedora] Fedora Reporter: pitnvrsk
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: berrange, clalancette, crobinso, dougsland, itamar, jforbes, laine, libvirt-maint, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-06 20:36:05 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description pitnvrsk 2012-01-26 12:44:06 EST
Description of problem:

General qemu-kvm machine

Version-Release number of selected component (if applicable):
libvirt 0.8.8

How reproducible:
always


<currentMemory>1048576</currentMemory>\
		  <vcpu>4</vcpu>\
		  <os>\
		    <type arch='x86_64' machine='pc-0.14'>hvm</type>\


Steps to Reproduce:
int main(int argc, char *argv[])
{

	struct t_vmstat *mystat;

	int id=-1;

	init_lib();
	id = vm_start(2);

	vm_start(3); // no such machine just check function, networks the same as for 2, so no real vm will be started
	vm_start(4);// no such machine just check function, networks the same as for 2, so no real vm will be started
       
        printf(" \n");
        printf("Going to sleep for 6 sec\n");
        printf(" \n");

	sleep(6);

	vm_stop(10); // no such machine just check function
	vm_stop(3); // no such machine just check function

	printf(" \n Checking statistic:");
	mystat = vm_stat(1);
	if(NULL!=mystat)
	{
		printf("INFO",mystat->info);
		printf(" \n");
		printf("MAXINFO");
		printf(mystat->maxinfo);
		printf(" \n");
	}
	else printf("O sh... it is NULL2");
// here i got libvir: Remote error : vCPU count exceeds maximum: 4216710 > 2048

	shut_lib(); // will stop id = vm_start(2);

  
Actual results:


Expected results:

virDomainGetVcpus  - should return as expected from docs

Additional info:
Comment 1 Cole Robinson 2012-06-06 20:36:05 EDT
Sorry for the lack of response, but F15 is end of life real soon, so closing as WONTFIX.

pitnvrsk, if you can still reproduce with a more recent Fedora, please reopen this report and we can go from there.