'Trigger crash dump in an instance.'

@messaging.expected_exceptions(NotImplementedError, exception.TriggerCrashDumpNotSupported, exception.InstanceNotRunning)
@wrap_exception()
@wrap_instance_event(prefix='compute')
@wrap_instance_fault
def trigger_crash_dump(self, context, instance):

    self._notify_about_instance_usage(context, instance, 'trigger_crash_dump.start')
    self.driver.trigger_crash_dump(instance)
    self._notify_about_instance_usage(context, instance, 'trigger_crash_dump.end')
