]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: new Dashboard Plugin: Debug 30522/head
authorErnesto Puerta <epuertat@redhat.com>
Thu, 10 Oct 2019 09:25:49 +0000 (11:25 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Thu, 10 Oct 2019 15:01:23 +0000 (17:01 +0200)
Fixes: https://tracker.ceph.com/issues/41990
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
doc/mgr/dashboard.rst
doc/mgr/dashboard_plugins/debug.inc.rst [new file with mode: 0644]
src/pybind/mgr/dashboard/HACKING.rst

index e2cae32bc5c978c515028a6f4d498349152dd651..1a7cc31ce3fa5c51dca932bb32be4ff57f7b05f6 100644 (file)
@@ -968,7 +968,8 @@ Web UI will automatically allow to choose to which cluster an export belongs.
 Plug-ins
 --------
 
-Dashboard Plug-ins allow to extend the functionality of the dashboard in a modular
-and loosely coupled approach.
+Dashboard Plug-ins extend the functionality of the dashboard in a modular
+and loosely coupled fashion.
 
 .. include:: dashboard_plugins/feature_toggles.inc.rst
+.. include:: dashboard_plugins/debug.inc.rst
diff --git a/doc/mgr/dashboard_plugins/debug.inc.rst b/doc/mgr/dashboard_plugins/debug.inc.rst
new file mode 100644 (file)
index 0000000..e11137c
--- /dev/null
@@ -0,0 +1,26 @@
+.. _dashboard-debug:
+
+Debug
+^^^^^
+
+This plugin allows to customize the behaviour of the dashboard according to the
+debug mode. It can be enabled, disabled or checked with the following command::
+
+  $ ceph dashboard debug status
+  Debug: 'disabled'
+  $ ceph dashboard debug enable
+  Debug: 'enabled'
+  $ ceph dashboard debug disable
+  Debug: 'disabled'
+
+By default, it's disabled. This is the recommended setting for production
+deployments. If required, debug mode can be enabled without need of restarting.
+Currently, disabled debug mode equals to CherryPy ``production`` environment,
+while when enabled, it uses ``test_suite`` defaults (please refer to
+`CherryPy Environments
+<https://docs.cherrypy.org/en/latest/config.html#environments>`_ for more
+details).
+
+It also adds request uuid (``unique_id``) to Cherrypy on versions that don't
+support this. It additionally prints the ``unique_id`` to error responses and
+log messages.
index 56763d999cb308cd2d69d649f20a96a7386d31c6..211e2e7ffc087be0bf959f07ba097d597fabb8f1 100644 (file)
@@ -1876,7 +1876,7 @@ The available Interfaces are:
 - ``FilterRequest.BeforeHandler``: requires overriding
   ``filter_request_before_handler()`` hook. This method receives a
   ``cherrypy.request`` object for processing. A usual implementation of this
-  method will allow some requests to pass or will raise a ``cherrypy.HTTPError`
+  method will allow some requests to pass or will raise a ``cherrypy.HTTPError``
   based on the ``request`` metadata and other conditions.
 
 New interfaces and hooks should be added as soon as they are required to