Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532892 - app-emulation/libvirt - /etc/init.d/libvirtd fails silently when /etc/libvirt/qemu is not a directory
Summary: app-emulation/libvirt - /etc/init.d/libvirtd fails silently when /etc/libvirt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 21:42 UTC by Toralf Förster
Modified: 2014-12-18 21:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2014-12-17 21:42:12 UTC
If a guy like me created by accident a file /etc/libvirt/qemu rather than copying xml files from an old system into the directory /etc/libvirt/qemu, then the init.d script fails silently, just the direct command line shows the error: 
https://forums.gentoo.org/viewtopic-p-7668220.html#7668220

Better the init.d script would print out the error for a thumb sucker like me.
Comment 1 Matthias Maier gentoo-dev 2014-12-18 10:24:53 UTC
Can you please be more precise about "silently fails"? I.e. what is the expected behavior/what is the actual behavior?

For the issue mentioned on the forum, this is handled in bug #532410 - can you post this, please?
Comment 2 Toralf Förster gentoo-dev 2014-12-18 13:33:45 UTC
(In reply to Matthias Maier from comment #1)
> Can you please be more precise about "silently fails"? I.e. what is the
> expected behavior/what is the actual behavior?
> 
> For the issue mentioned on the forum, this is handled in bug #532410 - can
> you post this, please?

t44 /etc/libvirt # ls -ld
drwxr-xr-x 1 root root 164 Dec 18 11:48 .
t44 /etc/libvirt # /etc/init.d/libvirtd stop
 * Stopping libvirtd ...                                                                          [ ok ]
t44 /etc/libvirt # mv qemu qemu.ok
t44 /etc/libvirt # touch qemu
t44 /etc/libvirt # /etc/init.d/libvirtd start
 * Starting libvirtd ...                                                                          [ ok ]
t44 /etc/libvirt # ps -elfa | grep libvirtd
Warning: /boot/System.map-3.17.6-hardened not parseable as a System.map
Warning: /usr/src/linux/System.map not parseable as a System.map
0 S root     14948 14835  0  80   0 -  2632      - 14:32 pts/1    00:00:00 grep --colour=auto libvirtd
t44 /etc/libvirt # /etc/init.d/libvirtd stop
 * Stopping libvirtd ...                                                                          [ ok ]
t44 /etc/libvirt # rm qemu
t44 /etc/libvirt # mv qemu.ok qemu
t44 /etc/libvirt # /etc/init.d/libvirtd start
 * Starting libvirtd ...                                                                          [ ok ]
t44 /etc/libvirt # ps -elfa | grep libvirtd
Warning: /boot/System.map-3.17.6-hardened not parseable as a System.map
Warning: /usr/src/linux/System.map not parseable as a System.map
1 S root     15005     1  2  80   0 - 64898 ffffff 14:33 ?        00:00:00 /usr/sbin/libvirtd -d
0 S root     15052 14835  0  80   0 -  2633      - 14:33 pts/1    00:00:00 grep --colour=auto libvirtd
Comment 3 Matthias Maier gentoo-dev 2014-12-18 21:13:51 UTC
Sneaky, sneaky.

This is now fixed in 1.2.11-r2 and 9999.

Given the fact that this is not terribly important I'll not backport it to stable. systemd unit file fails with log output, so no action necessary for them.

Ps.: Can you mention bug #532410 on the forum thread, please?


*libvirt-1.2.11-r2 (18 Dec 2014)

  18 Dec 2014; Matthias Maier <tamiko@gentoo.org> +files/libvirtd.init-r14,
  +libvirt-1.2.11-r2.ebuild, -libvirt-1.2.11-r1.ebuild, files/libvirtd.init-r13,
  libvirt-9999.ebuild:
  fail prominently in case of config directories being a regular file, bug
  #532892