Bug 1315451

Summary: unable to use_tcp option use_tls=0 set
Product: Red Hat Enterprise Linux 7 Reporter: Vasu Kulkarni <vakulkar>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: berrange, jtomko, rbalakri
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-08 10:08:40 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 Vasu Kulkarni 2016-03-07 19:12:57 UTC
Description of problem:

For simplified testing with Ceph RBD volumes, I want to use tcp and have disabled tls but this doesn't seem to work

[ubuntu@magna077 qemu_test]$ sudo cat /etc/libvirt/libvirtd.conf
listen_tcp = 1
tcp_port = "16509"
auth_tcp = "none"
listen_tls = 0
LIBVIRTD_ARGS="--listen"


Version-Release number of selected component (if applicable):
[ubuntu@magna077 qemu_test]$ rpm -qa | grep libvirt
libvirt-daemon-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-network-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-storage-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-config-nwfilter-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-secret-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-qemu-1.2.17-13.el7_2.3.x86_64
libvirt-client-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-config-network-1.2.17-13.el7_2.3.x86_64
libvirt-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-interface-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.3.x86_64
libvirt-daemon-driver-lxc-1.2.17-13.el7_2.3.x86_64


How reproducible:


Steps to Reproduce:
[ubuntu@magna077 qemu_test]$ sudo systemctl stop libvirtd
[ubuntu@magna077 qemu_test]$ sudo systemctl start libvirtd                                                                                                                   
[ubuntu@magna077 qemu_test]$ sudo netstat -lntp                                                                                                                              
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      2605/rpcbind        
tcp        0      0 0.0.0.0:20048           0.0.0.0:*               LISTEN      2609/rpc.mountd     
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      2725/dnsmasq        
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1361/sshd           
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2604/master         
tcp        0      0 0.0.0.0:50173           0.0.0.0:*               LISTEN      1562/rpc.statd      
tcp        0      0 0.0.0.0:35360           0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::50506                :::*                    LISTEN      1562/rpc.statd      
tcp6       0      0 :::111                  :::*                    LISTEN      2605/rpcbind        
tcp6       0      0 :::59568                :::*                    LISTEN      -                   
tcp6       0      0 :::20048                :::*                    LISTEN      2609/rpc.mountd     
tcp6       0      0 :::22                   :::*                    LISTEN      1361/sshd           
tcp6       0      0 ::1:25                  :::*                    LISTEN      2604/master         
tcp6       0      0 :::2049                 :::*                    LISTEN      -                   
[ubuntu@magna077 qemu_test]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)



Actual results:
libvirtd doesn't listen on tcp


Expected results:


Additional info:

Comment 2 Ján Tomko 2016-03-08 08:20:43 UTC
LIBVIRTD_ARGS is an option for /etc/sysconfig/libvirtd

It does not do anything in libvirtd.conf.

Comment 3 Daniel Berrangé 2016-03-08 10:08:40 UTC
Closing based on comment #2