'Add a state change event to the database.'

def _add_event(self, action, status, reason):

    ev = event.Event(self.context, self, action, status, reason, self.id, None, self.name, 'OS::Heat::Stack')
    ev.store()
    self.dispatch_event(ev)
