trove, error - Exception during message handling: AttributeError: 'TroveContext' object has no attribute 'notification', please help to fix

Vasiliy Bragin bragin75 at gmail.com
Tue Jun 7 09:40:00 UTC 2022


Hello, team trove!

trove, error - Exception during message handling: AttributeError:
'TroveContext' object has no attribute 'notification', please help to fix
release openstack - yoga, CentOS, CentOS Stream release 8
instance trove - ubuntu, Linux version 5.4.0-113-generic
(buildd at lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu
9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022

On Yoga Trove guest-agent inside instance not work at all:

log
2022-06-01 15:31:13.263 908 DEBUG trove.common.rpc.service [-] Creating RPC
server for service guestagent.15e4e2e9-13a4-42f6-bafb-f63fdd074d76 start
/opt/guest-agent-venv/lib/python3.8/site-packages/trove/common/rpc/service.py:56
*2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server [-] Exception
during message handling: AttributeError: 'TroveContext' object has no
attribute 'notification'*
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server Traceback (most
recent call last):
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_messaging/rpc/server.py",
line 165, in _process_incoming
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server     res =
self.dispatcher.dispatch(message)
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_messaging/rpc/dispatcher.py",
line 309, in dispatch
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server     return
self._do_dispatch(endpoint, method, ctxt, args)
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_messaging/rpc/dispatcher.py",
line 229, in _do_dispatch
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server     result =
func(ctxt, **new_args)
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/osprofiler/profiler.py",
line 160, in wrapper
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server     result =
f(*args, **kwargs)
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/datastore/manager.py",
line 213, in prepare
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server     with
EndNotification(context, instance_id=CONF.guest_id):
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server   File
"/opt/guest-agent-venv/lib/python3.8/site-packages/trove/common/notification.py",
line 48, in __init__
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server
self.context.notification.payload.update(kwargs)
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server AttributeError:
'TroveContext' object has no attribute 'notification'
2022-06-01 15:31:13.610 908 ERROR oslo_messaging.rpc.server


Trove guest-agent on instance execute. But DB don't work and not started.
After restart guest-agent on instance next log:

2022-06-06 12:51:09.443 4503 DEBUG trove.common.rpc.service [-] Creating
RPC server for service guestagent.15e4e2e9-13a4-42f6-bafb-f63fdd074d76
start
/opt/guest-agent-venv/lib/python3.8/site-packages/trove/common/rpc/service.py:56
2022-06-06 12:52:09.541 4503 DEBUG oslo_service.periodic_task [-] Running
periodic task Manager.update_status run_periodic_tasks
/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_service/periodic_task.py:210
*2022-06-06 12:52:09.546 4503 INFO trove.guestagent.datastore.manager [-]
Database service is not installed, skip status check*

Please tell me how can I fix this errors?

-- 
Vasily Bragin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20220607/379b0a68/attachment-0001.htm>


More information about the openstack-discuss mailing list