Description of problem: All ice setup tests are failing, preventing a release Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. run py.test on the repository Actual results: ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- pytest-2.3.5 collected 43 items / 1 errors ice_setup/tests/test_distributions.py FFFFFFFFFFFF ice_setup/tests/test_paths.py ..FF ice_setup/tests/test_prompts.py ........................... ==================================== ERRORS ==================================== _______________ ERROR collecting ice_setup/tests/test_system.py ________________ ice_setup/tests/test_system.py:6: in <module> > from ice_setup.ice import get_fqdn, infer_ceph_repo, ICEError, DirNotFound E ImportError: cannot import name infer_ceph_repo =================================== FAILURES =================================== ______________________ TestYum.test_creates_default_file _______________________ self = <ice_setup.tests.test_distributions.TestYum object at 0x2550210> etc_path = '/tmp/tmpeCMO62' def test_creates_default_file(self, etc_path): > Yum.create_repo_file('ceph', 'repo_url', 'gpg_url', etc_path=etc_path) ice_setup/tests/test_distributions.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'ice_setup.ice.Yum'>, template_name = 'ceph', repo_url = 'repo_url' gpg_url = 'gpg_url', file_name = 'ice.repo', use_gpg = True, kw = {} etc_path = '/tmp/tmpeCMO62' @classmethod def create_repo_file(cls, template_name, repo_url, gpg_url, file_name=None, use_gpg=True, **kw): """set the contents of /etc/yum.repos.d/ice.repo""" etc_path = kw.pop('etc_path', '/etc/yum.repos.d') file_name = '%s.repo' % (file_name or 'ice') > template = yum_templates[template_name] E KeyError: 'ceph' ice_setup/ice.py:583: KeyError Expected results: All tests passed
Fixed upstream in https://github.com/ceph/ice-setup/pull/36
This bug seems to be caught during unit tests. QE will run installation tests referring to installation doc which will include ice_setup. QE will not run unit tests. ACKing this bug as this bug can be verified implicitly via installation tests.
I'm going to mark this as VERIFIED myself because I've confirmed that the unit tests now pass. ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- pytest-2.3.5 collected 43 items ice_setup/tests/test_distributions.py .......... ice_setup/tests/test_paths.py ... ice_setup/tests/test_prompts.py ........................... ice_setup/tests/test_system.py ... ========================== 43 passed in 0.14 seconds ===========================
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-2015:1183