Wrong module import

Bug #1700880 reported by Kien Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vmware-nsx
Fix Released
Undecided
Tong Liu

Bug Description

Unittest failed because of wrong module import. Neutron-fwaas doesn't have any exceptions module.

--- import errors ---
Failed to import test module: vmware_nsx.tests.unit.nsx_v.test_fwaas_driver
Traceback (most recent call last):
  File "/home/kiennt/Workspace/vmware-nsx/.tox/py35/lib/python3.5/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/kiennt/Workspace/vmware-nsx/.tox/py35/lib/python3.5/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "/home/kiennt/Workspace/vmware-nsx/vmware_nsx/tests/unit/nsx_v/test_fwaas_driver.py", line 20, in <module>
    from neutron_fwaas.common import exceptions
ImportError: cannot import name 'exceptions'

Failed to import test module: vmware_nsx.tests.unit.nsx_v3.test_fwaas_driver
Traceback (most recent call last):
  File "/home/kiennt/Workspace/vmware-nsx/.tox/py35/lib/python3.5/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/kiennt/Workspace/vmware-nsx/.tox/py35/lib/python3.5/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "/home/kiennt/Workspace/vmware-nsx/vmware_nsx/tests/unit/nsx_v3/test_fwaas_driver.py", line 19, in <module>
    from vmware_nsx.services.fwaas.nsx_v3 import edge_fwaas_driver
  File "/home/kiennt/Workspace/vmware-nsx/vmware_nsx/services/fwaas/nsx_v3/edge_fwaas_driver.py", line 18, in <module>
    from neutron_fwaas.common import exceptions
ImportError: cannot import name 'exceptions'
The test run didn't actually run any tests

Revision history for this message
Kien Nguyen (kiennt2609) wrote :

Seem like this bug was fixed with the bellow patchset: https://review.openstack.org/#/c/478299/

Changed in vmware-nsx:
status: New → Fix Committed
Revision history for this message
Tong Liu (liutong) wrote :

Yes, this has been fixed with that patch.

Changed in vmware-nsx:
assignee: nobody → Tong Liu (liutong)
Adit Sarfaty (asarfaty)
Changed in vmware-nsx:
status: Fix Committed → Fix Released
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.