event action is incorrect for handling resource signals

Bug #1517114 reported by Pratik Mallya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
In Progress
Undecided
Pratik Mallya

Bug Description

http://git.openstack.org/cgit/openstack/heat/tree/heat/engine/resource.py#n1652

The event action should be the resource action, as the signal is meaningless unless we know the action and state of the resource that is being signalled.

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

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

Changed in heat:
assignee: nobody → Pratik Mallya (pratik-mallya)
status: New → In Progress
Revision history for this message
Steven Hardy (shardy) wrote :

For as long as I can remember this has been the case (probably since we first implemented resource signalling, but I've not checked the code history).

I get why you'd like to change it, but IMHO this cannot happen until we do a new API revision (and even then we'll need a way to ensure backwards compatibility.

On balance, I don't believe the benefit outweighs the risk of breaking users in this case.

Revision history for this message
Pratik Mallya (pratik-mallya) wrote :

(Adding motivation for this bug):

This discrepancy was noticed when I was implementing resource notifications. So, for resource events its straightforward since notifications map almost exactly to events. But for hooks and signals, its different, since the nature of the events are indicated only by the 'reason' parameter.

Its easy enough to write separate notifications, I was hoping to make it similar to stack notifications, where all add_event methods have been replaced by send_notification_and_add_event method.

Revision history for this message
Pratik Mallya (pratik-mallya) wrote :

(adding blueprint for resource notifications)

https://review.openstack.org/#/c/244830/11

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

Change abandoned by Pratik Mallya (<email address hidden>) on branch: master
Review: https://review.openstack.org/246481
Reason: Abandoning, since the consensus is to preserve the current format, and change only in v2

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.