Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1289903

Summary: 'atomic' command fails to import dbus
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: adimania, dustymabe, lsm5, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: atomic-1.7-2.gitd378de0.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 09:53:30 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 Stef Walter 2015-12-09 10:28:29 UTC
Description of problem:

-bash-4.3# atomic host status
Traceback (most recent call last):
  File "/usr/bin/atomic", line 31, in <module>
    import Atomic
  File "/usr/lib/python2.7/site-packages/Atomic/__init__.py", line 6, in <module>
    from .atomic import Atomic
  File "/usr/lib/python2.7/site-packages/Atomic/atomic.py", line 17, in <module>
    import dbus
ImportError: No module named dbus

Version-Release number of selected component (if applicable):

* 2015-12-08 21:17:20     22.185             82212b2ac6     fedora-atomic     fedora-atomic:fedora-atomic/f22/x86_64/docker-host     

How reproducible:

Every time

Comment 1 Stef Walter 2015-12-09 10:28:47 UTC
This bug was discovered by the Cockpit integration tests

Comment 2 Stef Walter 2015-12-10 06:37:22 UTC
-bash-4.3# rpm -q atomic
atomic-1.4-1.git9d724aa.fc22.x86_64
-bash-4.3# rpm -q python-dbus
package python-dbus is not installed

Comment 3 Colin Walters 2015-12-16 02:23:15 UTC
annotate says this came from http://pkgs.fedoraproject.org/cgit/atomic.git/commit/?h=f22&id=a5a7adbb5014e8f7283251e83421505971890d54

Now I'm confused since that links to https://bugzilla.redhat.com/show_bug.cgi?id=1278499
which is the exact same issue for F23, but this commit *introduced* it for F22?

Comment 4 Fedora Update System 2015-12-16 02:25:59 UTC
atomic-1.7-2.gitd378de0.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b6c503d73a

Comment 5 Colin Walters 2015-12-16 02:26:53 UTC
One can work around this `rpm-ostree upgrade`.

Comment 6 Fedora Update System 2015-12-16 09:53:26 UTC
atomic-1.7-2.gitd378de0.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Stef Walter 2015-12-17 08:39:57 UTC
This is closed ... but will a new ostree build be done to unbreak Fedora Atomic 22?

(In reply to Colin Walters from comment #3)
> annotate says this came from
> http://pkgs.fedoraproject.org/cgit/atomic.git/commit/
> ?h=f22&id=a5a7adbb5014e8f7283251e83421505971890d54
> 
> Now I'm confused since that links to
> https://bugzilla.redhat.com/show_bug.cgi?id=1278499
> which is the exact same issue for F23, but this commit *introduced* it for
> F22?

I think there's a python-dbus vs. python3-dbus confusion here?

But anyway, I can confirm that this is fixed on Fedora Atomic 23 with this tree:

* 2015-12-14 10:16:00     23.33     a40cbd4a80     fedora-atomic     fedora-atomic:fedora-atomic/f23/x86_64/docker-host