Bug #1879726 “Guestagent fail to send notification event” : Bugs : OpenStack DBaaS (Trove)

Guestagent fail to send notification event

Bug #1879726 reported by Nguyen Thanh Cong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
In Progress
Undecided
Nguyen Thanh Cong

Bug Description

When i create trove database instance, guest agent raise error AttributeError: 'TroveContext' object has no attribute 'notification'. I use train release.

2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server [-] Exception during message handling: AttributeError: 'TroveContext' object has no attribute 'notification'
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/dispatcher.py", line 274, in dispatch
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/osprofiler/profiler.py", line 160, in wrapper
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/datastore/manager.py", line 267, in prepare
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server with EndNotification(context, instance_id=CONF.guest_id):
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/common/notification.py", line 48, in __init__
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server self.context.notification.payload.update(kwargs)
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server AttributeError: 'TroveContext' object has no attribute 'notification'
2020-05-19 09:58:03.574 1148 ERROR oslo_messaging.rpc.server

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.opendev.org/729630

Changed in trove:
assignee: nobody → Nguyen Thanh Cong (congnt95)
status: New → In Progress
Revision history for this message
Lingxian Kong (kong) wrote :

Hi please use https://storyboard.openstack.org/#!/project/openstack/trove for trove features and bugs tracking.

Revision history for this message
Lingxian Kong (kong) wrote :

and this issue has been fixed in stable/train branch, please see https://github.com/openstack/trove/commit/095a5b0514f800258a3e3cccc94c94135cab8ac5

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Nguyen Thanh Cong (<email address hidden>) on branch: master
Review: https://review.opendev.org/729630
Reason: https://review.opendev.org/#/c/697225/3/trove/instance/models.py

Revision history for this message
Nguyen Thanh Cong (congnt95) wrote :

Thanks you for your support, i tested in ussuri and this bug was disappeared.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Loading subscribers...

Remote bug watches

Bug watches keep track of this bug in other bug trackers.