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:
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?
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.
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.
Bug verified
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