Bug 1316420
Summary: | libvirtd crashed if set vcpusched vcpus over maxvcpu | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.3 | CC: | jiyin, pkrempa, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.3-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:39:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Luyao Huang
2016-03-10 07:58:57 UTC
Fixed upstream: commit 8c7b7c4b0bb0d58dfb2e3dcdf1855a7dc9c858d0 Author: Peter Krempa <pkrempa> Date: Thu Mar 10 09:46:53 2016 +0100 conf: Fix off-by-one in virDomainDefGetVcpu Cpus are indexed starting from '0' so the check was invalid. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316384 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316420 v1.3.2-101-g8c7b7c4 This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions verify this bug with libvirt-2.0.0-4.el7.x86_64: 1. open a terminal to run libvirtd under valgrind: # valgrind --leak-check=full libvirtd ==1352== Memcheck, a memory error detector ==1352== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==1352== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==1352== Command: libvirtd 2. edit guest xml in another terminal: # virsh edit r7 <vcpu placement='auto' current='6'>10</vcpu> <cputune> <vcpupin vcpu='2' cpuset='1'/> <vcpusched vcpus='0-10' scheduler='batch'/> </cputune> error: unsupported configuration: vCPU '10' is not present in domain definition Failed. Try again? [y,n,i,f,?]: 3. no invalid memory access in valgrind report and libvirtd not crash Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2577.html |