Bug 1130390
| Summary: | 'server' type interface with no listen address fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | hongming <honzhang> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | dyuan, jtomko, mzhan, rbalakri, shyu |
| Target Milestone: | rc | ||
| Target Release: | 7.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-1.2.13-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 05:47:35 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
hongming
2014-08-15 06:09:04 UTC
The interface is missing a source address. It fails the same way on RHEL-7 for me. For client interface, we error out if the address is not present. I've sent a patch extending the check to server interfaces upstream: https://www.redhat.com/archives/libvir-list/2014-August/msg00687.html Hi Jan If specify the tcp server address in domain xml , it is still failed to start the guest. I file another bug to track it. Bug 1130441 - Failed to start domain with a 'server' type interface There is no point in fixing this in RHEL-6 if bug 1130441 is not fixed, moving to RHEL-7. commit 280ece4af95727eac49baaa48eb1a2fc36fad4ff
Author: Ján Tomko <jtomko>
AuthorDate: 2015-01-20 13:34:10 +0100
Commit: Ján Tomko <jtomko>
CommitDate: 2015-01-21 13:22:36 +0100
qemu: format server interface without a listen address
https://bugzilla.redhat.com/show_bug.cgi?id=1130390
The listen address is not mandatory for <interface type='server'>
but when it's not specified, we've been formatting it as:
-netdev socket,listen=(null):5558,id=hostnet0
which failed with:
Device 'socket' could not be initialized
Omit the address completely and only format the port in the listen
attribute.
Also fix the schema to allow specifying a model.
git describe: v1.2.12-rc1-2-g280ece4
Verified as below:
[root@localhost ~]# rpm -q libvirt
libvirt-1.2.14-1.el7.x86_64
[root@localhost ~]# virsh dumpxml r7a | grep "/interface" -B6
</controller>
<interface type='server'>
<mac address='52:54:00:e0:42:72'/>
<source port='5558'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# virsh start r7a
Domain r7a started
[root@localhost ~]# ps aux | grep r7a| sed "s/-device/\n-device/g"| grep 5558
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=1 -netdev socket,listen=:5558,id=hostnet0
Moved to Verified.
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 |