Traceback in _create_loadbalancer_stats for python3-neutron-lbaas

Bug #1847981 reported by Dr. Jens Harbott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron-lbaas (Ubuntu)
Triaged
High
Unassigned

Bug Description

See also https://storyboard.openstack.org/#!/story/2006714, this issue is seen in neutron-lbaas (v2) on Rocky UCA:

2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/neutron_lbaas/drivers/common/agent_callbacks.py", line 214, in update_loadbalancer_stats
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server stats)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/neutron_lbaas/db/loadbalancer/loadbalancer_dbv2.py", line 864, in update_loadbalancer_stats
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server data=stats_data)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/neutron_lbaas/db/loadbalancer/loadbalancer_dbv2.py", line 176, in _create_loadbalancer_stats
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server total_connections=data.get(lb_const.STATS_TOTAL_CONNECTIONS, 0)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "<string>", line 4, in __init__
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/state.py", line 417, in _initialize_instance
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server manager.dispatch.init_failure(self, args, kwargs)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server compat.reraise(exc_type, exc_value, exc_tb)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 187, in reraise
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server raise value
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/state.py", line 414, in _initialize_instance
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server return manager.original_init(*mixed[1:], **kwargs)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/ext/declarative/base.py", line 700, in _declarative_constructor
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server setattr(self, k, kwargs[k])
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py", line 229, in __set__
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server instance_dict(instance), value, None)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py", line 708, in set
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server value, old, initiator)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py", line 715, in fire_replace_event
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server state, value, previous, initiator or self._replace_token)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/sqlalchemy/orm/util.py", line 136, in set_
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server return validator(state.obj(), key, value)
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/neutron_lbaas/db/loadbalancer/models.py", line 65, in validate_non_negative_int
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server if value < 0:
2019-10-14 08:02:16.802 18834 ERROR oslo_messaging.rpc.server TypeError: '<' not supported between instances of 'str' and 'int'

python3-neutron-lbaas 2:13.0.0-0ubuntu1~cloud0

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

This is fixed in neutron-lbaas 13.0.1 and 14.0.1 for Rocky and Stein, respectively, needs new pkgs.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This will be fixed via LP: #1853319 and LP: #1853320

Changed in neutron-lbaas (Ubuntu):
status: New → Triaged
importance: Undecided → High
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.