Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
improve the error when add a input device to lxc domain and forbid add a unsupported input device to lxc domain
Version-Release number of selected component (if applicable):
libvirt-1.2.8-15.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.try to add a inpurt deivce like this to lxc domain:
<input type='tablet' bus='usb'/>
# virsh -c lxc:/// edit helloworld
error: internal error: xen bus does not support tablet input device
Failed. Try again? [y,n,f,?]:
2.try to add a inpurt deivce like this to lxc domain:
<input type='mouse' bus='usb'/>
# virsh -c lxc:/// edit helloworld
Domain helloworld XML configuration edited.
3.check the xml:
# virsh -c lxc:/// dumpxml helloworld
<domain type='lxc'>
<name>helloworld</name>
<uuid>ed1955f7-4e72-40ae-8265-c193e7436c8a</uuid>
<memory unit='KiB'>102400</memory>
<currentMemory unit='KiB'>102300</currentMemory>
<vcpu placement='static' cpuset='1-3'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64'>exe</type>
<init>/bin/sh</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/'/>
<target dir='/'/>
</filesystem>
<console type='pty'>
<target type='lxc' port='0'/>
</console>
<input type='mouse' bus='usb'/>
</devices>
<seclabel type='dynamic' model='selinux' relabel='yes'/>
</domain>
Actual results:
libvirt report
xen bus does not support tablet input device
in step 1, but it is not a xen bus.
lxc do not support input device mouse but can add it to xml.
Expected results:
improve the error when add a input device to lxc domain and forbid add a unsupported input device to lxc domain
Additional info:
Fixed upstream:
commit 76b284c968ffd630f97b35464d7836699b5482be
Author: Luyao Huang <lhuang>
Date: Wed Feb 4 10:33:29 2015 +0800
conf: Properly report error of unsupported input bus type
https://bugzilla.redhat.com/show_bug.cgi?id=1188914
Add a missing jump to the error label in case the input device bus is
invalid.
v1.2.12-72-g76b284c
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
Description of problem: improve the error when add a input device to lxc domain and forbid add a unsupported input device to lxc domain Version-Release number of selected component (if applicable): libvirt-1.2.8-15.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.try to add a inpurt deivce like this to lxc domain: <input type='tablet' bus='usb'/> # virsh -c lxc:/// edit helloworld error: internal error: xen bus does not support tablet input device Failed. Try again? [y,n,f,?]: 2.try to add a inpurt deivce like this to lxc domain: <input type='mouse' bus='usb'/> # virsh -c lxc:/// edit helloworld Domain helloworld XML configuration edited. 3.check the xml: # virsh -c lxc:/// dumpxml helloworld <domain type='lxc'> <name>helloworld</name> <uuid>ed1955f7-4e72-40ae-8265-c193e7436c8a</uuid> <memory unit='KiB'>102400</memory> <currentMemory unit='KiB'>102300</currentMemory> <vcpu placement='static' cpuset='1-3'>2</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64'>exe</type> <init>/bin/sh</init> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/libvirt_lxc</emulator> <filesystem type='mount' accessmode='passthrough'> <source dir='/'/> <target dir='/'/> </filesystem> <console type='pty'> <target type='lxc' port='0'/> </console> <input type='mouse' bus='usb'/> </devices> <seclabel type='dynamic' model='selinux' relabel='yes'/> </domain> Actual results: libvirt report xen bus does not support tablet input device in step 1, but it is not a xen bus. lxc do not support input device mouse but can add it to xml. Expected results: improve the error when add a input device to lxc domain and forbid add a unsupported input device to lxc domain Additional info: