Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439764 - app-emulation/libvirt init script misses dbus depend
Summary: app-emulation/libvirt init script misses dbus depend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 15:37 UTC by Alexander Vershilov (RETIRED)
Modified: 2012-10-30 05:17 UTC (History)
0 users

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 Alexander Vershilov (RETIRED) gentoo-dev 2012-10-26 15:37:44 UTC
libvirt requires dbus to be started.

2012-10-26 15:36:37.251+0000: 32513: error : nwfilterDriverStartup:208 : DBus matches could not be installed. Disabling nwfilter driver
2012-10-26 15:36:37.251+0000: 32513: error : virDBusGetSystemBus:77 : internal error Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2012-10-26 15:36:37.251+0000: 32513: error : virStateInitialize:798 : Initialization of NWFilter state driver failed
2012-10-26 15:36:37.251+0000: 32513: error : daemonRunStateInit:766 : Driver state initialization failed
2012-10-26 15:36:37.251+0000: 32502: info : virNetlinkEventServiceStopAll:420 : stopping all netlink event services


Reproducible: Always

Steps to Reproduce:
1. stop dbus service
2. rc-service libvirt start
3. 
Actual Results:  
service will be stopped, and error about missing debug can be found in log

Expected Results:  
libvirtd should require dbus to be started.

can be fixed by adding 
after dbus 
into /etc/init.d/libvirtd
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-10-26 22:23:37 UTC
Actually "use dbus" would be more correct. Since its using D-Bus but does not need it. It only uses it for Avahi advertisement and then FirewallD integration which is a D-Bus service for iptables and friends. You are seeing the result of the 2nd instance. Gentoo doesn't support FirewallD however.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2012-10-30 05:13:03 UTC
I missed one more use of DBus. When you enable PolicyKit integration.

Honestly, I see what happened. FirewallD was implicitly turned on. I've forcefully disabled it in the tree.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-10-30 05:17:13 UTC
Ignore the fact that I added a use dbus, that's really for the no-op nature.