Bug 1531466
Summary: | virtio-serial address allocation tries to use address from non-existing controllers | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | yalzhang <yalzhang> |
Component: | libvirt | Assignee: | Virtualization Maintenance <virt-maint> |
Status: | CLOSED DEFERRED | QA Contact: | Jing Qi <jinqi> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.0 | CC: | jinqi, jtomko, rbalakri, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-18 13:51:48 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
yalzhang@redhat.com
2018-01-05 08:27:06 UTC
one more scenario: 1. when guest has no virtio console, and 2 of 3 ports are occupid # virsh dumpxml pc | grep virtio-serial <controller type='virtio-serial' index='0' ports='3'> <alias name='virtio-serial0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> <address type='virtio-serial' controller='0' bus='0' port='2'/> 2. attach a virtio console: # cat console.xml <console type='pty'> <target type='virtio'/> </console> # virsh attach-device pc console.xml Device attached successfully 3. attach the 2nd virtio console: # virsh attach-device pc console.xml error: Failed to attach device from console.xml error: internal error: unable to execute QEMU command 'device_add': virtio-serial-bus: Out-of-range port id specified, max. allowed: 2 The problem with virtio consoles described in comment 2 is tracked by bug 1447505 The error in step two shows two problems 1. we pretend to be able to add a virtio-serial controller, so we choose an address from a new one, but we don't actually add it 2. 0 is not allowed to be used as a port number. I do not remember the reason why I only let virtio consoles use port 0, or why their addresses are not stored, but that's tracked by the bug mentioned above. This bug was closed deferred as a result of bug triage. Please reopen if you disagree and provide justification why this bug should get enough priority. Most important would be information about impact on customer or layered product. Please indicate requested target release. |