Bug 1187649

Summary: Fedora:latest docker image d-bus unknown error -1
Product: [Fedora] Fedora Reporter: Joe Borg <cyborg101010>
Component: docker-ioAssignee: Václav Pavlín <vpavlin>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: adimania, admiller, dwalsh, golang-updates, hushan.jia, jchaloup, jperrin, lsm5, mattdm, mgoldman, miminar, s, thrcka, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-03 12:18:44 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 Joe Borg 2015-01-30 15:05:58 UTC
Description of problem:
When trying to use anything that relies on D-Bus, on Fedora:latest, you get the error: Failed to get D-Bus connection: Unknown error -1

How reproducible:
100%

Steps to Reproduce:
1. Attach to Fedora:latest 
2. yum install postgresql-server -y
3. systemctl start postgresql

Actual results:
Failed to get D-Bus connection: Unknown error -1

Expected results:
Systemd starts postgres

Additional info:
It's not just postgres, I've tried with others.

Comment 1 Daniel Walsh 2015-03-09 17:46:11 UTC
To get this to work, you would either need to get systemd-container or systemd to run within the container.

Comment 2 Václav Pavlín 2015-03-10 09:02:12 UTC
How do you run your container? D-Bus has some problems running in current base images (due to systemd handling failure of setting of OOMScoreAdjust too sternly) but it should be fixed in Rawhide and F22. Or you can remove this option from the dbus.service unit file. I have a blog post on this here:

http://vpavlin.eu/2015/02/fedora-docker-and-systemd/

Comment 3 Daniel Walsh 2015-03-10 13:02:24 UTC
Can we remove the optin from the dbus.service script in the base container?

Comment 4 Václav Pavlín 2015-03-10 14:01:39 UTC
I've actually already done that earlier:

https://git.fedorahosted.org/cgit/spin-kickstarts.git/tree/fedora-docker-base.ks

we just need to get new build to Docker Hub (which, afaik, Lokesh is working on)

Comment 5 Daniel Walsh 2015-03-10 16:59:01 UTC
Excellent, thanks.

Comment 6 Daniel Walsh 2015-04-14 20:00:29 UTC
Vaclav can we close this?