Bug 1210545
Summary: | libvirtd crashed when define/edit a vm with a vcpus='0, ^0' in <vcpusched> | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.2 | CC: | dyuan, honzhang, mzhan, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.15-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 06:28:01 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
2015-04-10 03:13:46 UTC
Fixed upstream: commit b77ce18a28bc8b5d6a88ecdde084259b4697b049 Author: Erik Skultety <eskultet> Date: Fri Apr 10 11:11:21 2015 +0200 virBitmap: Place virBitmapIsAllClear check after virBitmapParse calls This patch adds checks for empty bitmaps right after the calls of virBitmapParse. These only include spots where set API's are called and where domain's XML is parsed. Also, it partially reverts commit 983f5a which added a check for invalid nodeset "0,^0" into virBitmapParse function. This change broke the logic, as an empty bitmap should not cause an error. v1.2.14-116-gb77ce18 Verify this bug with libvirt-1.2.17-1.el7.x86_64: 1. add a line in guest xml like this: <vcpusched vcpus='0,^0' scheduler='fifo' priority='1'/> # virsh edit r6 error: unsupported configuration: Invalid value of 'vcpus': 0,^0 Failed. Try again? [y,n,i,f,?]: 2. also test with iothreadsched: <iothreadsched iothreads='0,^0' scheduler='batch'/> # virsh edit r6 error: unsupported configuration: Invalid value of 'iothreads': 0,^0 Failed. Try again? [y,n,i,f,?]: 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/RHBA-2015-2202.html |