Support triggering crash dump in an instance

Registered by Hironori Shiina on 2015-06-01

This blueprint proposes to add a new API used to trigger crash dump in an instance by injecting an NMI (Non-maskable Interruption) into the instance. Linux instance can be configured to use NMI to trigger crash dump. This has to be configured in instance, or the functionality won't work.

1. Add a libvirt driver API to inject NMI into instance. The patch below has been merged.
https://review.openstack.org/#/c/202380/

2. Add a compute API named to trigger crash dump in instance by calling the driver API introduced above.

3. Add a cell API named to trigger crash dump in instance in a cell by calling the compute API introduced above.

4. Add a Nova REST API to trigger crash dump in instance.

5. Add a Nova client API to enable user to trigger crash dump in instance on client side.

The spec for mitaka is here:
https://review.openstack.org/#/c/229255/

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Hironori Shiina
Direction:
Approved
Assignee:
Tang Chen
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
Hironori Shiina on 2015-07-16
Completed by
John Garbutt on 2016-01-28

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/instance-crash-dump,n,z

Addressed by: https://review.openstack.org/187176
    Inject NMI to an instance

Please note this blueprint will delayed until the M release if it is not in the NeedsCodeReview state (with all the code up for review) before July 16th, and merged by July 30th. We expect to re-open master for the M release in September. For more information, please see: https://wiki.openstack.org/wiki/Nova/Liberty_Release_Schedule#Non-priority_Blueprint_Feature_Freeze and http://lists.openstack.org/pipermail/openstack-dev/2015-June/065819.html
--johnthetubaguy 15th July 2015

Addressed by: https://review.openstack.org/202380
    libvirt:Add a driver API to inject an NMI. (Merged in Liberty)

Addressed by: https://review.openstack.org/208794
    Improve inject_nmi() in libvirt driver and add tests.

Addressed by: https://review.openstack.org/229255
    Spec: Support triggering crash dump in an instance

Addressed by: https://review.openstack.org/207004
    Fix spec: Inject NMI to an instance

Addressed by: https://review.openstack.org/207092
    Add support for injecting an NMI

This has a feature freeze exception, but that has now expired.
Sorry, we have now hit the non-priority feature freeze for Liberty. You will need to resubmit this blueprint for Mitaka or apply for an exception. For more details on why this is happening, and the rest of the process details, please see: https://wiki.openstack.org/wiki/Nova/Liberty_Release_Schedule
--johnthetubaugy 4th August 2015

Now this BP is back on work. Please review the latest patch-set.

Gerrit topic: https://review.openstack.org/#q,topic:bp/inject-nmi,n,z

Pending Patches
=============

Gerrit topic: https://review.openstack.org/#q,topic:bp/instance-crash-dump,n,z

Addressed by: https://review.openstack.org/202617
    Add a Nova API to trigger crash dump in an instance.

Addressed by: https://review.openstack.org/202605
    Add a compute RPC API to trigger crash dump in instance.

Addressed by: https://review.openstack.org/234691
    Add a cell RPC API to trigger crash dump in instance.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.