Some of the neutron functional tests are failing with import error after unit test tree reorganization

Bug #1443480 reported by Numan Siddique
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Numan Siddique
Kilo
Fix Released
Undecided
Unassigned

Bug Description

Some of the neutron functional tests are failing with import error after unit test tree reorganization

 Traceback (most recent call last):
    ImportError: Failed to import test module: neutron.tests.functional.scheduler.test_dhcp_agent_scheduler
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/unittest/loader.py", line 254, in _find_tests
        module = self._get_module_from_name(name)
      File "/usr/lib64/python2.7/unittest/loader.py", line 232, in _get_module_from_name
        __import__(name)
      File "neutron/tests/functional/scheduler/test_dhcp_agent_scheduler.py", line 24, in <module>
        from neutron.tests.unit import test_dhcp_scheduler as test_dhcp_sch
    ImportError: cannot import name test_dhcp_scheduler

Changed in neutron:
assignee: nobody → Numan Siddique (numansiddique)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/172960
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=791d57922b00857e3f8bb753bff9499f3c4e1ab9
Submitter: Jenkins
Branch: master

commit 791d57922b00857e3f8bb753bff9499f3c4e1ab9
Author: Numan Siddique <email address hidden>
Date: Mon Apr 13 20:52:33 2015 +0530

    Fix the ImportErrors in l3 and dhcp scheduler functional tests

    Change-Id: I5b8746d37173869f78a9c23834f10d630d2a36cd
    Closes-bug: #1443480

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/171874
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4000b18275112a0c9e3aa055fbaea634ac89a382
Submitter: Jenkins
Branch: master

commit 4000b18275112a0c9e3aa055fbaea634ac89a382
Author: Maru Newby <email address hidden>
Date: Fri Apr 17 23:49:09 2015 +0000

    Fix test discovery for api and functional paths

    The use of the builtin unittest test loader was silently dropping tests
    that couldn't be imported.

    This change also drops the retargetable path from discovery in the api
    path due to a previously-masked configuration problem, and fixes an
    invalid import in a functional testing fixture module.

    Fullstack tests are also disabled temporarily pending a fix for #1446261.

    Change-Id: Ie44e45c117bd864538e7919dfcf499091fde7752
    Related-Bug: #1440834
    Related-Bug: #1443480
    Closes-Bug: #1446405

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (stable/kilo)

Related fix proposed to branch: stable/kilo
Review: https://review.openstack.org/178301

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (neutron-pecan)

Related fix proposed to branch: neutron-pecan
Review: https://review.openstack.org/185072

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/187178

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/kilo)

Reviewed: https://review.openstack.org/187178
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4ee8ac892dd856e960fa9031ed6c9d1df213dadc
Submitter: Jenkins
Branch: stable/kilo

commit 4ee8ac892dd856e960fa9031ed6c9d1df213dadc
Author: Numan Siddique <email address hidden>
Date: Mon Apr 13 20:52:33 2015 +0530

    Fix the ImportErrors in l3 and dhcp scheduler functional tests

    Change-Id: I5b8746d37173869f78a9c23834f10d630d2a36cd
    Closes-bug: #1443480
    (cherry picked from commit 791d57922b00857e3f8bb753bff9499f3c4e1ab9)

tags: added: in-stable-kilo
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (stable/kilo)

Reviewed: https://review.openstack.org/178301
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ae5ffa3f9febea198be580c60fcd83e492c26547
Submitter: Jenkins
Branch: stable/kilo

commit ae5ffa3f9febea198be580c60fcd83e492c26547
Author: Maru Newby <email address hidden>
Date: Fri Apr 17 23:49:09 2015 +0000

    Fix test discovery for api and functional paths

    The use of the builtin unittest test loader was silently dropping tests
    that couldn't be imported.

    This change also drops the retargetable path from discovery in the api
    path due to a previously-masked configuration problem, and fixes an
    invalid import in a functional testing fixture module.

    Fullstack tests are also disabled temporarily pending a fix for #1446261.

    Note:
    - fullstack tests are not really working in Kilo, so it's fine to
      disable them for the branch.

    Change-Id: Ie44e45c117bd864538e7919dfcf499091fde7752
    Related-Bug: #1440834
    Related-Bug: #1443480
    Closes-Bug: #1446405
    (cherry picked from commit 4000b18275112a0c9e3aa055fbaea634ac89a382)

Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-1 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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