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.
DescriptionMichal Privoznik
2012-03-08 14:45:34 UTC
+++ This bug was initially created as a clone of Bug #790436 +++
--- Additional comment from djasa on 2012-03-08 06:35:41 EST ---
Back to ASSIGNED, current check stops qemu even in case when
$ grep -A2 'graphics type' rhel6.xml
<graphics type='spice' port='3005' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
$ LANG= virsh domxml-to-native --format qemu-argv --xml rhel6.xml
error: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf
The behaviour is the same under root and libvirtd.log doesn't provide any insight even with debug = 1.
--- Additional comment from djasa on 2012-03-08 06:37:41 EST ---
Version information:
$ rpm -qa | grep 'libvirt*\|qemu-kvm*'
qemu-kvm-0.12.1.2-2.236.el6.x86_64
libvirt-0.9.10-3.el6.x86_64
qemu-kvm-debuginfo-0.12.1.2-2.236.el6.x86_64
qemu-kvm-tools-0.12.1.2-2.236.el6.x86_64
libvirt-python-0.9.10-3.el6.x86_64
libvirt-client-0.9.10-3.el6.x86_64
--- Additional comment from whuang on 2012-03-08 07:06:52 EST ---
If set autoport='no' and not set tlsPort in domain xml ,in this case the tlsPort is automatic allocated , so it reports TLS error message.
--- Additional comment from djasa on 2012-03-08 07:21:19 EST ---
(In reply to comment #19)
> If set autoport='no' and not set tlsPort in domain xml ,in this case the
> tlsPort is automatic allocated , so it reports TLS error message.
Hi Wenlong,
Is this behaviour documented somewhere? I can not find it in libvirt documentation and when writing the configuration with no mention of tlsPort, I would expect libvirt not to care about it.
--- Additional comment from whuang on 2012-03-08 07:30:56 EST ---
(In reply to comment #20)
> (In reply to comment #19)
> > If set autoport='no' and not set tlsPort in domain xml ,in this case the
> > tlsPort is automatic allocated , so it reports TLS error message.
>
> Hi Wenlong,
>
> Is this behaviour documented somewhere? I can not find it in libvirt
> documentation and when writing the configuration with no mention of tlsPort, I
> would expect libvirt not to care about it.
Hi,David
Sorry ,I can not find document about this,you'd better needinfo developer of libvirt .
Wenlong
--- Additional comment from mprivozn on 2012-03-08 08:31:05 EST ---
I think this is clearly a bug;
From our parsing code:
src/conf/domain_conf.c:5992: tlsPort = virXMLPropString(node, "tlsPort");
src/conf/domain_conf.c:5993: if (tlsPort) {
src/conf/domain_conf.c:5994: if (virStrToLong_i(tlsPort, NULL, 10, &def->data.spice.tlsPort) < 0) {
src/conf/domain_conf.c-5995- virDomainReportError(VIR_ERR_INTERNAL_ERROR,
src/conf/domain_conf.c:5996: _("cannot parse spice tlsPort %s"), tlsPort);
src/conf/domain_conf.c:5997: VIR_FREE(tlsPort);
src/conf/domain_conf.c-5998- goto error;
src/conf/domain_conf.c-5999- }
src/conf/domain_conf.c:6000: VIR_FREE(tlsPort);
src/conf/domain_conf.c-6001- } else {
src/conf/domain_conf.c:6002: def->data.spice.tlsPort = 0;
src/conf/domain_conf.c-6003- }
However, if we build qemu command line we test tlsPort against -1:
src/qemu/qemu_command.c:5377: if (def->graphics[0]->data.spice.tlsPort != -1) {
src/qemu/qemu_command.c-5378- if (!driver->spiceTLS) {
src/qemu/qemu_command.c-5379- qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
src/qemu/qemu_command.c-5380- _("spice TLS port set in XML configuration,"
src/qemu/qemu_command.c-5381- " but TLS is disabled in qemu.conf"));
src/qemu/qemu_command.c-5382- goto error;
src/qemu/qemu_command.c-5383- }
src/qemu/qemu_command.c-5384- virBufferAsprintf(&opt, ",tls-port=%u",
src/qemu/qemu_command.c:5385: def->graphics[0]->data.spice.tlsPort);
src/qemu/qemu_command.c-5386- }
I've proposed patch upstream:
https://www.redhat.com/archives/libvir-list/2012-March/msg00332.html
--- Additional comment from mprivozn on 2012-03-08 08:36:53 EST ---
Sorry for bad formatting. Maybe this time I've leaned Bugzilla gods onto my side:
From our parsing code:
tlsPort = virXMLPropString(node, "tlsPort");
if (tlsPort) {
if (virStrToLong_i(tlsPort, NULL, 10, &def->data.spice.tlsPort) < 0) {
virDomainReportError(VIR_ERR_INTERNAL_ERROR,
_("cannot parse spice tlsPort %s"), tlsPort);
VIR_FREE(tlsPort);
goto error;
}
VIR_FREE(tlsPort);
} else {
def->data.spice.tlsPort = 0;
}
However, if we build qemu command line we test tlsPort against -1:
if (def->graphics[0]->data.spice.tlsPort != -1) {
if (!driver->spiceTLS) {
qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("spice TLS port set in XML configuration,"
" but TLS is disabled in qemu.conf"));
goto error;
}
virBufferAsprintf(&opt, ",tls-port=%u",
def->graphics[0]->data.spice.tlsPort);
}
Verify on:
libvirt-0.9.10-6.el6.x86_64
qemu-kvm-0.12.1.2-2.241.el6.x86_64
kernel-2.6.32-244.el6.x86_64
try guest with xml:
<graphics type='spice' port='5900' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
and
<graphics type='spice' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
the guests all can be started without error,use virt-viewer can connect the guest ,
verification passed.
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/RHSA-2012-0748.html