[neutron][ovn] Error when listing agents

Marc 'risson' Schmitt risson at cri.epita.fr
Fri Aug 20 21:47:43 UTC 2021


Hi,

After ugprading to Wallaby, I get the following error when listing my
agents:

```
2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource
[req-148cc4ed-c2b1-4e33-9e0c-1a5573652e6a
b867d59eb3f34e2eab684b74e2ba7e87 28d6433dd9db4e7298c84b1058ea825a -
default default] index failed: No details.: AttributeError:
'Chassis_Private' object has no attribute 'hostname' 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource Traceback (most recent
call last): 2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource
File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/api/v2/resource.py",
line 98, in resource 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     result = method(request=request, **args)
2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron_lib/db/api.py",
line 139, in wrapped 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 227, in __exit__ 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     self.force_reraise() 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 200, in force_reraise 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     raise self.value 2021-08-20 23:42:33.466 24
ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron_lib/db/api.py",
line 135, in wrapped 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     return f(*args, **kwargs) 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_db/api.py", line
154, in wrapper 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     ectxt.value = e.inner_exc 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 227, in __exit__ 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     self.force_reraise() 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 200, in force_reraise 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     raise self.value 2021-08-20 23:42:33.466 24
ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_db/api.py", line
142, in wrapper 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     return f(*args, **kwargs) 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron_lib/db/api.py",
line 183, in wrapped 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     LOG.debug("Retry wrapper got retriable
exception: %s", e) 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 227, in __exit__ 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     self.force_reraise() 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_utils/excutils.py",
line 200, in force_reraise 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     raise self.value 2021-08-20 23:42:33.466 24
ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron_lib/db/api.py",
line 179, in wrapped 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/api/v2/base.py",
line 369, in index 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     return self._items(request, True,
parent_id) 2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource
File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/api/v2/base.py",
line 304, in _items 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     obj_list = obj_getter(request.context,
**kwargs) 2021-08-20 23:42:33.466 24 ERROR neutron.api.v2.resource
File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py",
line 1159, in fn 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     return op(results, new_method(*args,
_driver=self, **kwargs)) 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py",
line 1223, in get_agents 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     agent_dict = agent.as_dict() 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource   File
"/var/lib/kolla/venv/lib/python3.8/site-packages/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py",
line 55, in as_dict 2021-08-20 23:42:33.466 24 ERROR
neutron.api.v2.resource     'host': self.chassis.hostname, 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource AttributeError:
'Chassis_Private' object has no attribute 'hostname' 2021-08-20
23:42:33.466 24 ERROR neutron.api.v2.resource 
```
(pasted here: https://bin.lama-corp.space/o8Q7xYtrGtp0jSKdR8qF1)

Should I open a bug report or is it something I'm doing wrong? Lookiing
at the code, I see recent changes were made, which maybe introduced a
bug, in which case I'd be happy to help.

About the setup:

neutron with OVN agents, version 18.1.1.dev7, deployed with
kolla-ansible, nothing especially fancy.

Thanks in advance,

-- 
Marc 'risson' Schmitt
CRI - EPITA



More information about the openstack-discuss mailing list