Identity(Keystone) notifications have a handler
for Role that has event type as identity.role.*
Another for RoleAssignment which accepts
identity.role_assignment.* events.
Since event types are regular expressions,
an event like identity.role_assignment.created
is matched with identity.role.* and gets incorrectly
routed to the Role Handler.
This fix restricts the event type regex for Role
handler to just identity.role.* events and excludes
identity.role_* events.
Reviewed: https:/ /review. openstack. org/185146 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=02bab799bab 051cc22f4fdf9d1 9d7a17939cdde7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 02bab799bab051c c22f4fdf9d19d7a 17939cdde7
Author: Rohit Jaiswal <email address hidden>
Date: Fri May 22 21:04:50 2015 +0000
Fixing event types pattern for Role Noti. handler
Identity( Keystone) notifications have a handler role_assignment .* events.
for Role that has event type as identity.role.*
Another for RoleAssignment which accepts
identity.
Since event types are regular expressions, role_assignment .created
an event like identity.
is matched with identity.role.* and gets incorrectly
routed to the Role Handler.
This fix restricts the event type regex for Role
handler to just identity.role.* events and excludes
identity.role_* events.
Change-Id: I526467ef2f8204 e8093f7470b8694 9e3e0e69990
Closes-Bug: #1457785