no useful errors if tls certs missing or unreadable

Bug #546723 reported by Craig Ringer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

# libvirtd --version
libvirtd (libvirt) 0.7.0

ii libvirt0 0.7.0-1ubuntu13.1

if listen_tls = 1 is set in libvirtd.conf, but the certs required aren't present in /etc/pki, libvirtd silently fails to launch, returning with error code 0 (success) and so confusing start-stop-daemon into thinking it launched.

libvirtd SHOULD:

- print an error mesage like "libvirtd: listen_tls set but /etc/pki/CA/cacert.pem not found, cannot launch"
- return a non-zero error code
- if listen_tls or listen_tcp are set but --listen is not specified on the command line, log/print a warning like "WARNING: listen_tls or listen_tcp enabled but --listen not specified on the command line. libvirtd will not listen on the network."

This probably qualifies as an upstream bug more than anything, BUT ubuntu's config file for libvirtd needs to at least mention the certificate paths in the comments for listen_tls.

Revision history for this message
Craig Ringer (ringerc) wrote :

Also, Ubuntu's libvirt packages should probably provide a skeleton /etc/pki which has symlinks to the default certs generated by snakeoil .

Chuck Short (zulcss)
Changed in libvirt (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.