Running tox -e cover results in failure

Bug #1650266 reported by Surya Prakash Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-kubernetes
Fix Released
High
Tin Lam

Bug Description

  File "/home/stack/Downloads/kolla-kubernetes/kolla_kubernetes/utils.py", line 126, in merge_configs_to_dict
    raise e
IOError: [Errno 2] No such file or directory: '/home/stack/Downloads/kolla/ansible/roles/neutron/defaults/main.yml'
Coverage.py warning: Module kolla-kubernetes was never imported.
Coverage.py warning: No data was collected.
Coverage.py warning: Module kolla-kubernetes was never imported.
Coverage.py warning: No data was collected.
Ran 21 tests in 1.493s
FAILED (id=0, failures=1)
error: testr failed (1)

Steven Dake (sdake)
Changed in kolla-kubernetes:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.4.0
Steven Dake (sdake)
Changed in kolla-kubernetes:
status: Triaged → Confirmed
summary: - Running the coverage tool gets failed
+ Running tox -e cover results in failure
Changed in kolla-kubernetes:
assignee: nobody → Surya Prakash Singh (confisurya)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-kubernetes (master)

Fix proposed to branch: master
Review: https://review.openstack.org/415273

Changed in kolla-kubernetes:
assignee: Surya Prakash Singh (confisurya) → Tin Lam (tl3438)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-kubernetes (master)

Reviewed: https://review.openstack.org/415273
Committed: https://git.openstack.org/cgit/openstack/kolla-kubernetes/commit/?id=d609177328465d50c63df210c76aaf679627c1f3
Submitter: Jenkins
Branch: master

commit d609177328465d50c63df210c76aaf679627c1f3
Author: Tin Lam <email address hidden>
Date: Tue Dec 27 11:39:32 2016 -0600

    Fix python tox -e cover failure

    Currently, running ``tox -e cover`` errors out and does not generate
    the correct coverage report. The problem is caused by (a) a typo in
    ``tox.ini``, and (b) a mix up between ``kolla_kubernetes`` vs.
    ``kolla-kubernetes`` in .coveragerc and setup.cfg. This causes the
    coverage report to not properly pick up the module. This patch set
    addresses the problem.

    Change-Id: I0a10c0eb563968f4b88a816276455a6afcf5df80
    Closes-Bug: #1650266

Changed in kolla-kubernetes:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-kubernetes 0.4.0

This issue was fixed in the openstack/kolla-kubernetes 0.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.