Bug 980334
| Summary: | error shows when changing video from qxl to other models | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | tingting zheng <tzheng> | |
| Component: | python-virtinst | Assignee: | Martin Kletzander <mkletzan> | |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 6.5 | CC: | acathrow, bili, codong, dallan, dyuan, hyao, lcui, lnovich, mjenner, mkletzan, mzhan, tzheng, vbocek | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | python-virtinst-0.600.0-17.el6 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 920549 | |||
| : | 985184 (view as bug list) | Environment: | ||
| Last Closed: | 2013-11-21 10:38: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: | ||||
| Bug Depends On: | 920549 | |||
| Bug Blocks: | 985184 | |||
|
Description
tingting zheng
2013-07-02 06:02:51 UTC
Fixed upstream with:
commit 14578fc2c30b4e694db66443e0dca22ba9727c84
Author: Cole Robinson <crobinso>
Date: Mon May 27 18:50:25 2013 -0400
details: Fix changing cirrus->QXL for active VM (bz 928882)
Tested with:
python-virtinst-0.600.0-17.el6.noarch
virt-manager-0.9.0-18.el6.x86_64
libvirt-0.10.2-19.el6.x86_64
When launch virt-manager, select video device from the guest, and change model from qxl to others will still get the same error.
# virt-manager --debug
2013-07-19 15:04:59,319 (libvirtobject:135): Redefining 'demo' with XML diff:
--- Original XML
+++ New XML
@@ -62,7 +62,7 @@
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
</sound>
<video>
- <model type="qxl" ram="65536" vram="65536" heads="1"/>
+ <model type="cirrus" ram="65536"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
</video>
<memballoon model="virtio">
2013-07-19 15:04:59,330 (error:80): dialog message: Error changing VM configuration: XML error: ram attribute only supported for type of qxl : Error changing VM configuration: XML error: ram attribute only supported for type of qxl
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/details.py", line 2333, in _change_config_helper
self.vm.redefine_cached()
File "/usr/share/virt-manager/virtManager/domain.py", line 326, in redefine_cached
self._redefine_xml(xml)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 147, in _redefine_xml
return self._redefine_helper(origxml, newxml)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 137, in _redefine_helper
self._define(newxml)
File "/usr/share/virt-manager/virtManager/domain.py", line 775, in _define
self.conn.define_domain(newxml)
File "/usr/share/virt-manager/virtManager/connection.py", line 813, in define_domain
return self.vmm.defineXML(xml)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2667, in defineXML
if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
libvirtError: XML error: ram attribute only supported for type of qxl
So the bug is not fixed,move back to ASSIGNED.
This is only a fix for the python-virtinst part and new virt-manager has to make a use of that. The python-virtinst itself will not prevent this error. I'm moving it back to ON_QA, please test with next virt-manager (the new virt-manager should give you an error with old python-virtinst). Sorry for the confusion with these bugs. Tested the bug with:
virt-manager-0.9.0-19.el6.x86_64
python-virtinst-0.600.0-18.el6.noarch
libvirt-0.10.2-22.el6.x86_64
Change video model from qxl to other models such as cirrus,no error occurs,so move the bug to VERIFIED.
# virt-manager --debug
@@ -51,7 +51,7 @@
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
</sound>
<video>
- <model type="qxl" ram="65536" vram="65536" heads="1"/>
+ <model type="cirrus"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
</video>
<memballoon model="virtio">
*** Bug 1006218 has been marked as a duplicate of this bug. *** 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. http://rhn.redhat.com/errata/RHBA-2013-1604.html |