Bug 981261
Summary: | It should report an error while add an invalid pci controller to the guest | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | zhenfeng wang <zhwang> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, ajia, bili, dyuan, gsun, jmiao, jtomko, mzhan, xuzhang, ydu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.1.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:17:11 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
zhenfeng wang
2013-07-04 10:30:21 UTC
Negative controller indexes are fixed upstream now: commit 945b18eb7d449217de1a3ce349d31eb43c39cf3e Author: Jincheng Miao <jmiao> AuthorDate: 2013-07-12 14:17:23 +0200 Commit: Ján Tomko <jtomko> CommitDate: 2013-07-12 14:55:04 +0200 Change domain controller index type to unsigned Error out on negative index values. https://bugzilla.redhat.com/show_bug.cgi?id=981261 git describe: v1.1.0-174-g945b18e I've posted a patch rejecting pci-root controllers with non-zero indexes upstream: https://www.redhat.com/archives/libvir-list/2013-July/msg00810.html The second patch is now pushed upstream as well: commit 47a01895fbd5e9ec03b88b6f995850dd247d711a Author: Ján Tomko <jtomko> AuthorDate: 2013-07-12 15:05:51 +0200 Commit: Ján Tomko <jtomko> CommitDate: 2013-07-12 15:05:51 +0200 conf: reject pci-root controllers with non-zero indexes https://bugzilla.redhat.com/show_bug.cgi?id=981261 git describe: v1.1.0-175-g47a0189 Verifying this bug in libvirt-1.1.1-1.el7: Steps: Add <controller type='pci' index='-1' model='pci-bridge'/> to guest xml: # virsh edit rhel7 error: internal error: Cannot parse controller index -1 Failed. Try again? [y,n,f,?]: error: internal error: Cannot parse controller index -1 Failed. Try again? [y,n,f,?]: error: internal error: Cannot parse controller index -1 Failed. Try again? [y,n,f,?]: Error out on negative index values. Add <controller type='pci' index='-2' model='pci-root'/> to guest xml: # virsh edit rhel7 error: internal error: Cannot parse controller index -2 Failed. Try again? [y,n,f,?]: Error also out on negative index values. Working as expected. So setting VERIFIED. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |