Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use Jira Cloud for all bug tracking management.

Bug 1485795

Summary: After installing ceph-medic on Ubuntu, got ImportError, for module tambo
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Persona non grata <nobody+410372>
Component: Ceph-MedicAssignee: Andrew Schoen <aschoen>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: adeza, gmeno, hnallurv, icolle, kdreyer
Target Milestone: rcKeywords: Reopened
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-medic_1.0.2-3redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:41:09 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 Persona non grata 2017-08-28 06:28:21 UTC
Description of problem:
After installing ceph-medic on Ubuntu,using ceph-ansible_3.0.0~rc3-2redhat1 for Ubuntu, got this ImportError ,for module tambo. 

Repo link--http://download.eng.pek2.redhat.com/rcm-guest/ceph-drops/3.0/RHCEPH-3.0-Ubuntu-x86_64-20170817.t.0/


Version-Release number of selected component (if applicable):
ceph-ansible_3.0.0~rc3-2redhat1
ceph-medic 1.0.2



How reproducible:
Always

Steps to Reproduce:
1.By installing tambo module, issue was resolved.
  "python2.7 -m pip install tambo"

Actual results:

Traceback (most recent call last):
  File "/usr/bin/ceph-medic", line 3, in <module>
    from ceph_medic import main
  File "/usr/lib/python2.7/dist-packages/ceph_medic/main.py", line 1, in <module>
    from ceph_medic import check, log
  File "/usr/lib/python2.7/dist-packages/ceph_medic/check.py", line 5, in <module>
    from tambo import Transport
ImportError: No module named tambo


Expected results:
For command ceph-medic ,suppose to display help.

Additional info:

Comment 2 Alfredo Deza 2017-08-30 12:42:34 UTC
We were relying on that package being available in RHEL, but I am unsure what the status is for a DEB package. Ken do you know what, if anything, is preventing this from being available?

Comment 3 Ken Dreyer (Red Hat) 2017-08-30 13:13:13 UTC
We have a deb package for python-tambo, and it's present in the latest compose: python-tambo_0.4.0-2redhat1_all.deb

Would you please confirm that "apt-get -y install python-tambo" works around this problem? (Please never use pip to install packages; there is no integrity checking for customers)

I will investigate why "apt-get install ceph-medic" did not pull in python-tambo.

Comment 4 Ken Dreyer (Red Hat) 2017-08-31 14:46:06 UTC
dh_python2 did not automatically add the dependency on the tambo package because it was not in the Build-Depends list. I didn't notice the missing Build-Depends on the tambo package because the v1.0.2 test suite passes without it.

https://github.com/ceph/ceph-medic/pull/56 adds a test that exercises the piece of CLI code that loads tambo so we cover that for the future.

Comment 7 Persona non grata 2017-09-06 07:32:19 UTC
Bug verified

Comment 10 errata-xmlrpc 2017-12-05 23:41:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3387