← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1977470] [NEW] [networking-bgpvpn] zed unit test failures

 

Public bug reported:

tox -e py310 results in multiple "has no attribute
'register_common_config_options'" errors:

=========================                                                                                                                                                                                                                                                                                                                                                              [0/30]
Failures during discovery
=========================
--- import errors ---
Failed to import test module: networking_bgpvpn.tests.unit.db.test_db
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/db/test_db.py", line 20, in <module>
    from networking_bgpvpn.neutron.db.bgpvpn_db import BGPVPNPluginDb
  File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>
    from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext
  File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>
    common_config.register_common_config_options()
AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

- tox -e py310 results in:
+ tox -e py310 results in multiple "has no attribute
+ 'register_common_config_options'" errors:
  
  =========================                                                                                                                                                                                                                                                                                                                                                              [0/30]
- Failures during discovery                                                                                                                                      
- =========================                                                                                                                                     
- --- import errors ---                                                                                                                                          
- Failed to import test module: networking_bgpvpn.tests.unit.db.test_db                                                                                                                                                                                                                                                        
- Traceback (most recent call last):                                                                                                                            
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                                                                                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/db/test_db.py", line 20, in <module>                                                                      
-     from networking_bgpvpn.neutron.db.bgpvpn_db import BGPVPNPluginDb                                                                                                                         
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>                                                                       
-     from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext                                                                                                                     
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- Failed to import test module: networking_bgpvpn.tests.unit.extensions.test_bgpvpn                                                                                                             
- Traceback (most recent call last):                                                             
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/extensions/test_bgpvpn.py", line 28, in <module>                                                          
-     from networking_bgpvpn.neutron.extensions import bgpvpn                                                                                                                                   
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- Failed to import test module: networking_bgpvpn.tests.unit.extensions.test_bgpvpn_routes_control                                                                                              
- Traceback (most recent call last):                                                             
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/extensions/test_bgpvpn_routes_control.py", line 30, in <module>                                           
-     from networking_bgpvpn.neutron.extensions import bgpvpn                                                                                                                                   
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- Failed to import test module: networking_bgpvpn.tests.unit.extensions.test_bgpvpn_vni                                                                                                         
- Traceback (most recent call last):                                                             
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/extensions/test_bgpvpn_vni.py", line 28, in <module>                                                      
-     from networking_bgpvpn.neutron.extensions import bgpvpn                                                                                                                                   
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- Failed to import test module: networking_bgpvpn.tests.unit.services.bagpipe.test_bagpipe                                                                                                      
- Traceback (most recent call last):                                                             
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/services/bagpipe/test_bagpipe.py", line 37, in <module>                                                   
-     from networking_bgpvpn.neutron.services.service_drivers.bagpipe import bagpipe                                                                                                            
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/services/service_drivers/bagpipe/bagpipe.py", line 35, in <module>                                           
-     from networking_bgpvpn.neutron.db import bgpvpn_db                                                                                                                                        
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>                                                                       
-     from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext                                                                                                                     
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- Failed to import test module: networking_bgpvpn.tests.unit.services.test_plugin                                                                                                               
- Traceback (most recent call last):                                                             
-   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path                                                                                                                 
-     module = self._get_module_from_name(name)                                                  
-   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name                                                                                                           
-     __import__(name)                                                                           
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/services/test_plugin.py", line 35, in <module>                                                            
-     from networking_bgpvpn.neutron.db import bgpvpn_db                                                                                                                                        
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>                                                                       
-     from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext                                                                                                                     
-   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>                                                                  
-     common_config.register_common_config_options()                                             
- AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'                                                                                              
- 
- ================================================================================
+ Failures during discovery
+ =========================
+ --- import errors ---
+ Failed to import test module: networking_bgpvpn.tests.unit.db.test_db
+ Traceback (most recent call last):
+   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
+     module = self._get_module_from_name(name)
+   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
+     __import__(name)
+   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/db/test_db.py", line 20, in <module>
+     from networking_bgpvpn.neutron.db.bgpvpn_db import BGPVPNPluginDb
+   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>
+     from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext
+   File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>
+     common_config.register_common_config_options()
+ AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1977470

Title:
  [networking-bgpvpn] zed unit test failures

Status in neutron:
  New

Bug description:
  tox -e py310 results in multiple "has no attribute
  'register_common_config_options'" errors:

  =========================                                                                                                                                                                                                                                                                                                                                                              [0/30]
  Failures during discovery
  =========================
  --- import errors ---
  Failed to import test module: networking_bgpvpn.tests.unit.db.test_db
  Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
      __import__(name)
    File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/tests/unit/db/test_db.py", line 20, in <module>
      from networking_bgpvpn.neutron.db.bgpvpn_db import BGPVPNPluginDb
    File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/db/bgpvpn_db.py", line 34, in <module>
      from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext
    File "/home/corey/pkg/zed/upstream/networking-bgpvpn/networking_bgpvpn/neutron/extensions/bgpvpn.py", line 37, in <module>
      common_config.register_common_config_options()
  AttributeError: module 'neutron.common.config' has no attribute 'register_common_config_options'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1977470/+subscriptions



Follow ups