'Trigger crash dump in an instance.'

@check_instance_lock
@check_instance_host
@check_instance_cell
@check_instance_state(vm_state=vm_states.ALLOW_TRIGGER_CRASH_DUMP)
def trigger_crash_dump(self, context, instance):

    LOG.debug('Try    to    trigger    crash    dump', instance=instance)
    self._record_action_start(context, instance, instance_actions.TRIGGER_CRASH_DUMP)
    self.compute_rpcapi.trigger_crash_dump(context, instance)
