Bug 2073227

Summary: [RHOS 16.2] scenario010 standalone tempest conf is failing with "Unhandled error: config_tempest.services.base.ServiceError"
Product: Red Hat OpenStack Reporter: Ronelle Landy <rlandy>
Component: python-networking-ovnAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: Maor <mblue>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: apevec, bcafarel, chkumar, chrisw, froyo, gthiemon, ihrachys, jlibosva, jschluet, lhh, lpeer, majopela, mariel, njohnston, ralonsoh, scohen, stchen, tvignaud, twilson
Target Milestone: z3Keywords: Regression, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20220409154847.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 16:06:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 10 Jakub Libosvar 2022-04-08 19:33:10 UTC
The bug is in Neutron that it registers config options for agents as a side effect when DB models are imported

2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory Traceback (most recent call last):                                                                                                                                                                                                                        
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/octavia/api/drivers/driver_factory.py", line 44, in get_driver                                                                                                                                                   
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     invoke_on_load=True).driver                                                                                                                                                                                                                           
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/driver.py", line 61, in __init__                                                                                                                                                                       
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     warn_on_missing_entrypoint=warn_on_missing_entrypoint                                                                                                                                                                                                 
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/named.py", line 81, in __init__                                                                                                                                                                        
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     verify_requirements)                                                                                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 203, in _load_plugins                                                                                                                                                              
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     self._on_load_failure_callback(self, ep, err)                                                                                                                                                                                                         
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 195, in _load_plugins                                                                                                                                                              
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     verify_requirements,                                                                                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/named.py", line 158, in _load_one_plugin                                                                                                                                                               
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     verify_requirements,                                                                                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 223, in _load_one_plugin                                                                                                                                                           
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     plugin = ep.resolve()                                                                                                                                                                                                                                 
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve                                                                                                                                                                
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     module = __import__(self.module_name, fromlist=['__name__'], level=0)                                                                                                                                                                                 
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/networking_ovn/octavia/ovn_driver.py", line 43, in <module>                                                                                                                                                      
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from networking_ovn.common import utils as ovn_utils                                                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/networking_ovn/common/utils.py", line 19, in <module>                                                                                                                                                            
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.db import models_v2                                                                                                                                                                                                                      
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/db/models_v2.py", line 27, in <module>                                                                                                                                                                   
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.db.network_dhcp_agent_binding import models as ndab_model                                                                                                                                                                                
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/db/network_dhcp_agent_binding/models.py", line 17, in <module>                                                                                                                                           
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.db.models import agent as agent_model                                                                                                                                                                                                    
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/db/models/agent.py", line 18, in <module>                                                                                                                                                                
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.agent.common import utils                                                                                                                                                                                                                
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/agent/common/utils.py", line 24, in <module>                                                                                                                                                             
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.conf.agent import common as config                                                                                                                                                                                                       
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/conf/agent/common.py", line 23, in <module>                                                                                                                                                              
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     from neutron.common import config                                                                                                                                                                                                                     
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/common/config.py", line 49, in <module>                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     common_config.register_core_common_config_opts()                                                                                                                                                                                                      
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/neutron/conf/common.py", line 160, in register_core_common_config_opts                                                                                                                                           
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     cfg.register_opts(core_opts)                                                                                                                                                                                                                          
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2055, in __inner                                                                                                                                                                       
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     result = f(self, *args, **kwargs)                                                                                                                                                                                                                     
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2317, in register_opts                                                                                                                                                                 
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     self.register_opt(opt, group, clear_cache=False)                                                                                                                                                                                                      
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2059, in __inner                                                                                                                                                                       
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     return f(self, *args, **kwargs)                                                                                                                                                                                                                       
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2306, in register_opt                                                                                                                                                                  
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     if _is_opt_registered(self._opts, opt):                                                                                                                                                                                                               
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 368, in _is_opt_registered                                                                                                                                                             
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory     raise DuplicateOptError(opt.name)                                                                                                                                                                                                                     
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory oslo_config.cfg.DuplicateOptError: duplicate option: host                                                                                                                                                                                                 
2022-04-08 19:29:00.416 13 ERROR octavia.api.drivers.driver_factory

Comment 22 errata-xmlrpc 2022-06-22 16:06:30 UTC
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 (Release of components for Red Hat OpenStack Platform 16.2.3 (Train)), 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-2022:4793

Comment 23 Rodolfo Alonso 2022-10-04 11:14:38 UTC
*** Bug 2131977 has been marked as a duplicate of this bug. ***