poll events are not being processed correctly

Bug #1505765 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Astara
Fix Released
Critical
Adam Gandelman
akanda
Fix Released
Critical
Adam Gandelman

Bug Description

health checks and poll commands do not get proceessed correctly, ending with a traceback from the worker:

2015-10-13 11:00:38.630 ERROR akanda.rug.scheduler:13487:p01:tmain [req-b5956146-a227-4616-ba88-9a2260c30a2b None None] Error processing data ('*', <Event (resource=*, crud=poll, body={})>)
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler Traceback (most recent call last):
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler File "/usr/local/lib/python2.7/dist-packages/akanda/rug/scheduler.py", line 60, in _worker
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler worker.handle_message(target, message)
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler File "/usr/local/lib/python2.7/dist-packages/akanda/rug/worker.py", line 405, in handle_message
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler message = self._should_process_message(target, message)
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler File "/usr/local/lib/python2.7/dist-packages/akanda/rug/worker.py", line 352, in _should_process_message
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler if message.resource.id not in commands.WILDCARDS:
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler AttributeError: 'str' object has no attribute 'id'
2015-10-13 11:00:38.630 TRACE akanda.rug.scheduler

Changed in akanda:
milestone: none → liberty-rc1
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to akanda-rug (master)

Fix proposed to branch: master
Review: https://review.openstack.org/234377

Changed in akanda:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to akanda-rug (master)

Reviewed: https://review.openstack.org/234377
Committed: https://git.openstack.org/cgit/stackforge/akanda-rug/commit/?id=b6885c49d55bc97f116adc11cc0f2f4d1f6946a3
Submitter: Jenkins
Branch: master

commit b6885c49d55bc97f116adc11cc0f2f4d1f6946a3
Author: Adam Gandelman <email address hidden>
Date: Tue Oct 13 11:16:29 2015 -0700

    Fixes POLL notification processing

    Notification processing of POLL commands is currently broken. This
    fixes it by constructing the CRUD Event with a wildcard Resource.

    Change-Id: I170743b2914feac1ead0c102028a5804f69b42d4
    Closes-bug: #1505765

Changed in akanda:
status: In Progress → Fix Committed
Changed in astara:
milestone: none → liberty-rc1
importance: Undecided → Critical
status: New → Fix Committed
Changed in akanda:
status: Fix Committed → Fix Released
assignee: nobody → Adam Gandelman (gandelman-a)
Changed in astara:
assignee: nobody → Adam Gandelman (gandelman-a)
status: Fix Committed → Fix Released
Changed in astara:
milestone: liberty-rc1 → 7.0.0
Changed in akanda:
milestone: liberty-rc1 → 7.0.0
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.