2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
Trigger Crash Dump In Server
|
|
|
|
============================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /servers/{server_id}/action
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
.. versionadded:: 2.17
|
|
|
|
|
2016-04-12 09:03:46 -04:00
|
|
|
Trigger a crash dump in a server.
|
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
When a server starts behaving oddly at a fundamental level, it maybe
|
|
|
|
be useful to get a kernel level crash dump to debug further. The crash
|
|
|
|
dump action forces a crash dump followed by a system reboot of the
|
|
|
|
server. Once the server comes back online, you can find a Kernel Crash
|
|
|
|
Dump file in a certain location of the filesystem. For example, for
|
|
|
|
Ubuntu you can find it in the ``/var/crash`` directory.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
.. warning::
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
This action can cause data loss. Also, network connectivity can be
|
|
|
|
lost both during and after this operation.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Normal response codes: 202
|
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
Error response codes: badRequest(400), unauthorized(401),
|
|
|
|
forbidden(403), itemNotFound(404), conflict(409)
|
|
|
|
|
|
|
|
* 400 is returned if the server does not support a crash dump (either
|
|
|
|
by configuration or because the backend does not support it)
|
|
|
|
* 409 is returned if the server is not in a state where a crash dump
|
|
|
|
action is allowed.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
|
2016-05-10 09:24:27 -04:00
|
|
|
- server_id: server_id_path
|
|
|
|
- trigger_crash_dump: trigger_crash_dump
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
**Example Trigger crash dump: JSON request**
|
|
|
|
|
2016-04-19 17:12:00 +08:00
|
|
|
.. literalinclude:: ../../doc/api_samples/servers/v2.17/server-action-trigger-crash-dump.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-05-10 09:24:27 -04:00
|
|
|
|
|
|
|
No body is returned on a successful submission.
|