yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95150
[Bug 2093258] Re: HTTP500 returned on get ports due to AttributeError when extracting tags
I've reviewed the CI logs [1] provided. The DB backend is postgresql and
it is no longer supported in Neutron (and many other projects in
OpenStack). This is why the change in [2] and the DB backend is causing
this error.
Please swap to MySQL/MariaDB.
[1]https://zuul.opendev.org/t/openstack/build/a5bd3cbd0212488f8ed9fda58bb82f87/logs
[2]https://review.opendev.org/c/openstack/neutron/+/934171/4/neutron/services/tag/tag_plugin.py
** Changed in: neutron
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2093258
Title:
HTTP500 returned on get ports due to AttributeError when extracting
tags
Status in neutron:
Won't Fix
Bug description:
Observed in Manila CI
https://zuul.opendev.org/t/openstack/build/a5bd3cbd0212488f8ed9fda58bb82f87
nova call of GET /servers/<uuid> failed due to Neutron call from nova to neutron failed with the following (relevant) traceback in the log
```
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 1682, in get_ports
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation items =
[self._make_port_dict(c, fields, bulk=True) for c in query]
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation File
"/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 1682, in
<listcomp>
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation items =
[self._make_port_dict(c, fields, bulk=True) for c in query]
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation File
"/opt/stack/neutron/neutron/db/db_base_plugin_common.py", line 257, in
_make_port_dict
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation resource_extend.apply_funcs(
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation File
"/opt/stack/data/venv/lib/python3.10/site-
packages/oslo_utils/timeutils.py", line 323, in wrapper
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation result = func(*args,
**kwargs)
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation File
"/opt/stack/data/venv/lib/python3.10/site-
packages/neutron_lib/db/resource_extend.py", line 91, in apply_funcs
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation resolved_func(response,
db_object)
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation File
"/opt/stack/neutron/neutron/services/tag/tag_plugin.py", line 54, in
_extend_tags_dict
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation tag_db.tag for tag_db in
db_data.standard_attr.tags
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation AttributeError: 'NoneType' object
has no attribute 'tags'
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: ERROR
neutron.pecan_wsgi.hooks.translation
Jan 08 11:22:23.584731 np0039510017 neutron-server[71609]: INFO neutron.api.wsgi [req-c75cc024-5d56-4c07-b3b9-21311a8c3bb3 req-da3c34fb-4fbd-4ee5-9e99-04abf8c32479 tempest-ShareManageUnmanageNFS-1913085872 tempest-ShareManageUnmanageNFS-1913085872-project-member] 213.32.74.253,213.32.74.253 "GET /networking/v2.0/ports?device_id=f27bdfcc-4873-4eaf-8372-0ecf7cbcef10 HTTP/1.1" status: 500 len: 368 time: 0.0610847
```
looks sporadic, and may be hides some other issue..
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2093258/+subscriptions
References